- Strategy calc set to OnPriceChange - minute candlesticks are basis for trade - tick replay enabled on chart when testing
- Entry is calculated OnPriceChange using various indicators (indicators not relevant to issue)
- Looking to exit when price crosses the most recent previous Swing (high or low not particularly relevant to issue)
- Noticed from Swing indicator code that it is set to calculate OnBarClose
- I'm reasonably familiar with Swing behavior, how it calculates, etc
- MUCH research and reviewing of help guides, forum posts, etc has been done but open to all suggestions
- I have print statements throughout my strategy
- When looking to exit a position on price cross of previous swing, the Swing value strategy is able to calculate is not same as swing plot on chart
- Code sample - if Close[0] < High[Math.Max(0, Swing1.SwingHighBar(0, 1, varSwingPeriod*2))]
- I'm guessing Swing sees each price change as a new "bar close" and uses that to base it's calc on and not a full bar close, but looking to experts on that theory
- Given the PriceChange calc approach, what can be done to allow Swing to calc on full bar close and rest of logic OnPriceChange?
- I thought of adding another data series but didn't see a way to have series 0 be OnPriceChange and series 1 to be OnBarClose.
- Help, please! :-)

Comment