Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Dynamically loading an Additional Series

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

    Dynamically loading an Additional Series

    I discovered it's not permitted and tried to get around it by doing this in State.Configure thinking perhaps at least make a choice about it once but no, that's not permitted either. I'm guessing the only way would be to load all choices and then use a specific one in a switch statement in OnBarUpload then?

    switch (htFrame)
    {
    case 1:
    AddDataSeries(Data.BarsPeriodType.Minute, 15);
    break;
    case 2:
    AddDataSeries(Data.BarsPeriodType.Minute, 30);
    break;
    case 3:
    AddDataSeries(Data.BarsPeriodType.Minute, 45);
    break;
    case 4:
    AddDataSeries(Data.BarsPeriodType.Minute, 60);
    break;
    case 5:
    AddDataSeries(Data.BarsPeriodType.Minute, 120);
    break;
    case 6:
    AddDataSeries(Data.BarsPeriodType.Minute, 180);
    break;
    case 7:
    AddDataSeries(Data.BarsPeriodType.Minute, 240);
    break;
    default:
    AddDataSeries(Data.BarsPeriodType.Minute, 60);
    break;
    }​

    #2
    Hi markdshark, thanks for posting. It is possible to make this a user configurable option, it would just not work well when using the strategy analyzer. See the "Correlation" indicator in the indicators folder for an example on using user input for this method.

    Kind regards,
    =ChrisL

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    44 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
    65 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 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