+1 888 340 6572

Why Identical Charts Are Showing Different Strategy Trading Results: Difference between revisions

From MultiCharts
No edit summary
Line 6: Line 6:
== Different Starting Points of Strategy Calculation ==  
== Different Starting Points of Strategy Calculation ==  
When a chart is created and a strategy is applied to the chart, it is backtested, immediately displaying entries and exits. It is important to understand that the calculation's starting point in this case is not the first bar due to [[Strategy Properties#Setting Maximum Bars Back|MaxBarsBack value]] (aka the Maximum number of bars a study will reference) '''the first bar when an order can be generated (to be placed on next bar) is bar # X''', where '''X = MaxBarsBack value + 1'''.
When a chart is created and a strategy is applied to the chart, it is backtested, immediately displaying entries and exits. It is important to understand that the calculation's starting point in this case is not the first bar due to [[Strategy Properties#Setting Maximum Bars Back|MaxBarsBack value]] (aka the Maximum number of bars a study will reference) '''the first bar when an order can be generated (to be placed on next bar) is bar # X''', where '''X = MaxBarsBack value + 1'''.
<div style="background-color: #E3FBE5;">'''Example''': Let's say a signal contains only 1 line: '''buy next bar market''' and the MaxBarsBack is set to '''50'''. It means script will be be calculated only at close bar # '''51''' to place the '''buy market''' at open of bar # '''52'''. Depending on the [[Auto Trading#Mode Selection|selected mode of auto trading]], the starting point for a strategy to calculate may differ.</div>
<div style="background-color: #E3FBE5;">'''Example''': Let's say a signal contains only 1 line: '''buy next bar market''' and the MaxBarsBack is set to '''50'''. It means script will be calculated only at close bar # '''51''' to place the '''buy market''' at open of bar # '''52'''. Depending on the [[Auto Trading#Mode Selection|selected mode of auto trading]], the starting point for a strategy to calculate may differ.</div>


=== Synchronous Mode ===
=== Synchronous Mode ===