ramaParticipant
Senior
DEFPARAM CumulateOrders = False
cr=dhigh(0)-dlow(0)
c1=Dhigh(0)-5
c11=dhigh(0)-10
c3=highest[400](high)-dhigh(0)
x=.6
if ( close[1]>=c11 and close[1]<=c1 ) and c3 and cr>=100 then
sellshort 1 perpoint at close[1]-x stop
endif
set stop loss 12.5
set target profit 200
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