|
Turin + Italy
Posts: 201 since Feb 2020
Thanks Given: 26
Thanks Received: 137
|
Hi,
I found this formula on the Net, try to see if it works for you:
{Elder impulse system - Paintbar}
input: len(13), FastMA(13),SlowMA(22),MacdMA(9);
vars:color(cyan);
Value1 = (MACD(Close,FastMA,SlowMA));
Value2 = (XAverage(MACD(Close,FastMA,SlowMA),MacdMA));
Value3 = Value1-Value2;
value4 = xaverage(close,len);
if value4 > value4[1] and value3 > value3[1] then color = green
else if value4 < value4[1] and value3 < value3[1] then color = red
else color = cyan;
plotpb(h,l,o,c,"PB", color);
|