PureBytes Links
Trading Reference Links
|
> For a sellcondition I'd like to use the following:
>
> Sell if: (1.) at least one day beyond entrybar; (2.) close is less
> than the original entryprice; and (3.) RSI(14)<70.
>
> Would my sellcondition be incorporated into the stopprice, as
below?
> Or, can I just disable stopprice? Can I disable stoploss and
> trailstop, and, if so, how?
for a sell condition there is an 7 th array that I call exitbin
/* KEEP the oRDER++++*/
scRemBuyTrail(Buy,Entryprice,
StopPrice,StopLoss,TrailStop,
Target,ExitBin,Bars);
when the exit bin returns 1 , you exit next bar on open
BUT it is a sell condition , NOT a short condition
yes you can disable stoploss or trailingstop, as the rembuy is only
for LONG side, if the stoploss or trailingstop are zero, never the
price will be below, so give the value zero or -1.
stoploss=-1;
trailstop=-1;
scRemBuyTrail(Buy,Entryprice,
StopPrice,StopLoss,TrailStop,
Target,ExitBin,Bars);
|