I'm building a strategy that uses the Short Terms Swings indicator that turns red for down trends / green for up trends. I'd like to execute long or short buys based off this indicator. I'm getting executions based off the indicator but they are executed 2 bars too late. I'd like the order to be executed right when the indicator changes direction. I've experimented with the
CalculateOnBarClose = false;
but that doesn't seem to change the behavior. My order execution code occurs within the OnBarUpdate() event so maybe that's the problem. Should I be using a different event to be checking my indicator?
Thanks in advance!

Comment