This is what I've been able to do so far:
double barhigh9 = 0;
barhigh9 =MIN(High,9)[0];
What I want to do now is to use the data derived from barhigh9 and calculate SMA of barhigh9 and the high of the 4 bars that immediately precede it. Could you point me in the right direction?
Comment