Hi i am a newbie in coding.I want to test a simple strategy :
buy if this bar crosses the high of last bar high
sell short if this bar low crosses the last bar low
but my doubt is how to give order that it buys few ticks above the last bar high and sell few ticks below last bar low.
The order is executing only on the closing price of the bar or the next bar at open.
how to solve this problem?
buy if this bar crosses the high of last bar high
sell short if this bar low crosses the last bar low
but my doubt is how to give order that it buys few ticks above the last bar high and sell few ticks below last bar low.
The order is executing only on the closing price of the bar or the next bar at open.
how to solve this problem?