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 NullPointStrategies, Today, 05:17 AM
    0 responses
    39 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    124 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    64 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    41 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X