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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    66 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    142 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    76 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    47 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    51 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X