R
randomx
Guest
hi all,
bullish: how do i add an green arrow up when the super fast line comes from below crossing the other two lines?
bearish: how do i add an green arrow down when the super fast line comes from above crossing the other two lines?
thank you in advance
bullish: how do i add an green arrow up when the super fast line comes from below crossing the other two lines?
bearish: how do i add an green arrow down when the super fast line comes from above crossing the other two lines?
thank you in advance
Code:
input price = close;
input superfast_length = 8;
input fast_length = 13;
input slow_length = 21;
input displace = 0;
def mov_avg8 = ExpAverage(price[-displace], superfast_length);
def mov_avg13 = ExpAverage(price[-displace], fast_length);
def mov_avg21 = ExpAverage(price[-displace], slow_length);
#moving averages
Plot Superfast = mov_avg8;
plot Fast = mov_avg13;
plot Slow = mov_avg21;
Last edited by a moderator: