Hi,
I want to trade a level only once and do not want to enter the trade same level twice. But below code isn’t working:
RTHoperate = (TIME > 142000 AND TIME < 203000) // GMT+1
if time < 143000 then
spread = 2
else
spread = 1
endif
MyLongPrice = round(max(myBarLower, myBarUpper))
distance = abs(myBarHigh – myBarLow)
if NOT ONMARKET and RTHoperate and close > MyLongPrice then and (MyLongPrice <> tradeprice[1]) then
SET STOP PLOSS distance + spread
set target pprofit distance*20
endif
Above code (if no market …) keep rentering the same location.
2nd question: If i want to go long using the same myLongPrice twice, what protection I can put in the code?
Regards
Ash