Hi im new one ,i want to ask haw i write in the program ,that i want to sell the position in the closing price off candle ,up and down .I cant find a target command to do that.
Hi! Did you try?:
REM LONG
target1=High[1] //Could be "close" "open"...etc
IF LongOnMarket then
sell at target1 limit
endif
REM SHORT
target2=Low[1] //Could be "close" "open"...etc
IF ShortOnMarket then
exitshort at target2 limit
endif
This code will set the target at the top or bottom of previous candle.
Cheers!