N:=20;
M:=60;
TG:=(MA(CLOSE,5)+MA(CLOSE,8)+MA(CLOSE,13)+MA(CLOSE,21))/4;
AA:=HHV(TG,3);
BB:=LLV(TG,3);
TG1:=(MA(CLOSE,2)+MA(CLOSE,3)+MA(CLOSE,4)+MA(CLOSE,5))/4;
AA1:=HHV(TG1,3);
AA2:=REF(AA1,1);
短期CMA最高值:AA1;
中期CMA:TG;
中期CMA最高值:AA;
中期CMA最低值:BB;
趋势线:MA(TG,N),COLORYELLOW;
QSX:=REF(趋势线,1);
DRAWBAND(趋势线,RGB(255,0,0),QSX,RGB(0,255,0));
STICKLINE(BB >趋势线 ,BB,趋势线,1,1),COLOR0000AA;
STICKLINE(BB <趋势线 ,BB,趋势线,1,1),COLOR008800;
STICKLINE(BB-REF(BB,1)>0 ,AA,BB,7,0),COLOR0000DD;
STICKLINE(BB-REF(BB,1)<0 ,BB,AA,7,0),COLOR008800;
AA12:=REF(AA,1);
BB1:=REF(BB,1);
DRAWBAND(AA,RGB(255,0,0),AA12,RGB(0,255,0));
DRAWBAND(BB,RGB(255,0,0),BB1,RGB(0,255,0));
STICKLINE((OPEN >= CLOSE),HIGH,LOW,0,0),COLORCYAN;
STICKLINE((OPEN >= CLOSE),OPEN,CLOSE,8,0),COLORCYAN;
STICKLINE((OPEN < CLOSE),HIGH,LOW,0,0),COLORRED;
STICKLINE((OPEN < CLOSE),OPEN,CLOSE,6,1),COLORRED,LINETHICK3;
STICKLINE((OPEN < CLOSE),OPEN,CLOSE,6,0),COLORYELLOW;
DRAWBAND(AA1,RGB(255,0,255),AA2,RGB(0,55,250));
趋势线1:=MA(TG,3),COLORYELLOW;
趋势线2:=REF(趋势线1,1);
DRAWBAND(趋势线1,RGB(255,255,0),趋势线2,RGB(0,55,255)),LINETHICK1;
负责声明:
1、 本站所有指标公式源码资源均是从网络采集和会员提供所得,仅供用来学习研究,请于下载后的24h内自行删除,正式商用请购买正版。如若本站内容侵犯了原著者的合法权益,请携带相关版权文件联系我们进行下架或删除。
2、文章内文字内容均为本站原创发布,任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。原文链接:
https://www.zhibiao123.cn/161267.html,转载请注明出处。