编写要求:
请老师将强弱势公式及趋势信号改为通达信公式
强弱势公式源码:
A1:=(EMA(((O+H+L+C)/4),3)+EMA(((O+H+L+C)/4),6)+EMA(((O+H+L+C)/4),9))/3;
A2:=(EMA(((O+H+L+C)/4),5)+EMA(((O+H+L+C)/4),10)+EMA(((O+H+L+C)/4),20))/3;
A3:=(EMA(((O+H+L+C)/4),7)+EMA(((O+H+L+C)/4),14)+EMA(((O+H+L+C)/4),28))/3;
A4:=(EMA(((O+H+L+C)/4),9)+EMA(((O+H+L+C)/4),18)+EMA(((O+H+L+C)/4),36))/3;
A5:=(EMA(((O+H+L+C)/4),11)+EMA(((O+H+L+C)/4),22)+EMA(((O+H+L+C)/4),44))/3;
A6:=(EMA(((O+H+L+C)/4),13)+EMA(((O+H+L+C)/4),26)+EMA(((O+H+L+C)/4),52))/3;
A7:=(EMA(((O+H+L+C)/4),21)+EMA(((O+H+L+C)/4),34)+EMA(((O+H+L+C)/4),68))/3;
b1:PARTLINE(A1>REF(A1,1),FORCAST(A1,6)),NOTDRAWTEXT,COLORRED,2;
b2:PARTLINE(A1REF(A2,1),FORCAST(A2,6)),NOTDRAWTEXT,COLORRED,2;
b4:PARTLINE(A2REF(A3,1),FORCAST(A3,6)),NOTDRAWTEXT,COLORRED,2;
b6:PARTLINE(A3REF(A4,1),FORCAST(A4,6)),NOTDRAWTEXT,COLORRED,2;
b8:PARTLINE(A4REF(A5,1),FORCAST(A5,6)),NOTDRAWTEXT,COLORRED,2;
b10:PARTLINE(A5REF(A6,1),FORCAST(A6,6)),NOTDRAWTEXT,COLORRED,2;
b12:PARTLINE(A6REF(A7,1),FORCAST(A7,6)),NOTDRAWTEXT,COLORRED,0,3;
b14:PARTLINE(A7=REF(towerc,1),towerc,directionmax,6,0),NOTDRAWTEXT,RGB(253,190,2);
d2:STICKLINE(towerc>=REF(towerc,1),towerc,directionmax,5,0),NOTDRAWTEXT,RGB(253,150,2);
d3:STICKLINE(towerc>=REF(towerc,1),towerc,directionmax,4,0),NOTDRAWTEXT,RGB(253,110,2);
d4:STICKLINE(towerc>=REF(towerc,1),towerc,directionmax,3,0),NOTDRAWTEXT,RGB(253,70,2);
d5:STICKLINE(towerc>=REF(towerc,1),towerc,directionmax,2,0),NOTDRAWTEXT,RGB(253,30,2);
d6:STICKLINE(towerc>=REF(towerc,1),towerc,directionmax,1,0),NOTDRAWTEXT,RGB(253,0,2);
d7:STICKLINE(towerc1)),REF(b1,BARSLAST(Cc=1))),NOTDRAWTEXT,COLORRED,0,3;
a2:partline(Cc=1 and b1>=b2,REF(b3,BARSLAST(Cc<>1))),NOTDRAWTEXT,COLORRED,0,2;
a3:partline(cc<>1 and b1 解答: ?a1:=(ema(((o+h+l+c)/4),3)+ema(((o+h+l+c)/4),6)+ema(((o+h+l+c)/4),9))/3; a2:=(ema(((o+h+l+c)/4),5)+ema(((o+h+l+c)/4),10)+ema(((o+h+l+c)/4),20))/3;
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!