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

Intrabarpersist warning at Update On Every tick choice.

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

1 of 2 related suggestions: This is a documentation related issue.
It is an idea extracted from this link.
http://www.multicharts.com/discussion/viewtopic.php?f=1&t=7567#p43814
When a user checks "update on every tick" a WARNING popup box could tell them that in order for the variable to retain its value when a new tick comes in "IntraBarPersist" needs to be used. . However, at the same time maybe they should get an error if the compiler detects they are using IntraBarPersist for the ID of a Text_new Arw_new or TL_new. The reason you can not use IntraBarPersist as an ID for these commands is the object keeps getting removed until barstatus = 2 anyway and storing a number that might change the next time around causes problems (I made that mistake). So the warning would need to take them to a help to explain why. It needs to explain it by sending them to a help page that shows them the process. My link below explains that one too. It took me a long time to figure out what was going on. If a popup showed up every time a user used "update on every tick" and it took me to documentation and examples it would have saved a lot of time.
The problem with IntraBarPersist is experienced programmers and normal people learning programming will automatically assume that a variable (once set) will not be changed by something else. Their assumption makes perfect sense. The need for the inclusion of IntraBarPersist to do what is normal is not good. So I guess it is too late to remove IntraBarPersist but these ideas would help.
If this suggestion goes in consider this idea for turning warnings off then on again.
http://www.multicharts.com/pm/viewissue.php?issue_no=MC-495

Steps to reproduce this issue

See this post for test code. The thread includes code for the TL_new problems as well.
http://www.multicharts.com/discussion/viewtopic.php?f=5&t=6871&p=29461#p29462

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