I would like to cycle through a list of symbols and write the OHLC data to a csv (Ascii) file. When each symbol finishes writing, I load the next symbol in the list using the line:
Code: Select all
if lastbaronchart then CommandLine(".csy name=<NEXT_SYMBOL_NAME>");
It all works fine, however if one of the symbols in my list contains no bars (ie there is no data), then this line of code never runs and the next symbol does not load.
Can anyone suggest how to detect when a chart has zero bars? Ie
Code: Select all
if lastbaronchart or ThereAreZeroBars then CommandLine(".csy ...
Brendan