I am using static, however, I set the value after its initalization in the 1st run of the the run() function.
On subsquent runs of the run() function as set by the BarPeriod = 30, will Price be zero or the value from priceHigh() set in the first iteration of the run() function?
I need it to be the value from priceHigh() in the first iteration.
In the run() function:
static var Price = 0;
Price = priceHigh();
Last edited by First; 01/04/19 01:12.