Hi everyone!
how can i code to exit both long or short position just after finishing the bar?
sell at market
exitshort at market
Very simple but this was maybe not what you want. Is it a special bar you want to exit after?
Thanks for reply
how if i want exit after special number of bars?!
Then you do so. LOL
if barindex-tradeindex=X then
sell at market
exitshort at market
endif
I tried this alrdy but sometimes delay to close. I may try again i shld be wrong. With thanks.