Hi Bruce:
I am interested in a PCF which counts the number of previous bars (up to 200) whose high is within 5 percent ATR20.0 of the current high.
Similarly for lows versus low...
|
Hi Bruce:
I would be interested in the average closing price of all previous bars (n=200) that contain the current price.
|
Nice.... Thank you.
QUOTE (Bruce_L)
Please try the following:
SUM(IIF(ADX14.14 \ 10 <> ADX14.14.1 \ 10, C, 0), 200) / CountTrue(ADX14.14 \ 10 <> ADX14.14.1 \ 10, 200)
Nice.... Thank you.
|
Thank you. I will settle on my rough average...
|
I see...
The best
I can get is this: b=
iif(xup(adx14.14,10,1) or xdown(adx14.14,10,1) or
xup(adx14.14,20,1) or xdown(adx14.14,20,1) or xup(adx14.14,30,1) or xdown(adx14.14,30,1) or xup(adx14.14,40,1) or xdown(adx14.14,40,1) or xup(adx14.14,50,1) or xdown(adx14.14,50,1) or xup(adx14.14,60,1) or xdown(adx14.14,60,1) or xup(adx14.14,70,1) or xdown(adx14.14,70,1) , c, 0.0)
and then dividing by countrue (b,200) we can get an average.
QUOTE (Bruce_L)
No, I can't really think of a practical way to do this.
|
HI Bruce:
Is it possible to write a PCF that gives the last price at which ADX has crossed an
integer multiple of 10?
|
Hi Bruce:
I would be interested in the number of heiken ashi color changes over the last n (say 21) periods.
|
Thank you. Great Job. But I think there is a missing ")" at the end.
QUOTE (Bruce_L) Please try the following indicator formula.
SGN(XAVG(O1 + H1 + L1 + C1, 3) - HAVG(O + H + L + C, 21)) + SGN(GREATEST(4 * H, XAVG(O1 + H1 + L1 + C1, 3)) - MAX(GREATEST(4 * H1, XAVG(O2 + H2 + L2 + C2, 3)), 2))
|