OPEN-SOURCE SCRIPT

Educational: Fill

By fikira
Wizard
This script showcases the latest feature of colour fill between lines with gradient

There are 17 ema's, all with adjustable lengths.

In the settings there are 3 options: '1', '2', and '1 & 2':

  • Option '1'
    Here the highest - lowest lines are filled with a gradient colour,
    dependable where the 3rd highest/lowest ema is situated in regard of these 2 lines:
    snapshot
  • Option '2'
    Here the colour fill is applied between every ema and the one next to it.
    The gradient colour is dependable where the ema is situated in regard of the highest - lowest line:
    snapshot
  • Option '1 & 2'
    A combination of both options:
    snapshot


The setting 'switch colours at ema x' regulates the switch between bullish and bearish colours.
When close is above the chosen ema -> bullish colours, when below -> bearish colours.

Examples of other settings of 'switch colours at ema x':

Colour switch when close above/below:

  • ema 14
    snapshot
  • ema 11
    snapshot
  • ema 8
    snapshot
  • ema 5
    snapshot
  • ema 2
    snapshot


The colours can be set below, both for option '1' and '2'

Cheers!
coloureducationalFILLgradientgradientcolor
fikira
Wizard
LuxAlgo Dev: luxalgo.com
PineCoder: pinecoders.com

- We cannot control our emotions,
but we can control our keyboard -

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer