Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Back testing strategy and adding or loading indicators/template to output chart

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

    Back testing strategy and adding or loading indicators/template to output chart

    I am (back)testing a strategy with historical data. In the output chart I can see the buy and sell signals. When I want to insert indicators (or a template) in the output chart I am losing the buy and sell signals from the back testing strategy. Is there a way to add or load indicators in the output chart (afterwards) without losing the buy and sell signals?

    #2
    Do a Help Search for "Add" and you will find this:

    protected override void Initialize()
    {
    // Add a 5 minute Bars object - BarsInProgress index = 1
    Add(PeriodType.Minute, 5);
    // Add a 100 tick Bars object for the ES 12-06 contract - BarsInProgress index = 2
    Add("ES 12-06", PeriodType.Tick, 100);

    // Charts a 20 period simple moving average to the chart
    Add(SMA(20));
    }



    Look at the last Add command.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    115 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    161 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    83 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    127 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    87 views
    0 likes
    Last Post PaulMohn  
    Working...
    X