指标修改 (文华财经)

投资者咨询:指标修改 (文华财经)
来源:文华财经  日期:2020-10-13 23:07
 请帮忙将两组TradingView平台的指标代码改为贵公司软件的指标代码!谢谢!

//@version=4
study(”price divergence”)
cs =(close-ema(close,20))/ ema(close,20)* 100

sm =(ema(close,20)-ema(close,60))/ ema(close, 60)* 100

ml =(ema(close,60)-ema(close,120))/ ema(close,120)* 100

plot(ml,” ml”,color.silver,linewidth = 3,style = plot。 style_histogram)

plot(sm,“ sm”,color.red)

plot(cs,“ cs”,color.black)




==========================================


//@version=4
study(“ MA + EMA”,overlay = true)

e1 = ema(close,20)

c1 = sma(close,20)

e2 = ema(close,60)

c2 = sma(close,60)

e3 = ema(close, 120)

c3 = sma(close,120)

plot(e1,“ ema20”,color = color.gray)

plot(c1,“ ma20”,color =#D3D3D3)

plot(e2,“ ema60”,color = color.red )

plot(c2,“ ma60”,color =#FDBCB4)

plot(e3,“ ema120”,color = color.blue)

plot(c3,“ ma120”,color =#ADD8E6)

// DKJ

cond = barstate.islast

moveBar = input(0)

x20 = input(20)+ moveBar

x60 = input(60)+ moveBar

x120 = input(120)+ moveBar

plot(cond?low [20]:na,color =#FFC40C,linewidth = 5,offset = -x20,style = plot.style_circles,transp = 0)

plot(cond?low [60]:na,color =#FFC40C,linewidth = 5,offset = -x60,style = plot.style_circles,transp = 0)

plot(cond?low [120]:na,color =#FFC40C ,linewidth = 5,offset = -x120,style = plot.style_circles,transp = 0)

 
技术人员回复
日期:2020-10-14 8:05
 1

CS:(CLOSE-EMA(CLOSE,20))/ EMA(CLOSE,20)* 100;

SM :(EMA(CLOSE,20)-EMA(CLOSE,60))/ EMA(CLOSE, 60)* 100;

ML:(EMA(CLOSE,60)-EMA(CLOSE,120))/ EMA(CLOSE,120)* 100;

2


E1:EMA(CLOSE,20);

C1:SMA(CLOSE,20,3);

E2:EMA(CLOSE,60);

C2:SMA(CLOSE,60,3);

E3:EMA(CLOSE, 120);

C3:SMA(CLOSE,120,3);

投资者咨询:指标修改 (文华财经)
来源:文华财经  日期:2020-10-13 23:07
 楼主。能把交易思路写出来吗?
技术人员回复
日期:2020-10-14 8:43
 1楼没有交易思路的,只有指标线显示

您可以自行总结下
投资者咨询:指标修改 (文华财经)
来源:文华财经  日期:2020-10-13 23:07
这里没有改

 cond = barstate.islast

moveBar = input(0)

x20 = input(20)+ moveBar

x60 = input(60)+ moveBar

x120 = input(120)+ moveBar

plot(cond?low [20]:na,color =#FFC40C,linewidth = 5,offset = -x20,style = plot.style_circles,transp = 0)

plot(cond?low [60]:na,color =#FFC40C,linewidth = 5,offset = -x60,style = plot.style_circles,transp = 0)

plot(cond?low [120]:na,color =#FFC40C ,linewidth = 5,offset = -x120,style = plot.style_circles,transp = 0)

技术人员回复
日期:2020-10-15 7:58
这里编写语言和麦语言差异很大,并不能直接改

您给出具体含义,我们给您直接编写文华版本