以下是通达信山东操盘手主图指标公式源码和使用说明

通达信山东操盘手主图指标公式源码:

   MA5:MA(C,5),COLORYELLOW;

   MA10:MA(CLOSE,10),COLORFF00FF;

   MA30:MA(C,30),COLORRED,LINETHICK2;

   跌:IF(MA(CLOSE,30)<=REF(MA(CLOSE,30),1),MA(CLOSE,30),DRAWNULL),COLORGREEN,LINETHICK2;

   MA60:MA(CLOSE,60),COLORFFCC66;

   GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));

   GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));

   GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));

   GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));

   BAIJIN1:=BArslAST(crOSS(30,GJTJ1))<2ANDBARSLAST(CROSS(GJTJ1,50))<2;

   BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2ANDGJTJ1>GJTJ4;

   BAIJIN3:=GJTJ1>60ANDGJTJ4>70;

   DRAWTEXT(BAIJIN1ANDBAIJIN2ANDBAIJIN3,L-0.02,’白金’),COLORWHITE;

   HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))<3ANDBARSLAST(CROSS(GJTJ1,50))<3;

   HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2ANDGJTJ1>GJTJ4;

   DRAWTEXT(HUANGJIN1ANDHUANGJIN2,L-0.03,’黄金’),COLORYELLOW;

   XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5ANDGJTJ1>GJTJ4;

   DRAWTEXT(COUNT(XG,3)=1ANDXGANDC>MA(C,20),L-0.02,’启动金三角’),COLORRED;

   ZHENCANG1:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;

   买线:EMA(C,5),color000999;

   卖线:EMA(SLOPE(C,21)*20+C,42),POINTDOT,colorblue,linethick3;

   BUY1:=CROSS(买线,卖线);

   SEL1:=CROSS(卖线,买线);

   STICKLINE(买线>=卖线,LOW,HIGH,0.1,1),colorred;

   STICKLINE(买线>=卖线,CLOSE,OPEN,8,1),colorred;

   STICKLINE(买线>=卖线,CLOSE,OPEN,10,1),colorbrown;

   STICKLINE(买线<卖线,CLOSE,OPEN,10,0),colorffff00;

   STICKLINE(买线<卖线,CLOSE,OPEN,8,0),color00ff00;

   STICKLINE(买线<卖线,LOW,HIGH,0.1,1),color00ff00;

   STICKLINE(CROSS(买线,卖线)ORCROSS(卖线,买线),OPEN,CLOSE,6,0),colorblue;

   限制:=EMA((((H+C)/2+L+(C+L)/2)/3-EMA(LLV(((H+C)/2+L+(C+L)/2)/3,89),2))/(EMA(HHV(((H+C)/2+L+(C+L)/2)/3,21),2)-EMA(LLV(((H+C)/2+L+(C+L)/2)/3,89),2)),8)*100;

   平衡:=SMA(EMA(SMA((C+L)/2,3,1),3),5,1);

   DRAWTEXT(CROSS(买线,卖线),买线,’始’);

   DRAWTEXT(CROSS(卖线,买线),卖线,’终’);

   ZHENCANG2:=BARSLAST(CROSS(GJTJ4,GJTJ2));

   ZHENCANG3:=GJTJ3<GJTJ4ANDGJTJ2<GJTJ4;

   ZHENCANG4:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;

   ZHENCANG5:=GJTJ2<GJTJ3ANDGJTJ2<GJTJ4ANDGJTJ2<GJTJ1ANDGJTJ1=100;

   ZCB1:=ZHENCANG1>0ANDREF(ZHENCANG1,1)=0ANDREF(ZHENCANG1,2)>0;

   DRAWTEXT(ZHENCANG1ANDZHENCANG2ANDZHENCANG3ANDZHENCANG4ANDZHENCANG5,L-0.05,’震仓启点’);

   AA:=BARSLAST(CROSS(97,GJTJ1))<=1ANDBARSLAST(CROSS(GJTJ1,85))<=1;

   BB:=BARSLAST(CROSS(97,GJTJ2))<=1ANDBARSLAST(CROSS(GJTJ2,85))<=1;

   AA1:=AAANDBB;

   AAA:=BARSLAST(CROSS(97,GJTJ1))<=2ANDBARSLAST(CROSS(GJTJ1,85))<=1;

   BAA:=BARSLAST(CROSS(97,GJTJ2))<=2ANDBARSLAST(CROSS(GJTJ2,85))<=1;

   AA2:=AAANDBB;

   AAAA:=BARSLAST(CROSS(97,GJTJ1))<=3ANDBARSLAST(CROSS(GJTJ1,85))<=1;

   BAAA:=BARSLAST(CROSS(97,GJTJ2))<=3ANDBARSLAST(CROSS(GJTJ2,85))<=1;

   AA3:=AAAAANDBAAA;

   BB1:=REF(AA1,1);

   BB2:=REF(AA2,1);

   BB3:=REF(AA3,1);

   DD1:=GJTJ1=100ANDGJTJ2=100ANDAA1;

   DD2:=GJTJ1=100ANDGJTJ2=100ANDAA2;

   DD3:=GJTJ1=100ANDGJTJ2=100ANDAA3;

   DRAWTEXT(DD1ORDD2ORDD3,L-0.02,’短线追涨’),COLORFF00FF;

   AW:=BARSLAST(CROSS(95,GJTJ1))<=2;

   BW:=BARSLAST(CROSS(95,GJTJ2))<=2;

   EW:=GJTJ4<GJTJ1ANDGJTJ1<GJTJ2ANDGJTJ1<GJTJ3;

   FW:=GJTJ2>50ANDGJTJ3>50;

   GW:=GJTJ1=100ANDGJTJ2=100;

   TXW:=COUNT(GW,2)=1;

   DRAWTEXT(AWANDBWANDEWANDFWANDTXW,L-0.03,’起涨首日’);

   AQ:=GJTJ3=100;

   BQ:=GJTJ4<90;

   DRAWTEXT(COUNT(AQ,2)=2ANDBQ,L-0.02,’波启前兆’);

   VAR1:=(100-((90*(HHV(HIGH,21)-CLOSE))/

   (HHV(HIGH,21)-LLV(LOW,21))));

   VAR2:=(100-((90*(HHV(HIGH,21)-CLOSE))/

   (HHV(HIGH,21)-LLV(LOW,21))));

   VAR3:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/

   (HHV(HIGH,6)-LLV(LOW,6))),34));

   DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW*0.97),8);

   DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH*1.05),9);

   DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(LOW*0.97),’●买’),

   colorGreen,linethick1;

   DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH*1.05),’▼减仓’),

   colorYellow,linethick1;

   牛熊线:EMA(MA(CLOSE,3),34),COLORFF00FF,LINETHICK2;

   STICKLINE(C>=牛熊线ANDC>=O,C,O,5,0),COLORRED;

   STICKLINE(C>=牛熊线ANDC>=O,H,L,0,0),COLORRED;

   STICKLINE(C>=牛熊线ANDC<O,C,O,5,1),COLORRED;

   STICKLINE(C>=牛熊线ANDC<O,O,H,0,0),COLORRED;

   STICKLINE(C>=牛熊线ANDC<O,C,L,0,0),COLORRED;

   STICKLINE(C<牛熊线ANDC>O,C,O,5,1),COLORffff00;

   STICKLINE(C<牛熊线ANDC<=O,C,O,5,1),COLORffff00;

   STICKLINE(C<牛熊线ANDC<=O,H,L,0,1),COLORffff00;

   STICKLINE(C<牛熊线ANDC>O,C,H,0,1),COLORffff00;

   STICKLINE(C<牛熊线ANDC>O,O,L,0,1),COLORffff00;

   TY:=C;

   A1:=REF(TY,10)=HHV(TY,2*10+1);B1:=FILTER(A1,10);

   C1:=BACKSET(B1,10+1);HD:=FILTER(C1,10);

   A2:=REF(TY,10)=LLV(TY,2*10+1);B2:=FILTER(A2,10);

   C2:=BACKSET(B2,10+1);LD:=FILTER(C2,10);

   A:=REF(C,BARSLAST(HD));

   Z:=REF(L,BARSLAST(LD));

   T1:=BARSLAST(HD)<BARSLAST(LD)ANDNOT(HD);

   T2:=BARSLAST(HD)>BARSLAST(LD)ANDNOT(LD);

   波段头:IF(T1,A,A),COLORYELLOW,LINETHICK2,POINTDOT;

   波段底:IF(T2,Z,Z),COLORWHITE,LINETHICK2,POINTDOT;

通达信山东操盘手主图指标公式截图

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。