LonesomeTheBlue

Moving Averages 3D

Hello All,

This is an experimental work to show 10 moving averages in 3D by using linefill.new() feature of the Pine language.

You can set moving average type as Simple ( SMA ) or Exponential ( EMA )
You can set "Starting Length" and set the "Step" to calculate other lengths. For example; if "Starting Length" is 10 and "step" is 5 then the lengths are 10, 15, 20, 25...
You can set the colors as Red, Green, Blue for each direction. And you can change the width. you can see the examples below

In following example Green and Blue used:

In following example Blue and Red is used and Width is set as 5:


Enjoy!
Release Notes: Drawing order and 3d display improved

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?