编写要求:
源码:
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通道1:=AA*102/100;
通道2:=AA*(200-102)/100;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
通道3:=(1+7/100)*DD;
通道4:=(1-7/100)*DD;
股价:=(H+L+C)/3;
股价运动:=股价,LINETHICK2,COLORBLUE;
趋势:=XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(股价,3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),LINETHICK1,COLORFFFFFF;
风险区1:趋势*1.1,COLOR0000FF;
风险区2:趋势*1.125,COLOR0000FF;
风险区3:趋势*1.15,COLOR00FFFF,POINTDOT;
良机区1:趋势*0.9,COLORLIBLUE;
良机区2:趋势*0.875,COLORLIBLUE;
良机区3:趋势*0.85,COLORFFFF00,POINTDOT;
上一:IF(风险区1>REF(风险区1,1), 风险区1,DRAWNULL),COLORYELLOW;
上二:IF(风险区2>REF(风险区2,1), 风险区2,DRAWNULL),COLORYELLOW;
上三:IF(风险区3>REF(风险区3,1), 风险区3,DRAWNULL),COLORYELLOW;
下一:IF(良机区1>REF(良机区1,1), 良机区1,DRAWNULL),COLORYELLOW;
下二:IF(良机区2>REF(良机区2,1), 良机区2,DRAWNULL),COLORYELLOW;
下三:IF(良机区3>REF(良机区3,1), 良机区3,DRAWNULL),COLORYELLOW;
DRAWBAND(上三,RGB(0,0,255),上二,DRAWNULL);
DRAWBAND(上二,RGB(255,255,0),上一,DRAWNULL);
DRAWBAND(下一,RGB(80,00,00),下二,DRAWNULL);
DRAWBAND(下二,RGB(255,255,255),下三,DRAWNULL);
DRAWBAND(上一,RGB(128,128,64), 下一,DRAWNULL);
{IF(趋势>REF(趋势,1), 趋势,DRAWNULL),COLORYELLOW,LINETHICK2}
T:=CLOSE/REF(CLOSE,1)*1000-1000;
QS2:=XMA(XMA(XMA(T,2),2),2);
QS4:=XMA(XMA(XMA(T,4),4),4);
QS6:=XMA(XMA(XMA(T,6),6),6);
{DRAWICON(CROSS(QS2,QS4),L,1);
DRAWICON(QS2
解答:
?AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
?通道1:=AA*102/100;?
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!