Logic is:
Alert candle is the one which doesn’t touch 5EMA… enter in the next candle as soon as the low of alert candle breaks…
The alert candle keeps on shifting… in this case it shifted upto 9:45 since previous candles were away from 5EMA but the next candles weren’t breaking the alert candle’s (previous candle) low.
It happened at after 9:45 AM that the previous candle which was away from 5EMA and broke the low…
SL becomes alert candle high… and target double of sl…
Thanks a lot for the logic guide…
after placing the entry and sl parameters and once the order is placed on the terminal, can i exit the trade manually?
Eg. when markets are sideways and Since targets are not placed in the logic code?
And one more thing… i want to enter short position as soon as the low is broken…
i tried backtesting the code… but it enters the trade at the next candle close.
If you have any specific criteria, based on which you can determine a sideways market, then can be added in the exit logic depending upon the criteria.
If you are referring to LTP, Streak sends triggers on the basis of OHLC data and not LTP. This cannot be added, unfortunately.