OPEN-SOURCE SCRIPT

Educational: Fill

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:
    快照
  • 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:
    快照
  • Option '1 & 2'
    A combination of both options:
    快照


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
    快照
  • ema 11
    快照
  • ema 8
    快照
  • ema 5
    快照
  • ema 2
    快照


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

Cheers!
coloureducationalFILLgradientgradientcolor

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?


PineCoder: pinecoders.com

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

免责声明