Please indicate where we can find a list of all EFS reserved words and their meaning.
Announcement
Collapse
No announcement yet.
Reserved Words
Collapse
X
-
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
-
Hello mbuta,
BARSTATE_ALLBARS is a returned string associated with the getBarState() function. There are three states that can be returned:
BARSTATE_ALLBARS - Returned when an advanced chart is instantiated for the first time.
BARSTATE_NEWBAR - Returned at the beginning of a new bar.
BARSTATE_CURRENTBAR - Returned for each tick intra-bar.
You can use getBarState() to control what happens with your formula for these three states. For example:
PHP Code:function main() {
var BarState = getBarState();
if (BarState == BARSTATE_ALLBARS) {
// do something only once at the beginning
}
if (BarState == BARSTATE_NEWBAR) {
// do something only when a new bar starts
}
if (BarState == BARSTATE_CURRENTBAR) {
// do something for every tick
}
}
There isn't a single list that contains all the EFS specific words like these states above. Is there a specific problem you are trying to solve? If you are just trying to learn more about writing EFS formulas I would recommend reading our guides for developing eSignal Indicators and back testing Strategies. If there are other specific key words you want to learn more about, you could do a search for that word and find other threads containing those words. Hope this helps.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
-
see how GetBarState() works in the Formula Output window
Comment
Comment