 node nirvana
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © mohammadakasheh94
// Written by mohammadakasheh
// Idea by Amir Nirvana
//@version=4
//indicator("trading node nirvana")
study("grate node nirvana", overlay=true, scale=scale.none)
//Input
Sensitivity = input(title="LegoutStrength", type=input.float, defval=1.5, minval=1.0, maxval=2.0, step=0.5)
//Variable Declaration
Candle_Range = high - low
Body_Range = abs(close - open)
//Boring Candles or Basing Candles Body Range <= 50% of Candle Range
barcolor(Body_Range <= Candle_Range * 0.5 ? color.fuchsia : na)
//Explosive Candles Logic
Bar_Lookback = 100
Volatility = atr(Bar_Lookback)
//Sensitivity = 1.5
Strength = Volatility * Sensitivity
barcolor(Body_Range > Candle_Range * 0.6 and Candle_Range >= Strength ? color.black : na)
