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

IDataDrawEnvironment.ChartPoint2Point broken for non-time based charts

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 "Released" and resolution "Not determined".
Description
  • I'm using MC .NET SE v9.1 build 12061.
  • I have a couple of indicators that use ChartPoint2Point to draw towards the right edge of the chart. They worked great for many releases until build 12061.
  • Note that I am using a Custom Draw indicator and the Environment.RightScreenTime system variable.
  • ChartPoint2Point returns strange values for any chart that does NOT use a time-based scale. That is, volume bars or tick bars (haven't tried others). The values start at the right edge of the window (correct value) and then slowly drift left with each tick until they reach the bar/time where the indicator was initialized. Then ChartPoint2Point always returns the X coordinate of that bar as it moves left (when new bars are drawn).
  • Please see attached example indicator that illustrates the issue with debug output.

Sample output from today:
RightScreenTime = 12/7/2015 11:20:21 AM, rightEdge.X = 1036
RightScreenTime = 12/7/2015 11:20:21 AM, rightEdge.X = 1028
RightScreenTime = 12/7/2015 11:20:21 AM, rightEdge.X = 1012
RightScreenTime = 12/7/2015 11:20:21 AM, rightEdge.X = 1004
RightScreenTime = 12/7/2015 11:20:21 AM, rightEdge.X = 996
RightScreenTime = 12/7/2015 11:20:21 AM, rightEdge.X = 988
RightScreenTime = 12/7/2015 11:20:21 AM, rightEdge.X = 988
RightScreenTime = 12/7/2015 11:20:21 AM, rightEdge.X = 964
RightScreenTime = 12/7/2015 11:20:21 AM, rightEdge.X = 964
RightScreenTime = 12/7/2015 11:20:21 AM, rightEdge.X = 948
RightScreenTime = 12/7/2015 11:20:21 AM, rightEdge.X = 940
RightScreenTime = 12/7/2015 11:20:21 AM, rightEdge.X = 940
RightScreenTime = 12/7/2015 11:20:21 AM, rightEdge.X = 932
RightScreenTime = 12/7/2015 11:20:21 AM, rightEdge.X = 932
RightScreenTime = 12/7/2015 11:20:21 AM, rightEdge.X = 932
RightScreenTime = 12/7/2015 11:20:22 AM, rightEdge.X = 924
RightScreenTime = 12/7/2015 11:20:22 AM, rightEdge.X = 924
RightScreenTime = 12/7/2015 11:20:22 AM, rightEdge.X = 924

Steps to reproduce this issue
  1. Compile attached indicator and attach to a chart with volume based bars or tick based bars (not time bars).
  2. Notice that for volume based charts, the right edge X value starts at the right edge of the window and slowly moves left (lower value) even though there is no new bar (RightScreenTime remains the same). It eventually settles at the X coordinate of the latest bar on the chart. When a new bar arrives, the right edge X value again moves left and stays with the prior bar.
  3. For time-based charts, the right edge X value remains constant regardless of RightScreenTime or new bars.
Comments (1)
#0
user-offline.png  Guest (Guest)
Dec 12, 2015 - 19:28

I just read the release notes for MC v9.1 R2. There's an item that says fixed "future bar time stamps not correct" or something like that. That "fix" is most likely what caused this to break. In case anyone is reading this.

History
Issue basics
  • Type of issue
    Bug report
  • Category
    Usability
  • Targeted for
    MultiCharts 10.0 (RELEASED)
  • Status
    Released
  • Priority
    Not determined
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