Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Access 'Data Series' properties of Strategy Analyzer while in SetDefaults

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

    Access 'Data Series' properties of Strategy Analyzer while in SetDefaults

    Hi.

    Is there a way to access 'Data Series' properties of the Strategy Analyzer window while in SetDefaults state?

    We have existing code, which opens up a window, that shows up as one of the 'Parameter' properties and it works when used in an indicator because we are able to tap onto the active chart and get data from there.

    When used in a strategy, for backtesting, there is no chart opened and 'Data Series' in the Strategy Analyzer is yet to be set by the user. Setting the Instrument prop triggers SetDefaults but selected value cannot be accessed thru Instrument prop in the strategy though.

    For now, the temporary solution is to have an actual chart open with same Data Series prop values to be used in the Strategy Analyzer and this should allow coding to continue.

    So is there a way to access the 'Data Series' props or any of the props in the Strategy Analyzer while in SetDefaults state?

    Thanks.

    #2
    Hello cmarkb,

    Thank you for your post.

    Accessing Instrument information prior to State.DataLoaded is unsupported and should be avoided for the reasons you're running into here.

    This is noted in our help guide here:



    There would not be a supported way to access Instrument from State.SetDefaults reliably.

    Please let us know if we may be of further assistance to you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    134 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 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