Announcement

Collapse
No announcement yet.

button to reset a value

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • button to reset a value

    see attached to the current mess.

    Trying to add a button to a study I found that will draw a line on session high and low, where the session is the limiting factor according to a (pre)set time. So my goal is to be able to reset the 'session' variable by right clicking on the button... can get the value into a variable but cannot get the study to accept the value of the variable as the new value for the study.

    thoughts, ideas, suggestions --> any and all are appreciated.
    Attached Files

  • #2
    Hello cfra,

    You will not be able to accomplish what you are trying to do with the text label that calls the catchme() function. The new start time will be set to the time stamp of whatever the current bar 0 is.

    The easiest way to accomplish this task is to use the original Session Start Time parameter that is currently commented out in your formula. Re-instate that formula parameter by uncommenting it in preMain() and add the SessionStartTime variable to the arguements for main().



    Jason K.
    Project Manager
    eSignal - an Interactive Data company

    EFS KnowledgeBase
    JavaScript for EFS Video Series
    EFS Beginner Tutorial Series
    EFS Glossary
    Custom EFS Development Policy

    New User Orientation

    Comment


    • #3
      Thanks, I will give it a try and see what happens.

      Comment

      Working...
      X