Fixed Stop Loss expression

 

Hi

I'm having trouble expressing how i would like my stop loss set. I can only do, for a long position,         StopLoss_   = iLow( Symbol(), 0, 1 ) > MarketInfo (Symbol(),MODE_ASK ) ;  which is great when i enter as my stop will be the low of previous bar. But as soon as a new bar starts my stop loss moves next bar. I want it to stay fixed. Could some one offer any suggestions? 

Thanks

Benz 

 
Benz:

Hi

I'm having trouble expressing how i would like my stop loss set. I can only do, for a long position,         StopLoss_   = iLow( Symbol(), 0, 1 ) > MarketInfo (Symbol(),MODE_ASK ) ;  which is great when i enter as my stop will be the low of previous bar. But as soon as a new bar starts my stop loss moves next bar. I want it to stay fixed. Could some one offer any suggestions? 

Thanks

Benz 



shift    = iBarshift of the orderopentime of your trade +1

 StopLoss_   = iLow( Symbol(), 0, shift ) 

 
Thanks deVries, I'll go try this