I am experiencing an issue with the BetterSwing indicator when used in a strategy. The indicator itself displays correctly on the chart, and all swing calculations appear to be accurate. However, when I call the getter methods (such as GetLastSwing() and GetAllSwings()) from within my strategy, they do not return any instances of mySwing – they consistently return null.
Key Points:
- The BetterSwing indicator works perfectly on the chart.
- The getter methods in the strategy fail to return any mySwing instances.
I suspect this might be due to timing issues related to when a swing instance is considered complete or possibly due to an initialization order. Additionally, perhaps I simply do not fully understand the call architecture, and I would greatly appreciate it if you could explain the underlying cause of this problem.
Thank you for your assistance.
Best regards,
DarthTraderrrrr

Comment