can you use compute on close and barstate currentbar at the same time
Announcement
Collapse
No announcement yet.
EfS computeonclose/barstate
Collapse
X
-
sam
It is possible to check for BARSTATE_CURRENTBAR in the same script in which you are using setComputeOnClose() however because setComputeOnClose() forces a formula to execute only once per bar [when a bar is completed and a new bar is being formed] getBarState() will never return a bar state of CURRENTBAR
Alex
Comment