Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

StratAnalyser: Stopping Indicator re initialisation

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

    StratAnalyser: Stopping Indicator re initialisation

    Hello,
    I have a custom indicator that reads and parses data from a text file and it works great.

    The problem is that when running and optimization it reads and parses the information again and again on each iteration. is there a way to just let it reuse the same initialised indicator for each itteration?

    I am aware of and i am using:
    IsInstantiatedOnEachOptimizationIteration = false;

    then in state.DataLoaded i have:
    else if (State == State.DataLoaded)
    {
    if(myIndicator1 == null)
    myIndicator1 = myIndicator(TextFile);​
    }

    I thought the above will cause the indicator to be recycled and not reinitialised.. however it didnt work.
    Thanks

    #2
    Hello madb123,

    You would need to move that logic into the strategy if you want to make use of IsInstantiatedOnEachOptimizationIteration for your loading logic. Each optimization test will re initialize the indicator so it can process.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rubiijonson, Today, 01:02 AM
    0 responses
    4 views
    0 likes
    Last Post rubiijonson  
    Started by fkronloff, Today, 12:25 AM
    0 responses
    3 views
    0 likes
    Last Post fkronloff  
    Started by Zadomani, Yesterday, 11:39 PM
    0 responses
    11 views
    0 likes
    Last Post Zadomani  
    Started by ToNovy, 01-27-2025, 11:22 PM
    20 responses
    197 views
    0 likes
    Last Post ToNovy
    by ToNovy
     
    Started by hypercube, 03-07-2025, 12:22 AM
    2 responses
    38 views
    0 likes
    Last Post hypercube  
    Working...
    X