What exactly does BARSTATE_NEWBAR mean?
I am having a little trouble understand eSignal EFS code.
I coded the TRO_AROON for a friend and noticed the TREND was incorrect.
So I tried a few things and this:
seems to work right.
I checked it on a few charts and the count was correct.
But something just doesn't seem right to me!
If the BarState is a NEW BAR then is the code processing the last tick data of the previous bar or the first tick data of the new bar?
Yes, I looked in the Knowledgebase and found:
But that doesn't really answer my question. Anyone who has coded in RPGII would understand why I ask.
Is there a chart somewhere that shows the EFS processing cycle?
Before I go back and change all the code I have written, I need to understand this!
Thanking You In Advance.
I am having a little trouble understand eSignal EFS code.
I coded the TRO_AROON for a friend and noticed the TREND was incorrect.
So I tried a few things and this:
PHP Code:
if( getBarState() == BARSTATE_NEWBAR ) {
if( tR1C1 == tR1C11 ) { xR1C1Count = xR1C1Count + 1 ; }
else { xR1C1Count = 1 ; }
tR1C11 = tR1C1 ;
}
I checked it on a few charts and the count was correct.
But something just doesn't seem right to me!
If the BarState is a NEW BAR then is the code processing the last tick data of the previous bar or the first tick data of the new bar?
Yes, I looked in the Knowledgebase and found:
if (nState == BARSTATE_NEWBAR) {
//this flag is set when a new bar is coming in
debugPrint("The first tick of a new bar has arrived\n");
//this flag is set when a new bar is coming in
debugPrint("The first tick of a new bar has arrived\n");
Is there a chart somewhere that shows the EFS processing cycle?
Before I go back and change all the code I have written, I need to understand this!
Thanking You In Advance.
Comment