Opting for stop loss from 2 variables.

 
I am building an ea, i want to use either candle low or the Sar low below the candle..
If the Sar indicator value is not there available below the entry candle. The stop loss should be previous candle low.
I already coded for trailing sl as per SAR value but
Finding it difficult to code this .. 
Please guide for this to place an stop loss for trade.
Thanku

 

If you need help with code, then show the code.

Also show debug prints to Experts log, and Journal log output if necessary.

 
Fernando Carreiro #:

If you need help with code, then show the code.

Also show debug prints to Experts log, and Journal log output if necessary.

Just opted for previous swing low as my default stoploss.. that was the best alternative.
And Sar value as trailing Sl.
No errors or problem now. Solved :)