通达信长征解盘指标公式
Q3:=CONST(IF(短买,0,IF(秋离场,20,IF(红持股,70,IF(急速超跌关注,150,100))))),NODRAW;
NN:=250;
最高:=CONST(HHV(H,NN));
最低:=CONST(LLV(L,NN));
RCC:=最高*0.9-(最高-最低);
RCC1:=最高-(最高-最低)/2;
RHL:=RCC;
HLMAX:=最高;
HLMIN:=最低;
HLMN1:=(HLMAX+HLMIN)/2;
HLMN2:=HLMAX-HLMIN;
HLMN3:=(100-0)/2*1.3;
HLMN4:=(100-0)/1*1.3;
雪山:=EMA(WINNER(C)*100,7),LINETHICK0,COLORRED;
色彩峰:=(C>0)*120;
DRAWBAND(((色彩峰-HLMN3)*HLMN2/HLMN4+HLMN1),RGB(Q1,Q2,Q3),((0-HLMN3)*HLMN2/HLMN4+HLMN1),DRAWNULL);
STICKLINE(色彩峰>0,((0-HLMN3)*HLMN2/HLMN4+HLMN1),((色彩峰*0.1-HLMN3)*HLMN2/HLMN4+HLMN1),5,0),COLORFFDDDD;
STICKLINE(色彩峰>0,((0-HLMN3)*HLMN2/HLMN4+HLMN1),((色彩峰*-0.1-HLMN3)*HLMN2/HLMN4+HLMN1),5,0),COLORFFEEEE;
L1:=EMA(雪山,21);
草地:=ABS((COST(50)-CLOSE)/CLOSE*100),COLOR00FF00,LINETHICK1;
STICKLINE(雪山>草地,((草地/1.5-HLMN3)*HLMN2/HLMN4+HLMN1),((雪山/1.5-HLMN3)*HLMN2/HLMN4+HLMN1),5,0),COLORWHITE;
STICKLINE(雪山<REF(雪山,1),((草地/1.5-HLMN3)*HLMN2/HLMN4+HLMN1),((雪山/1.5-HLMN3)*HLMN2/HLMN4+HLMN1),5,0),COLORDDDDDD;
STICKLINE(草地>雪山,((草地/1.5-HLMN3)*HLMN2/HLMN4+HLMN1),((雪山/1.5-HLMN3)*HLMN2/HLMN4+HLMN1),4,0),COLOR00BB00;
STICKLINE( 雪山>L1,((L1/1.5-HLMN3)*HLMN2/HLMN4+HLMN1),((雪山/1.5-HLMN3)*HLMN2/HLMN4+HLMN1),4,0),COLORRED;
★红军:(((雪山-L1)/3-HLMN3)*HLMN2/HLMN4+HLMN1),COLORRED;
出发:(((CROSS(★红军,((0-HLMN3)*HLMN2/HLMN4+HLMN1)) AND 雪山>草地)*雪山/2-HLMN3)*HLMN2/HLMN4+HLMN1),COLORFF00FF;
DRAWTEXT(CROSS(★红军,((0-HLMN3)*HLMN2/HLMN4+HLMN1)) ,((雪山*1.3/2-HLMN3)*HLMN2/HLMN4+HLMN1) , '★'),COLORFF00FF;
MA(C,5);
MA(C,10);
MA(C,30),COLOR00DDDD;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
VAR1:=EMA(CLOSE,3)-EMA(CLOSE,6)-(EMA(CLOSE,6)-EMA(CLOSE,12))*(-100);
VAR2:=EMA(VAR1,3);
VAR55:=CROSS(VAR1,VAR2);
VAR66:=CROSS(VAR2,VAR1);
STICKLINE(VAR66,OPEN,CLOSE,2.8,0), COLORBLUE;
STICKLINE(VAR55,OPEN,CLOSE,2.8,0), COLORYELLOW;
STICKLINE(VAR55,OPEN,CLOSE-(CLOSE-OPEN)*0.33,2.8,0), COLORAACCDD;
STICKLINE(VAR55,OPEN,CLOSE-(CLOSE-OPEN)*0.66,2.8,0), COLORRED;
STICKLINE(ISLASTBAR ,压力位,压力位,25,0),LINETHICK2,COLORFFFFFF;
STICKLINE(ISLASTBAR ,底部位,底部位,20,0),LINETHICK2,COLOR00FFFF;
STICKLINE(ISLASTBAR AND (红持股 OR REF(红持股,1)=1),今离场价,今离场价,35,1),COLOR0000FF;
STICKLINE(ISLASTBAR AND (阴观望 OR REF(阴观望,1)=1),今进场价,今进场价,35,1),COLOR00FF00;
TT:=240/FROMOPEN;
比:=TT;
促进指数MFL:=(HIGH-LOW)*1000000/(VOL*比),COLORRED;
AY2:=EMA(CLOSE,12)-EMA(CLOSE,26);
AZ2:=EMA(AY2,9);
LT2:=(AY2-AZ2);
L211:=IF(LT2,LLV(L,21),DRAWNULL),COLOR217158,CIRCLEDOT;
ZGD:=HHV(H,80)*0.99;
ZGD2:=CONST(ZGD);
ZDD:=LLV(L211,80);
ZDD2:=CONST(ZDD);
YYA4:=MA(CLOSE,20);
YYA5:=(CLOSE > MA(CLOSE,5));
YYA6:=(MA(CLOSE,5) > MA(CLOSE,10));
YYA7:=(CLOSE > MA(CLOSE,10));
YYA8:=(MA(CLOSE,5) > MA(CLOSE,20));
YYA9:=(CLOSE > MA(CLOSE,20));
YYA10:=REF(YYA4,1);
YYA11:=(YYA4 > YYA10);
YYAVX:=(((((IF(YYA5,10,(0 - 10)) + IF(YYA6,10,(0 - 10))) + IF(YYA7,10,(0 - 10))) + IF(YYA8,10,(0 - 10))) + IF(YYA9,10,(0 - 10))) + IF(YYA11,10,(0 - 10)));
DSLX:=(CLOSE / INDEXC);
DSLX1:=MA(DSLX,5);
DSLX2:=MA(DSLX,10);
YYV1:=MA(VOL,5);
YYV2:=MA(VOL,10);
J1:=CONST(IF( YYAVX > 0,200,100));
J2:=CONST(IF( YYAVX > 0,00,100));
J3:=CONST(IF( YYAVX > 0,100,100));
ZGD3:=ZGD2;
ZDD3:=ZDD2;
ZGD4:=ZGD2;
情况1:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0)),NODRAW;
情况2:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况3:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 > YYV2)) AND (DSLX < DSLX1)),1,0));
情况4:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 <= YYV2)) AND (DSLX < DSLX1)),1,0));
情况5:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));
情况6:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况7:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0));
情况8:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));
情况9:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));
情况10:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况11:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0)),NODRAW;
情况12:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));
情况13:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));
情况14:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
- 上一篇公式:通达信筹码分布主图源码
- 下一篇公式:通达信突破左峰优化版主图 幅图 选股