Nicolas,
buongiorno.
Vorrei tuo cortese supporto per tradurre questo codice trovato nella libreria di tradingt View, per poterlo importare i PRT.
Ti ringrazio.
Carlo
—————————————————————————————–
study(“Larry Williams 9.1″, overlay=true)
ema9=ema(close,9)
ema9up= ema9>ema9[1]
colorup=(ema9up? #1cff78:na)
ema9down=ema9<ema9[1]
colordown = (ema9down ? #FF0000:na)
ema9n=not ema9up and not ema9down
colorn=(ema9n ? #ffeb3b: na)
plot(ema9, title=”EMA 9 UP”,linewidth=2,color=colorup,transp=0)
plot(ema9, title=”EMA 9 DOWN”,linewidth=2,color=colordown,transp=0)
plot(ema9, title=”EMA 9 N”,linewidth=2,color=colorn,transp=0)
// text signal
textbuy= high>high[1] and ema9[1]>ema9[2] and ema9[2]<ema9[3]
textsell= low< low[1]and ema9[1]<ema9[2] and ema9[2]>ema9[3]
plotshape(textbuy, title=”9.1 BUY”, style=shape.arrowup, location=location.belowbar, size=size.auto, text=”BUY 9.1″, color=#1cff78, transp=0, offset=0)
plotshape(textsell,title=”9.1 BUY”, style=shape.arrowdown, location=location.abovebar, size=size.auto, text=”SELL 9.1″, color=red, transp=0, offset=0)
//barcolor signal
buybarsignal= close>open and textbuy
sellbarsignal = close<open and textsell
barcolor(buybarsignal? #1cff78:na,title=”BuyBar 9.1″)
barcolor(sellbarsignal? #FF0000:na,title=”SellBar 9.1″)