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 kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    57 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    39 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    45 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    35 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    153 views
    0 likes
    Last Post SalmaTrader  
    Working...
    X