+1 888 340 6572
MultiCharts Project Management
Go to the previous open issue
Go to the previous issue (open or closed)
Please log in to bookmark issues
Closed Bug report MC-2062

Backtest hangs when MaxBarsBack > instrument range

Go to the next issue (open or closed)
Go to the next open issue
icon_info.png This issue has been closed with status "Not a bug" and resolution "Not determined".

If MaxBarsBack > instrument range, the signal does nothing.

Steps to reproduce this issue

Set "Maximum number of bars study will reference" to 3000
Set instrument date range to less than 4 days
Add a signal to the chart
Result: The signal doesn't work: Only Create() is called. Other functions like StartCalc() are not.
Additional info:
I Use MC.Net 9.1, EUR/USD, 5 minute candles, bid&ask charts, bar magnify every tick.

Comments (1)
user-offline.png  MultiCharts Support (MultiCharts)
Jun 17, 2016 - 16:29

MaxBarsBack is the amount of bars that would be used for initial script calculation, to get the initial value of functions, variables.
This amount of bars would be skipped, so you will see a first signal on maxbarsback+1 bar (for example).
Chart data range should be higher than MaxBarsBack value.
Average of 10 bars it would require a setting of 10.
If your MaxBarsBack is not enough the study would not be calculated and will show an error message.
If your MaxBarsBack is too high (more than the amount of bars on your chart) then the study will be waiting for the required amount of bars.
On the chart you can see "Strategy Calculating" message in such case.

Issue basics
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (2)
People involved
Times and dates
  • Posted at
  • Last updated
Issue details
  • Reproducability
    Not determined
  • Severity
Attachments (0)
There is nothing attached to this issue
Commits (0)
There are no code checkins for this issue
Duplicate issues (0)
This issue does not have any duplicates