Greetings! How can I see the code of this script please? Because the code from the comments contains errors, I can't run it, I would like to experiment with this code. Thanks a lot!
m1 = sma(result1, smooth)
m2 = sma(result1*100, smooth)
plot(m2, title='M', color = open < close ? green : red,linewidth=3, transp=0)
res = input(title="Heikin Ashi Candle Time Frame", type=resolution, defval="60")
hshift = input(1,title="Heikin Ashi Candle Time Frame Shift")
res1 = input(title="Heikin Ashi EMA Time Frame", type=resolution, defval="1440")
mhshift = input(0,title="Heikin Ashi EMA Time Frame Shift")
fama = input(1,"Heikin Ashi EMA Period")
test = input(1,"Heikin Ashi EMA Shift")
sloma = input(30,"Slow EMA Period")
slomas = input(1,"Slow EMA Shift")
macdf = input(false,title="With MACD filter")
res2 = input(title="MACD Time Frame", type=resolution, defval="15")
macds = input(1,title="MACD Shift")
@RafaelZioni, Can I ask for the original? Thank you very much! :)
kkoepke
⋅
The repainting comes from the higher Heiken Ashi timeframe. right?
kkoepke
⋅
Are the lime/red bars repainting? At least seems like that as the bars and the alerts i had over night are not fitting together.
The B and S signals are working fine tough.
Any idea?
RafaelZioni
⋅
I think it a problem in this model I agree. it a problem that maybe in the design of this heikin so i need to think how to solve it?
plotchar(crossDown, title="crossDown",char='S', offset=0, location=location.top, color=red, transp=0)
alertcondition(up, title='go long', message='go long')
alertcondition(down, title='go short', message='go short')
alertcondition(crossUp, title='crossUp', message='go long')
alertcondition(crossDown, title='crossDown', message='go short')
bgcolor(down < 0 ? red : na, transp=50)
bgcolor(up > 0 ? lime : na, transp=50)