Attached is the version of the test efs that prints the data. It is kind of a crude mechanism, but it works.
Run as is for RT...when you go to load the second chart either edit the current file, or create a new one with the conditionals changed to reflect the ones commented out ie:
When running in RT:
if ( nBarState == BARSTATE_NEWBAR && getCurrentBarIndex() == 0 ) {
//if ( nBarState == BARSTATE_NEWBAR ) {
When running in historical:
// if ( nBarState == BARSTATE_NEWBAR && getCurrentBarIndex() == 0 ) {
if ( nBarState == BARSTATE_NEWBAR ) {
This will generate much more data than you need for the historical data, and the better way to do this would have been to check current date against chart date so the same code can be used in both cases...but I wanted to crank this out and can never remember the date commands.
Again, any help or suggestions would be appreciated.
Garth
Run as is for RT...when you go to load the second chart either edit the current file, or create a new one with the conditionals changed to reflect the ones commented out ie:
When running in RT:
if ( nBarState == BARSTATE_NEWBAR && getCurrentBarIndex() == 0 ) {
//if ( nBarState == BARSTATE_NEWBAR ) {
When running in historical:
// if ( nBarState == BARSTATE_NEWBAR && getCurrentBarIndex() == 0 ) {
if ( nBarState == BARSTATE_NEWBAR ) {
This will generate much more data than you need for the historical data, and the better way to do this would have been to check current date against chart date so the same code can be used in both cases...but I wanted to crank this out and can never remember the date commands.
Again, any help or suggestions would be appreciated.
Garth
Comment