Hi,
I am trying to debug the following line at the end of a back text if there are no further bars of data (i.e. test is over) and the strategy is not currently in a trade. I use the code below;
if((open(1) == null) && (Strategy.isInTrade != true)) {
debugPrintln("</trades>");
}
It prints the line correctly at the end of the test however for some reason it also prints occasionally during the test too. Can anyone see think of any reason for this to occur or any solutions?
Thanks in advance.
I am trying to debug the following line at the end of a back text if there are no further bars of data (i.e. test is over) and the strategy is not currently in a trade. I use the code below;
if((open(1) == null) && (Strategy.isInTrade != true)) {
debugPrintln("</trades>");
}
It prints the line correctly at the end of the test however for some reason it also prints occasionally during the test too. Can anyone see think of any reason for this to occur or any solutions?
Thanks in advance.
Comment