I get condused with this type of code almost every time and right now I cant figure it out - again.
I have two sections of code one starts
if(getCurrentBarIndex()==0 && //real time
getBarState()==BARSTATE_NEWBAR ){//new bar)
...
}
the other is
if(getCurrentBarIndex()!=0){//back testing
...
}
My dilema - I want to return high()-high(-1)
Do I need to change the math for each of the two sections - it appears the numbers returned are different cuz when I reload the efs the plot changes.
Any suggestions?
I have two sections of code one starts
if(getCurrentBarIndex()==0 && //real time
getBarState()==BARSTATE_NEWBAR ){//new bar)
...
}
the other is
if(getCurrentBarIndex()!=0){//back testing
...
}
My dilema - I want to return high()-high(-1)
Do I need to change the math for each of the two sections - it appears the numbers returned are different cuz when I reload the efs the plot changes.
Any suggestions?
Comment