The display location on the chart is fine. It does not reset to '0' at the beginning of a new bar. It only resets to '0' when the eSignal application clock on the lower left hand corner starts a new minute. The display then counts to the mid-twenties (in seconds), and then stops and does nothing until the eSignal clock reaches the start of a new minute again, regardless of the bars.
Vailskier
As you can see in the enclosed images the script you posted is working as expected at my end [with at the most a discrepancy of 1 second now and then between the program's clock and the time displayed by the efs]. Also the timer is resetting at the beginning of each new bar
Alex
Originally posted by Vailskier The display location on the chart is fine. It does not reset to '0' at the beginning of a new bar. It only resets to '0' when the eSignal application clock on the lower left hand corner starts a new minute. The display then counts to the mid-twenties (in seconds), and then stops and does nothing until the eSignal clock reaches the start of a new minute again, regardless of the bars.
Ted608
See this article in the EFS KnowledgeBase regarding the getCurrentBarIndex() function and see section 2.4.4 in the Beginner Tutorial 2: Commonly Used Core JavaScript (also in the EFS KnowledgeBase) regarding the return statement and its use
Alex
Comment