I've tried everything here - looked all around Help and the Forum - and not for the first time I'm still stuck! So any assistance much appreciated.
Following great advice I've had previously, I've got a strategy to count the number of occurrences of certain conditions. It all works great except for the essential at the end.
This is the essentials of the coding:
private int risingCount = 0; ... if ( [I]conditions [/I]) { RisingCount++; Print(RisingCount); }
This works and prints a list of the increasing numbers to the Output window. But next time I run the strategy, the numbering in the window resumes where it left off. What I'd like to happen of course is that, every time it is run, RisingCount is reset to zero.
(Obviously, "private int risingCount = 0;" in Variables doesn't do the trick.)
Question 2):
What I'd really like is for there to be just one number representing the total number of occurrences. I've tried (with the first Print(RisingCount) commented out) :
if (!Historical) { Print(RisingCount); }
Any suggestions greatly appreciated.
Comment