TradingView
everget
Oct 24, 2018 9:40 PM

Jurik Moving Average 

WTI CRUDE OILTVC

Description

This indicator was originally developed by Mark Jurik.

NOTE: If Mr. Jurik ask me to remove this indicator from public access then I will do it.

Release Notes

  • Corrected
Comments
cryptoinvests
Hello, tell me how to make an alert when changing the color in the script?
everget
@cryptoinvests, take a look at the Adaptive Laguerre Filter. It has that feature
cryptoinvests
@everget, Thank you very much for your work
hbschiller
Great Moving Average, thanks for that, can I make a suggestion?
to incorporate:

plot(bar_index > length ? jma : na, title='JMA', linewidth=2, color=jmaColor)

that way the plot only happens from the first period with a full value, not a big issue, but in graphs with few candles or in big timeframes where you tend to have less bars, the change from zero to a value is a quite sharp curve which makes Pine "compress" the graph to show the whole indicator.
GarethSA
Does this repaint?
Is there security code in it to stop that?
everget
@GarethSA, Hi, it doesn't repaint
bhagavanshingn42220
simwai
@everget, If you don't want that it repaints, use the last candle instead of the current candle where you define e0. Just use the index 1 of source.

Otherwise, you refer to the current price which is always changing and then repaints happen. You can check it by putting it on 1s timeframe or using bar replay mode. Make screenshot before bar replay mode, then go through replay and make another screenshot. Compare these results. When it is the same, it doesn't repaint.
pawankumar211297
@simwai, hi there, did u find any solution for this above mentioned issue of repaint?
simwai
@pawankumar211297, I already described the solution on how to fix it.
More