+1 888 340 6572
MultiCharts Project Management
Go to the previous open issue
Go to the previous issue (open or closed)
Please log in to bookmark issues
Open Feature request MC-616

Please create a Static variable like in program languages for power langauge.

Go to the next issue (open or closed)
Go to the next open issue

When I program in PowerLanguage I want to check what this static variable value was after exiting and coming back in and then when a condition occurs I set the Static variable .  I was told the variable automatically knows to be a static or local variable.  Unfortunately I have found many situations where it does not know to be Static.  Definition of Static is; When variable is set; it keeps this value until my code changes it, even though the process has exited and entered back in to a indicator.
Most time it does work as a static then others it sometimes works as a local variable.  This makes using variables un-reliable.  (Will it work or not.  Oh my I added code and suddenly other things that use to work do not.)  In the programming world this would be called a feature(Bug).  Can not depend on a variable remembering what value it had.  Power Language thinks you now want it as a local variable so it will change the value, next time the indicator is tick has changed.  Frustrated!
Currently I have to pass the value out as a global and then re-read it back to keep the value.

Steps to reproduce this issue


Comments (0)
Issue basics
  • Type of issue
    Feature request
  • Category
  • 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
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