Hi,
I use EFS function volume() to obtain
Volume for each bar on a 5-minute
Advanced Chart of "ES M4". One more way
that I obtain the same volume data is if
I load the chart at the end of the day.
The problem I see is that Volume values
received by the EFS volume() function
are always lower by 5 to 1000 contracts.
Here is a piece of EFS code I use:
This means that my backtesting of
trading systems will give different
results than realtime trading. This is a
serious problem.
I would like the volume(-1) call above
to give me exact same volume as what I
get by re-loading the chart.
I would really appreciate if somebody explained
how I can correct or work around this problem.
Thank you,
-pupkin2
I use EFS function volume() to obtain
Volume for each bar on a 5-minute
Advanced Chart of "ES M4". One more way
that I obtain the same volume data is if
I load the chart at the end of the day.
The problem I see is that Volume values
received by the EFS volume() function
are always lower by 5 to 1000 contracts.
Here is a piece of EFS code I use:
Code:
function main() { if (getBarState() == BARSTATE_NEWBAR && getCurrentBarIndex() == 0) { // this is how I obtain volume: var myVolume = volume(-1); // ... then I use myVolume ... } } // end main()
trading systems will give different
results than realtime trading. This is a
serious problem.
I would like the volume(-1) call above
to give me exact same volume as what I
get by re-loading the chart.
I would really appreciate if somebody explained
how I can correct or work around this problem.
Thank you,
-pupkin2
Comment