Sometimes, when I do a reloadEFS(), getBarState always returns BARSTATE_NEWBAR. When I reload manually, and sometimes with reloadEFS in the exact same program, getBarState returns BARSTATE_CURRENTBAR correctly. In 7.7 replay mode. Is this another replay mode bug?
Announcement
Collapse
No announcement yet.
reloadEFS getBarState
Collapse
X
-
Hello cashcarewins,
I'm not seeing any problems with getBarState(). Its possible that you're just looking at the return results improperly in your code. Try the formula below. It draws a button in the lower left corner of the chart and calls reloadEFS() when clicked. As the formula executes on each iteration you will see the bar state information printed to the formula output window. It's working properly as far as I can see on reloadEFS(), manual reload or a chart refresh. It's also working properly in tick replay mode.
reloadEFSButton.efsJason 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