Really confusing if there is a function to count instruments that meet certain criteria, maybe something like a countif function in Excel. Or is there a loop I could use to do counting? Let's say count how many contracts have ROC in close price greater than "0" ?
Here is my rough thought but I think something wrong with it.
For i= 1 to system.totalinstruments
if instrument.close(ROC)> 0 then
Appreciate for any help.
Discussions about the testing and simulation of mechanical trading systems using historical data and other methods. Trading Blox Customers should post Trading Blox specific questions in the Customer Support forum.
1 post • Page 1 of 1