declare lower;
def Price = HL2;
def limit = RoundDown(Price, 0);
def line = fold count = 0 to limit with p = 0 do p+1;
plot myLine = line;
But myLine = N/A instead of a line representing cumulative values of p+1
However, the following do work:
def limit =RoundDown(10.2,0);
def line = fold count = 0 to limit with p = 0 do p+1;
plot myLine = line;
As well as :
def limit = RoundDown(10.0,0);
def line = fold count = 0 to limit with p = 0 do p+1;
plot myLine = line;
But drawing a blank as to why setting limit = RoundDown(Price,0) returns N/A when used in a fold.
Any insight into why greatly appreciated.
Sesqui
def Price = HL2;
def limit = RoundDown(Price, 0);
def line = fold count = 0 to limit with p = 0 do p+1;
plot myLine = line;
But myLine = N/A instead of a line representing cumulative values of p+1
However, the following do work:
def limit =RoundDown(10.2,0);
def line = fold count = 0 to limit with p = 0 do p+1;
plot myLine = line;
As well as :
def limit = RoundDown(10.0,0);
def line = fold count = 0 to limit with p = 0 do p+1;
plot myLine = line;
But drawing a blank as to why setting limit = RoundDown(Price,0) returns N/A when used in a fold.
Any insight into why greatly appreciated.
Sesqui