+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-415

multiperiod data

action_vote_minus_faded.png
2
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

MC has a very nice feature to display charts with different resolutions in the same plot window (hidden or visible) which can then be accessed by a single study using the data(n) format.  This is fine for most situations but I've developed some trading rules that require the resolutions to be indeterminate.  In other words, the resolutions are not necessarily known in advance and they vary according to certain conditions.  So, a new feature would be nice that allows a study to access the data at different resolutions without the need to plot them in the first place.  One approach would be to use a modified format as follows:
close(n,m,x) where m = an integer corresponding to the bartype_ex, m = an integer corresponding to the barinterval, and x = the bar number with 0 being the current bar, 1 the previous, and so on.  Examples:

  • open(2,10,0) would return the open of the most recent 10-minute bar
  • close(2,5,1) would return the close of the previous 5-minute bar

It would be even nicer if this is calculated on a rolling basis for each bar of the main chart so it's not limited to what a normal chart would show.  I'll explain by way of an example:
Say you have a 1-minute chart plotted.  For each 1-minute bar, the value of say close(2,10,0) would return the close of the 10-minute bar made up of the last ten 1-minute bars regardless of the time.  This way each 1-minute bar plotted would produce a new 10-minute value for the close in this case.  Most of the time this is different to what a traditional 10-minute chart would show but can be more useful.

Steps to reproduce this issue

See example given.

Comments (0)
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
    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