I am using the above code to sell when close price on 3 sec candle is between day high -5 and day high -10 points . also I want to sell when price is going down from day high. example
day high is 14010
I want to sell anywhere between 14000 and 14005 also when price is going down from 14010
the code worked and placed one order ( I see it is magic ) after one order it did place any further though the conditions matched