Different stops for Long and Short Trades.

1. set a variable inLong and inShort to tell you when you are in a 
long trade versus a short trade.
Note that the following works for me because of the settradedelay. 
Might not work for you:
inLong = Ref(Flip(Buy,Sell),-1);
inShort = Ref(Flip(Short,Cover),-1);
2. Then you might want to use the following: (different percentages 
for long versus short)
ApplyStop(stopTypeProfit,stopModePercent,IIf(InLong, LPerCentProfit, 
SPerCentProfit), True, False) ;  

--- In [email protected], Keith McCombs <kmcco...@...> wrote:
>
> I would like to use|
> ApplyStop(*stopTypeNBar*, *stopModeBars*, numbars);
> with two different values of numbars, one for long trades and the 
other 
> for short ones.
> 
> Is there any straight forward way to do this?
> 
> I am pretty sure that I can implement the effect without using 
> ApplyStop(), but I would be using looping (and probably be 
reinventing 
> the wheel).
> 
> TIA.
> -- Keith
> |
>


Reply via email to