+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
feature_request_small.png
Open Feature request MC-513

Need MaxBarsBack to be user configurable inside a signal or indicator

action_vote_minus_faded.png
8
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
Description

We need a way to let the signal/indicator specify the appropriate MaxBarsBack as strategies may require that the MaxBarsBack be dynamic and something that can be optimized.

There are MANY discussions on the forums about the flaws of the current design and the resulting drawbacks.

Here is just one example of a good discussion on the issues and possible solutions:


http://www.multicharts.com/discussion/viewtopic.php?f=1&t=7567&hilit=MaxBarsBack

Please improve the functionality.

Steps to reproduce this issue

We need a way to let the signal/indicator specify the appropriate MaxBarsBack as strategies may require that the MaxBarsBack be dynamic and something that can be optimized.

There are MANY discussions on the forums about the flaws of the current design and the resulting drawbacks.

Here is just one example of a good discussion on the issues and possible solutions:


http://www.multicharts.com/discussion/viewtopic.php?f=1&t=7567&hilit=MaxBarsBack

Please improve the functionality.

Comments (1)
#0
user-offline.png  Dave (Dave)
Sep 22, 2011 - 02:00

If you are worried that variables, that are not series ones, use excessive CPU, your worries are in vain.
1) If the variable is not used as a series (the operator [] is not applied directly or indirectly to the variable and this variable is not a part of the statement, that in it's turn is an argument of serial input of any function) it will be simple - consequently a buffer for history values storage with MaxBarsBack depth won't be created.
2) If the variable is not serial and its value is set after the last one has been just read, such a variable will be lite variable, i.e. the buffer for saving the last close value of the bar won't be created and the rollback operation won't be applied.
You may check the actual variable type (series or simple) after successful compilation of the study: place the mouse pointer on the necessary variable in editor window - hint window with actual type (for example: NumericSimple or NumericSeries) will be shown.
 

History
Issue basics
  • Type of issue
    Feature request
  • Category
    Usability
  • Targeted for
    Not determined
  • Status
    Under Review
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (3)
People involved
Times and dates
  • Posted at
  • Last updated
Issue details
  • Resolution
    Not determined
  • Severity
    Critical
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