TradingView
HPotter
21 Mei 2014 pukul 04.24

T3 3 Averages  

Huraian

This function is an Pine version of the moving average described in
the January, 1998 issue of S&C magazine, p.57, "Smoothing Techniques
for More Accurate Signals", by Tim Tillson. It is translated from the
MetaStock code presented in the article. The function uses a version
of the XAverage, written by me, which allows variables as inputs.

The most popular method of interpreting a moving average is to compare
the relationship between a moving average of the security's price with
the security's price itself (or between several moving averages).
Komen
koriblion
Thank you for this script, I really like it but it seems to be lacking behind. Somedays there is no visual and after a few days the indicator catches up.
HPotter
@koriblion, Hm... can you show screen?
koriblion
@HPotter, So i noticed it on BTC/EUR, here is the screenshot:

I checked it on other brokers to be sure that it isn't a broker issue and found out the same.
You can see the issue also when using the Replay button. Its not only in crypto. Had the same in Forex, stocks and gold & silver.
Settings are the standard and nothing has been modified on your script.

After a few days it jumps back to current day and draws the lines like nothing happend. But in that "gap" of a few days you don't see the signals.
Hope this helps!
HPotter
@koriblion, Can you check it on the ES1! symbol please?
koriblion
@HPotter, I tried to check the ES1! It looked to be ok there but there is no replay function to see if it happend. I checked ESH2021 (under ES like ES1!) this has a replay function and it has the same result:


I also have the feeling that on every "sharp move" you see on the T3 indicator that this "gap" happens like you can see here and this is the ES1!


Hope this helps!
HPotter
@koriblion, Also you can to try send report to support. It can be useful.
koriblion
@HPotter, did send a ticket to support as requested :)
koriblion
@HPotter, I got a response back from support:

------------------------------------------------------------------------------------------------
Hello again Kori!

So there these lines in the code:

plot(iff(Res2 > 10 or Res3 > 10,na, Res1), color=blue, title="Slope")
plot(iff(Res2 > 10 or Res3 > 10,na, Res2), color=red, title="Slope2")
plot(iff(Res2 > 10 or Res3 > 10,na, Res3), color=green, title="Slope1per")

It's a condition, like a ternary operator basically. The script has an algorithm that calculates the average of different EMAs, then it compares these averages between bars and if the difference is above 10 it plots NA. This is exactly what happened with cryptos there.

Thank you for your understanding. Stay safe and have a great week ahead!
------------------------------------------------------------------------------------------------

Hope this helps! I tried to redo the code but couldn't figure it out without messing it up :/
HPotter
@koriblion, Ok. Give me a time for think.
koriblion
@HPotter, Ofcourse, take your time!
Lebih