OPEN-SOURCE SCRIPT

CBG Swing HighLow MA

Telah dikemas kini
This indicator will show the swing high and lows for the number of bars back. It's very easy to use and shows good support and resistance levels.

I then took it a step further and added a moving average with all the standard types in my indicators:

SMA
EMA
Weighted
Hull
Symmetrical
Volume Weighted
Wilder
Linear Regression

I then added Bollinger Bands to show the standard deviation from the midline.

Finally, I added a simple bar coloring scheme: green if above the upper BB, Red if below and orange if in the middle.

I am just testing this out so please use with caution. If anyone in the community wants to run some backtests, that would be great and we would all appreciate it.

Of course you can keep it all simple and turn off all the moving averages and bollinger bands.

Enjoy! :-)
Nota Keluaran
I have added the ability to have keltner channels as well as bollinger bands. In fact, you can have both displayed at the same time.

You also have the option to color the bars and the background based on either bands.

Finally, I have added shading to the bands.

Enjoy.
Bollinger Bands (BB)Exponential Moving Average (EMA)hullLinear RegressionMoving AveragessmasymmetricalTrend Analysisvolumeweightedweightedwilder

Skrip sumber terbuka

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?


Juga pada:

Penafian