Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Getting data from Custom Indicator in My Strategy

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Getting data from Custom Indicator in My Strategy

    Hello Support Team,

    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:
    1. The BetterSwing indicator works perfectly on the chart.
    2. 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
    Attached Files

    #2
    Hello darthTraderrr,

    Thank you for your post.

    You may need to call Update() in the property getter to return the up-to-date value.

    Please see the Help Guide page below.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    128 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    65 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    117 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X