mbarcala
Active member
Here another nice indicator from trading view converted to TOS. It have the option from 1 to 2 deviation that give you a great idea of price movement at any timeframe. Enjoy and have fun!
Original Link: https://www.tradingview.com/script/qM9wm0PW-EMA-Oscilator-Azzrael/
photo
13524[/ATTACH]']
script
Original Link: https://www.tradingview.com/script/qM9wm0PW-EMA-Oscilator-Azzrael/
photo
13524[/ATTACH]']
script
Code:
#// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
#// © Azzrael, @version=5
# EMA Oscilator by Azzrael converted to TOS by mbarcala
#TradingView link: https://www.tradingview.com/script/qM9wm0PW-EMA-Oscilator-Azzrael/
declare lower;
input length = 20;
input limit = 2;
def v = close - ExpAverage(close, length);
plot dev = StDev(v, length);
dev.SetDefaultColor(Color.CYAN);
plot dev2 = dev * -1;
dev2.SetDefaultColor(Color.DARK_ORANGE);
plot dev_limit = dev * limit;
dev_limit.SetDefaultColor(Color.LIGHT_GREEN);
plot dev_limit2 = dev_limit * -1;
dev_limit2.SetDefaultColor(Color.DARK_RED);
plot cline = 0;
cline.SetDefaultColor(Color.GRAY);
plot Vh = v;
Vh.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
Vh.AssignValueColor(if v >= dev_limit then Color.GREEN else
if v > 0 then Color.CYAN else
if v <= dev_limit2 then Color.RED else
if v < 0 then Color.DARK_ORANGE else Color.CURRENT);