If there is no ROC syntax, is there a way we could manually input the formula?
|
Yes, but is there a way to plot the historical points as horizontal lines as well for a given amount of bars back?
|
The 1 / 0 at the end of the formula is what produces the division by zero error so it doesn't return anything when false. If you replace it with zero, you get the following.
IIF((HAVG((V - AVGV20) / 4 / SQR(((V - AVGV20) ^ 2 + (V1 - AVGV20) ^ 2 + (V2 - AVGV20) ^ 2 + (V3 - AVGV20) ^ 2 + (V4 - AVGV20) ^ 2 + (V5 - AVGV20) ^ 2 + (V6 - AVGV20) ^ 2 + (V7 - AVGV20) ^ 2 + (V8 - AVGV20) ^ 2 + (V9 - AVGV20) ^ 2 + (V10 - AVGV20) ^ 2 + (V11 - AVGV20) ^ 2 + (V12 - AVGV20) ^ 2 + (V13 - AVGV20) ^ 2 + (V14 - AVGV20) ^ 2 + (V15 - AVGV20) ^ 2 + (V16 - AVGV20) ^ 2 + (V17 - AVGV20) ^ 2 + (V18 - AVGV20) ^ 2 + (V19 - AVGV20) ^ 2) / 20) + .5, 20)*(-1)+1) + HAVG((C - AVGC20) / 4 / STDDEV20 + .5, 20) < .02, L + 4 * SQR(ABS(SUM((IIF(O < C, H - L, L - H)) ^ 2, 150) - 150 * AVG(IIF(O < C, H - L, L - H), 150) ^ 2) / 150), 0)
Hey Bruce,
I had a quick question about this part of the formula.. Is there a way that I can plot a horizontal line at the value every time it is true?
|
unfortunately though, I am getting un mismatched parenthesis error..
|
unfortunately though, I am getting un mismatched parenthesis error..
|
Looks about right! youre a blessing to the TC community bruce!
|
With that formula I couldnt swap all of the "C"s for the formula i wanted to input.. I was only able to swap the C's that stood alone. For example the avgc20 piece I cannot switch out the C..
Thanks
|
I wanted to convert AVGL20/AVGL20.20*100 so that I could source it to something else more easily like you did for me before!
Thanks in advance bruce
|
Sorry can you swap the Avgline with close on that last part? Would i be able to just change the source from price to something else?
|