MultiCharts Easter Sale has jumped in! Up to 50% off Explore offers
+1 888 340 6572
MultiCharts Project Management
previous_open_issue.png
Go to the previous open issue
previous_issue.png
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
bug_report_small.png
Closed Bug report MC-2062

Backtest hangs when MaxBarsBack > instrument range

action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
next_issue.png
Go to the next issue (open or closed)
next_open_issue.png
Go to the next open issue
icon_info.png This issue has been closed with status "Not a bug" and resolution "Not determined".
Description

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)
#0
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.

History
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
    Normal
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