once again, I want to show you a different method for detecting level. Today's approach is similar to the one I posted recently, but the way the level will be detected is different. I call it the multi-timeframe standard deviation level.
How does it work?
The method is similar to the way work. First, the indicator calculates the standard deviation, which can be influenced by the "Sensitivity"- and "Length"-setting.
- Sensitiitiy - the higher the value, the fewer level will be shown
- Length - simply the length for the standard deviation formula
Second, the detected value will be added (for ) or substracted (for ) from the current close. Once the upper or lower boundaries are crossed, a level will appear and keeps moving until the up- or downward movement finishes. Then the level will settle and stay in place.
Again, as seen in my previous indicator, you can control all the different styles and colors for the levels. The best part is, the whole thing works in a multi-timeframe fashion. In an example, you could select the "Daily" level and plot them on a 4-hour chart.
If you find this indicator useful, please leave a "like" and hit that "follow" button :)
Have fun, happy trading and once again Merry Christmas :)))
len = input(20, "Length")
multi = input(2.0, "Sensitivity")
I wish to draw automatic horizontal lines one base line, 10 above and 10 below base line.
Base line is round(sqrt (previous day close),0)^2 on black colour
Upper lines in blue colour
Upper line 1 = (base line+1)^2
Upper line 2 = (base line+2)^2
Upper line 3 = (base line+3)^2 till 10 line
Similarly lower lines in orange
Lower line 1 = (base line-1)^2
Lower line 2 = (base line-2)^2
Lower line 3 = (base line-3)^2 till 10 line
Will you please help me in writing a code in pine editor of tradingview.com
Please reply at my email id firstname.lastname@example.org