Citat:
Ursprungligen postat av
Temujin56
text
Btw, här har du ett simpelt script för ett par medelvärden för TradingView:
Kod:
//@version=3
study(title = "MA", overlay=true)
price = close
SMA_short = sma(price, input(50))
SMA_middle = sma(price, input(100))
SMA_long = sma(price, input(200))
EMA_shortest = ema(price, input(5))
EMA_short = ema(price, input(10))
EMA_middle = ema(price, input(21))
// plots
plot(SMA_short, color = yellow, linewidth = 1, transp=0)
plot(SMA_middle, color = orange, linewidth = 1, transp=0)
plot(SMA_long, color = yellow, linewidth = 2, transp=0)
plot(EMA_shortest, color = #FF99FF, linewidth = 1, transp=50)
plot(EMA_short, color = #FF73FF, linewidth = 1, transp=0)
plot(EMA_middle, color = #FF00FF, linewidth = 1, transp=0)
Men det finns en massa färdigt om man orkar leta, man måste inte skriva saker själv givetvis.