TradingView
lmatl
29 nov. 2020 18:57

Standard deviation zones Support & Resistance [LM] 

Description

Hi Guy,

I would like to introduce you Standard deviation zones Support & Resistance horizontals. It draws line horizontals on high and low st dev zone. The colors are dynamic depending whether price is below or above the line.

Credit is due to @Zeiierman for st dev zone calculation so shout out to him.

There are various sections in setting:

general setting where you can select source for zone calculation
tops setting
bottom setting
show and hide section of the first timeframe
show and hide section of the second timeframe

Be aware that when new zone starts and is not finished yet than the top will trail the high of unfinished zone that could be also at the high of current candle and next candle it can change


Any suggestions are welcomed

Notes de version

Bug fix for high of the zone

Notes de version

fixing error with endIndex
Commentaires
peacefulLizard50262
I appreciate open source.
lmatl
@peacefulLizard50262, most of the time I open source my code as there are a lot of opportunities in the market. Indicators means nothing without other things like position sizing, risk management, execution, stop loss placing etc..
siddharthterse
This is not plotting lines on chart @lmatl
lmatl
@siddharthterse, this would happen only in case that there is no st. deviation zone extreme
Plus