In My strategy, i am always trying to check if I am long or short. If I am already long then even though the signal indicates to go long, the strategy shouldnt enter any trade. To use this logic, I am using position.marketposition variable to check if I am already long at the current bar.
But I observed, that when the on the bar update, even though my position is not exited, the Position.MarketPosition indicates that I am flat.
Q. Should I be using MarketPosition variable.
Q. Is there any other variable / value i can use.
thanks,
Madhav
Comment