通达信超级解盘主图+七彩量能趋势评分副图指标 源码

{超级解盘主图源码如下}

DRAWGBK(C>0,RGB(0,0,110),RGB(0,25,0),0,' ',0);
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORYELLOW;

天:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),DOTLINE,COLORGREEN,LINETHICK1;
地:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK1,DOTLINE,COLORYELLOW;
DRAWBAND(天,RGB(34,0,68),地,RGB(55,0,0));

AA05:MA(C,5),LINETHICK1,COLORYELLOW;
五日乖离率:=(C-AA05)/AA05*100;
BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;
速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);
加速度5:=EMA((速度5-REF(速度5,1)),3);
IF(BB05>30 AND AA05>REF(AA05,1),AA05,DRAWNULL),LINETHICK1,COLORRED;
IF(BB05<0 AND AA05<REF(AA05,1),AA05,DRAWNULL),LINETHICK1,COLORGREEN;

DRAWKLINE(H,O,L,C);

TT:=240/FROMOPEN;
比:=TT;
J12:=(HIGH - ((HIGH - LOW) / 3));
J23:=(LOW + ((HIGH - LOW) / 3));
AAA:=CONST(HHV(H,90));
BBB:=CONST(LLV(L,100));
MA3:=MA(CLOSE,3),COLORFFFFFF;
MA13:=MA(CLOSE,13),COLORFF00FF,POINTDOT,LINETHICK4;
MA55:=MA(CLOSE,55);
MA89:=MA(CLOSE,89);
MA250:=MA(CLOSE,250);
DRAWKLINE(H,O,L,C);

T1{早晨之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1)
< REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND
CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));
T2{黄昏之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.03 AND REF(OPEN,1)
> REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02
AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2)),1,0));
T3{长十字}:=CONST(IF((CLOSE=OPEN AND HIGH/LOW >1.03),1,0));
T4{垂死十字}:=CONST(IF((CLOSE=OPEN AND CLOSE=LOW AND CLOSE!=HIGH),1,0));
T5{早晨十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1)
< REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND
CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));
T6{黄昏十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.05 AND REF(OPEN,1)
> REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND
CLOSE/OPEN<0.95 AND CLOSE<REF(CLOSE,2)),1,0));
T7{射击之星}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >
3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE > MA(CLOSE,5)),1,0));
T8{倒转锤头}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >
3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE < MA(CLOSE,5)),1,0));
T9{锤头}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >
3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE < MA(CLOSE,5)),1,0));
T10{吊颈}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >
3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5)),1,0));
T11{穿头破脚}:=CONST(IF(((REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.96
AND CLOSE<REF(OPEN,1)
AND OPEN>REF(CLOSE,1))OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.04
AND CLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1))),1,0));
T12{乌云盖顶}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.97
AND OPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1)),1,0));
T13{曙光初现}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.03
AND OPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1)),1,0));
T14{身怀六甲}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04
AND ABS(CLOSE-OPEN)/CLOSE<0.005 AND
MAX(CLOSE,OPEN) < MAX(REF(CLOSE,1),REF(OPEN,1)) AND MIN(CLOSE,OPEN)
> MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));
T15{十字胎}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04
AND CLOSE=OPEN AND
CLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE > MIN(REF(CLOSE,1)
,REF(OPEN,1))),1,0));
T16{平顶}:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGH<0.001),1,0));
T17{平底}:=CONST(IF(((ABS(LOW-REF(LOW,1))/LOW<0.001 AND ABS(REF(LOW,1)
-REF(LOW,2))/REF(LOW,1)<=0.001)),1,0));
T18{大阳烛}:=CONST(IF((CLOSE/OPEN>1.05 AND HIGH/LOW < CLOSE/OPEN+0.018),1,0));
T19{三个白武士}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)
>REF(OPEN,1) AND CLOSE>OPEN
AND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1)),1,0));
T20{双飞乌鸦}:=CONST(IF((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN
AND CLOSE/OPEN<0.98),1,0));
T21{孕育线}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2)
-REF(OPEN,2))/REF(OPEN,2)>=2/100 AND REF(OPEN,1)>=REF(CLOSE,1)
AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1)
<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND C>=OPEN
AND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) AND OPEN<=REF(CLOSE,1)
AND (MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2))
<=1/100),1,0));
T22{多方炮}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1)
AND CLOSE>OPEN),1,0));
T23{出水芙蓉}:=CONST(IF(((OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN<
EMA(C,60)) AND (C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))))AND (V/MA(V,30)
>1.2 AND C/REF(C,1)>1.049)),1,0));
T24{上升三部曲}:=CONST(IF((REF(CLOSE,4)/REF(OPEN,4)>1.03 AND REF(CLOSE,3)
<REF(OPEN,3) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1)
AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)
<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2)
AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 AND CLOSE>REF(CLOSE,4)),1,0));
T25{下跌三部曲}:=CONST(IF(( REF(CLOSE,4)/REF(OPEN,4)<0.97 AND REF(CLOSE,3)
>REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1)
AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)
<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN<0.97 AND
CLOSE<REF(CLOSE,4)),1,0));
T26{跳空缺口}:=CONST(IF(HIGH<REF(LOW,1) OR LOW>REF(HIGH,1),1,0));
T27{三只乌鸦}:=CONST(IF((REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)
<REF(OPEN,1) AND CLOSE<OPEN AND REF(CLOSE,1)<REF(CLOSE,2)
AND CLOSE<REF(CLOSE,1)),1,0));
T28{光脚阴线}:=CONST(IF((LOW=CLOSE AND HIGH!=LOW),1,0));
T29{光头阳线}:=CONST(IF((HIGH=CLOSE AND HIGH!=LOW),1,0));
T30{分离}:=CONST(IF((OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1)
-REF(OPEN,1))<0),1,0));
T31{长下影}:=CONST(IF(((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667),1,0));
T32{长上影}:=CONST(IF(((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667),1,0));
T33{十字星}:=CONST(IF((CLOSE=OPEN AND HIGH!=LOW),1,0));
T34{大阴烛}:=CONST(IF((OPEN/CLOSE > 1.05 AND HIGH/LOW < OPEN/CLOSE+0.018),1,0));
T35{好友反攻}:=CONST(IF(((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN
AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002) OR (REF(CLOSE,1)>REF(OPEN,1)
AND CLOSE<OPEN AND ABS(CLOSE-REF(CLOSE,1))
/CLOSE<0.002)),1,0));
T36{倾盆大雨}:=CONST(IF((REF(C,1)/REF(O,1)>=1.03 AND O<REF(C,1) AND O
>REF(O,1) AND C<REF(O,1)),1,0));
T37{M9}:=CONST(V*比>REF(V,1) AND MA(V,5)>REF(MA(V,5),1));
T38{M10}:=CONST(V*比<REF(V,1) AND MA(V,5)>REF(MA(V,5),1));
T39{M11}:=CONST(V*比>REF(V,1)AND MA(V,5)<REF(MA(V,5),1));
T40{M12}:=CONST(V*比<REF(V,1)AND MA(V,5)<REF(MA(V,5),1));
T41{M13}:=CONST((((IF((CLOSE = OPEN),1,0) + IF((CLOSE >= J12),1,0)) + IF((CLOSE <= J23),1,0)) > 1));
T42{M14}:=CONST((((AMOUNT / VOL) / 100) > REF(HIGH,1)));
T43{M15}:=CONST((((AMOUNT / VOL) / 100) < REF(LOW,1)));

TS1:=IF(T1=1,0+0.03,0);
TS2:=IF(T2=1,TS1+0.03,TS1);
TS3:=IF(T3=1,TS2+0.03,TS2);
TS4:=IF(T4=1,TS3+0.03,TS3);
TS5:=IF(T5=1,TS4+0.03,TS4);
TS6:=IF(T6=1,TS5+0.03,TS5);
TS7:=IF(T7=1,TS6+0.03,TS6);
TS8:=IF(T8=1,TS7+0.03,TS7);
TS9:=IF(T9=1,TS8+0.03,TS8);
TS10:=IF(T10=1,TS9+0.03,TS9);
TS11:=IF(T11=1,TS10+0.03,TS10);
TS12:=IF(T12=1,TS11+0.03,TS11);
TS13:=IF(T13=1,TS12+0.03,TS12);
TS14:=IF(T14=1,TS13+0.03,TS13);
TS15:=IF(T15=1,TS14+0.03,TS14);
TS16:=IF(T16=1,TS15+0.03,TS15);
TS17:=IF(T17=1,TS16+0.03,TS16);
TS18:=IF(T18=1,TS17+0.03,TS17);
TS19:=IF(T19=1,TS18+0.03,TS18);
TS20:=IF(T20=1,TS19+0.03,TS19);
TS21:=IF(T21=1,TS20+0.03,TS20);
TS22:=IF(T22=1,TS21+0.03,TS21);
TS23:=IF(T23=1,TS22+0.03,TS22);
TS24:=IF(T24=1,TS23+0.03,TS23);
TS25:=IF(T25=1,TS24+0.03,TS24);
TS26:=IF(T26=1,TS25+0.03,TS25);
TS27:=IF(T27=1,TS26+0.03,TS26);
TS28:=IF(T28=1,TS27+0.03,TS27);
TS29:=IF(T29=1,TS28+0.03,TS28);
TS30:=IF(T30=1,TS29+0.03,TS29);
TS31:=IF(T31=1,TS30+0.03,TS30);
TS32:=IF(T32=1,TS31+0.03,TS31);
TS33:=IF(T33=1,TS32+0.03,TS32);
TS34:=IF(T34=1,TS33+0.03,TS33);
TS35:=IF(T35=1,TS34+0.03,TS34);
TS36:=IF(T36=1,TS35+0.03,TS35);
TS37:=IF(T37=1,TS36+0.03,TS36);
TS38:=IF(T38=1,TS37+0.03,TS37);
TS39:=IF(T39=1,TS38+0.03,TS38);
TS40:=IF(T40=1,TS39+0.03,TS39);
TS41:=IF(T41=1,TS40+0.03,TS40);
TS42:=IF(T42=1,TS41+0.03,TS41);
TS43:=IF(T43=1,TS42+0.03,TS42);

DRAWTEXT(T1=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS1),'早晨之星,见底回升‖'),COLORFF00FF ;
DRAWTEXT(T2=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS2),'黄昏之星,见顶回落‖'),COLORFFFF00 ;
DRAWTEXT(T3=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS3),'长十字,重要的警告信号,原趋势停顿或反转‖'),COLOR00FFFF ;
DRAWTEXT(T4=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS4),'垂死十字,下跌信号‖'),COLORFFFF00 ;
DRAWTEXT(T5=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS5),'早晨十字星,上涨信号,见底回升‖'),COLORFF00FF ;
DRAWTEXT(T6=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS6),'黄昏十字星,趋势停顿或反转,下跌或,见顶回落‖'),COLORFFFF00 ;
DRAWTEXT(T7=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS7),'射击之星,市场顶部就在眼前,可能见顶回落,可靠性低‖'),COLORFFFF00 ;
DRAWTEXT(T8=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS8),'倒转锤头构成一个看涨信号,可能见底回升‖'),COLORFF00FF ;
DRAWTEXT(T9=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS9),'锤头,可能见底回升,如有量配合,信号强烈‖'),COLOR0000FF ;
DRAWTEXT(T10=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS10),'吊颈,上升行情中见顶回落,顶部出现,见顶信号‖'),COLORFFFF00 ;
DRAWTEXT(T11=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS11),'穿头破脚,顶部出现,见顶回落信号‖'),COLORFFFF00 ;
DRAWTEXT(T12=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS12),'乌云盖顶,见顶回落信号‖'),COLORFFFF00 ;
DRAWTEXT(T13=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS13),'曙光初现,将演化为V型反转或横盘。后市见底回升‖'),COLORFF00FF ;
DRAWTEXT(T14=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS14),'身怀六甲,底部,是见底回升,顶部,是见顶回落信号‖'),COLOR00FFFF ;
DRAWTEXT(T15=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS15),'十字胎‖'),COLOR00FFFF ;
DRAWTEXT(T16=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS16),'平顶,行情见顶,股价将反转。但下跌力度较小‖'),COLORFFFFFF ;
DRAWTEXT(T17=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS17),'平底,行情探低见底,股价行将反转上升,但力度较小‖'),COLORFFFFFF ;
DRAWTEXT(T18=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS18),'大阳烛,上升中,剧烈地向上攀升。下行中,剧烈地向上反弹‖'),COLOR0000FF ;
DRAWTEXT(T19=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS19),'三个白武士,每日收盘价上移,表示可能见底回升‖'),COLORFFFFFF ;
DRAWTEXT(T20=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS20),'双飞乌鸦,行情开始疲软将见顶回落‖'),COLORFF0000 ;
DRAWTEXT(T21=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS21),'孕育线,注意股价位置‖'),COLOR00FFFF ;
DRAWTEXT(T22=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS22),'多方炮,底部可能上涨,中间上涨中继,顶部见顶信号‖'),COLOR00FFFF ;
DRAWTEXT(T23=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS23),'出水芙蓉,阳线穿过20、40、60日均线,上攻势头初现‖'),COLORFF00FF ;
DRAWTEXT(T24=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS24),'上升三部曲,上涨信号‖'),COLORFF00FF ;
DRAWTEXT(T25=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS25),'下跌三部曲,下跌信号‖'),COLORFFFF00 ;
DRAWTEXT(T26=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS26),'跳空缺口,突破盘整,向上涨、向下跌开始‖'),COLOR00FFFF ;
DRAWTEXT(T27=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS27),'三只乌鸦站枝头,可能见顶回落‖'),COLORFFFF00 ;
DRAWTEXT(T28=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS28),'光脚阴线,下跌信号‖'),COLORFFFF00 ;
DRAWTEXT(T29=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS29),'光头阳线,多方积极上攻态势,后市看涨‖'),COLOR0000FF ;
DRAWTEXT(T30=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS30),'分离,注意看涨分离和吹掷搿?'),COLOR00FFFF ;
DRAWTEXT(T31=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS31),'长下影,有可能止跌回升,升势末期,须小心‖'),COLOR00FFFF ;
DRAWTEXT(T32=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS32),'长上影,表明行情上档压力沉重,升势受阻‖'),COLORFFFF00 ;
DRAWTEXT(T33=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS33),'十字星,重要的警告信号,原趋势停顿或反转‖'),COLOR00FFFF ;
DRAWTEXT(T34=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS34),'大阴烛,后市向淡,发生逆转‖'),COLORFF0000 ;
DRAWTEXT(T35=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS35),'好友反攻,跌势已尽,要展开一段反弹行情‖'),COLORFF00FF ;
DRAWTEXT(T36=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS36),'倾盆大雨,见顶信号‖'),COLORFFFF00 ;
DRAWTEXT(T37=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS37),'今日成交量大于昨日,且有继续增大趋势'),COLORYELLOW ;
DRAWTEXT(T38=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS38),'今日成交量小于昨日,但有放大迹象'),COLORFFFF00 ;
DRAWTEXT(T39=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS39),'今日成交量大于昨日, 但有缩小迹象'),COLORRED ;
DRAWTEXT(T40=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS40),'今日成交量小于昨日,且有缩小迹象'),COLORRED ;
DRAWTEXT(T41=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS41),'极端行情,在未来的几日内有85%的机会变更方向'),COLORWHITE ;
DRAWTEXT(T42=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS42),'上涨趋势'),COLORRED ;
DRAWTEXT(T43=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS43),'下跌趋势'),COLORGREEN ;

MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);

A:=(3*C+L+O+H)/6;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
CB:=EMA(X,13);
卖:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0);
DRAWTEXT(FILTER(卖=1,1),HIGH*1.02,'卖'),COLORWHITE;

买1:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
DRAWTEXT(FILTER(买1=1,5),LOW-0.03,'买'),COLORRED;

RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
BDGD:=HHV(J,2)=HHV(J,8) AND J>80;
小心:=IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0);
DRAWTEXT(小心 AND 卖!=1,HIGH*1.01,'减'),COLORLIBLUE;

加仓A:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
DRAWTEXT(FILTER((CROSS(加仓A,0) OR CROSS(CLOSE,CB)) AND 买1=1,3),LOW-0.03,'加'),COLOR0080FF;
MA18:=MA(C,18);
跟:=IF(MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18),1,0);
DRAWTEXT(MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18),LOW*0.99,'跟'),COLOR7F52AF;

买入价:=((C-REF(MA5,1))/5+MA5)*1.004;
买入条件:=CROSS(C,买入价) AND 买入价>REF(买入价,1);
白K线买进:IF(买入条件,L,H),COLORWHITE,POINTDOT;
STICKLINE(买入条件,H,L,0,1),COLORWHITE,LINETHICK2;
STICKLINE(买入条件,O,C,4,1),COLORWHITE,LINETHICK2;
增仓价:=((C-REF(MA10,1))/20+MA10)*1.004;
增仓条件:=CROSS(C,增仓价) AND
增仓价>REF(增仓价,1);
黄K线增仓:IF(增仓条件,L,H),COLORYELLOW,POINTDOT;
STICKLINE(增仓条件,H,L,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(增仓条件,O,C,4,1),COLORYELLOW,LINETHICK2;

P1:=5;
P2:=10;
P3:=20;
P4:=30;
P5:=60;
P6:=120;
P7:=240;
P8:=340;
N:=4;
WX:=MA(CLOSE,0);
M1:=MA(CLOSE,P1);
M2:=(MA(CLOSE,P2) * IF((N < 2),WX,1));
M3:=(MA(CLOSE,P3) * IF((N < 3),WX,1));
M4:=(MA(CLOSE,P4) * IF((N < 4),WX,1));
M5:=(MA(CLOSE,P5) * IF((N < 5),WX,1));
M6:=(MA(CLOSE,P6) * IF((N < 6),WX,1));
M7:=(MA(CLOSE,P7) * IF((N < 7),WX,1));
M8:=(MA(CLOSE,P8) * IF((N < 8),WX,1));
C1:=REF(CLOSE,1);
C2:=HHV(C1,2);
C3:=LLV(C1,1);
ET:=HHV(C1,2);
ET1:=REF(ET,1);
XB:=LLV(C1,1);
XB1:=REF(XB,1);
M:=BARSLAST(((CLOSE < XB) AND (C1 >= XB1)));
M11:=REF(M,1);
N9:=BARSLAST(((CLOSE > ET) AND (C1 <= ET1)));
N1:=REF(N9,1);
M21:=(BARSLAST((((M - N9) > 0) AND (M11 <= N1))) + 1);
N2:=(BARSLAST((((N9 - M) > 0) AND (N1 <= M11))) + 1);
ET2:=HHV(ET,M21);
XB2:=LLV(XB,N2);
H1:=IF(((M - N9) > 0),CLOSE,ET2);
H2:=IF((A = 1),CLOSE,C2);
H3:=IF(((M - N9) < 0),CLOSE,XB2);
H4:=IF((A = 1),CLOSE,XB2);
H5:=IF((((M - N9) > 0) OR (A = 1)),CLOSE,H3);
H6:=REF(H5,1);
H7:=REF(H5,2);
H8:=(H5 > H6);
H9:=(((H4 = REF(H4,1)) AND (REF(H4,1) < REF(H4,2))) AND (H5 > REF(H5,2)));
H10:=(((H2 = REF(H2,1)) AND (H4 = REF(H4,1))) AND (H5 = REF(H5,2)));
W:=((H8 OR H9) OR H10);
T09:=((H5 < H6) AND (H5 < REF(H5,2)));
T010:=((H4 = REF(H4,1)) AND (H5 < REF(H5,2)));
T011:=((H3 > REF(H3,1)) AND (H5 < REF(H5,1)));
T012:=((H5 = REF(H5,1)) AND (H3 = H4));
T013:=((H2 = REF(H2,1)) AND (H2 = H5));
TW:=((((T9 OR T10) OR T11) OR T12) OR T13);
PK:=((AMOUNT * (((OPEN + CLOSE) + HIGH) + LOW)) / 4);
PK1:=IF((VOL > 0),(PK / AMOUNT),((((OPEN + CLOSE) + HIGH) + LOW) / 4));
BBP:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
DRAWTEXT((ISLASTBAR AND (BBP >= 96.5)),(H5 * 1.022),'明见-短高-龙头-除外'),COLORRED;
DRAWTEXT((ISLASTBAR AND (BBP < 1)),((H5 + H4) / 1.96),'明见-短低-跌停-除外'),COLORGREEN;
DRAWTEXT(((ISLASTBAR AND W) AND (BBP < 96.5)),(H5 * 1.022),'明日看涨'),COLORYELLOW;
DRAWTEXT(((ISLASTBAR AND TW) AND (BBP > 1)),((H5 + H4) / 2),'明日看跌'),COLORGREEN;

{顶底}
DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.978,'底'),LINETHICK2,COLORYELLOW;
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,'顶'),LINETHICK2,COLORYELLOW;

{趋势评分}
X01:=IF(MA(C,5)>MA(C,10),20,0);
X02:=IF(MA(C,20)>MA(C,60),10,0);
X3:=IF(KDJ.J>KDJ.K,10,0);
X4:=IF(MACD.DIF>MACD.DEA,10,0);
X5:=IF(MACD.MACD>0,10,0);
X6:=IF(V>MA(V,60),10,0);
X7:=IF(WINNER(C)>0.5,10,0);
X8:=IF(C/REF(C,1)>1.03,10,0);
XX:=X01+X02+X3+X4+X5+X6+X7+X8;
DRAWTEXT_FIX(V>O,0.41,0,0,STRCAT('趋势评分: ',STRCAT(CON2STR(XX,0),' '))),COLORLIMAGENTA;

总额:=AMOUNT;
买0:=IF(O=C AND (C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L));
买%:=买0/AMOUNT*100;
流入:=AMOUNT*买%/10000000000;
流出:=AMOUNT/100000000-流入;
净流:=(流入-流出);
总额3:=SUM(AMOUNT,3);
流入3:=SUM(流入,3);
流出3:=SUM(流出,3);
净流3:=SUM(流入-流出,3);
总额5:=SUM(AMOUNT,5);
流入5:=SUM(流入,5);
流出5:=SUM(流出,5);
净流5:=SUM(流入-流出,5);
DRAWTEXT_FIX(1,0.58,0,0,'净流(亿):'),COLOR8080FF,COLORWHITE;
DRAWNUMBER_FIX(1,0.7,0,0,CONST((净流))),COLORWHITE;
DRAWNUMBER_FIX(1,0.83,0,0,CONST((净流3))),COLORWHITE;
DRAWNUMBER_FIX(1,1,0,0,CONST((净流5))),COLORWHITE;

竞价额:=DYNAINFO(15)/10000;{万元}
DRAWTEXT_FIX(C>0,0,0.15,0,VARCAT(VARCAT('竞价: ',VAR2STR(竞价额,0)),' 万')),
COLORMAGENTA;

{庄家成本}
AL0:=SUMBARS(V,CAPITAL*1);
AL1:=SUM(COST(10),AL0)/AL0;
AL2:=SUM(COST(20),AL0)/AL0;
AL3:=SUM(COST(30),AL0)/AL0;
AL4:=SUM(COST(40),AL0)/AL0;
AL5:=SUM(COST(50),AL0)/AL0;
庄家成本2:=(5*AL1+4*AL2+3*AL3+2*AL4+AL5)/15,COLOR0080FF,DOTLINE;
庄家成本1:REFDATE(庄家成本2,DATE),COLORLIGRAY,DOTLINE;
DRAWTEXT(CURRBARSCOUNT=50,庄家成本1,STRCAT('庄本:',CON2STR(庄家成本1,2))),COLORLIGRAY;

{顾比}
P:=21;
擒股指标1:=IF(L=LLV(L,P),L,DRAWNULL);
擒股指标2:=CONST(BARSLAST(擒股指标1!=DRAWNULL));
擒股指标3:=CONST(IF(擒股指标2=0,H,REF(H,擒股指标2)));
擒股指标4:=CONST(REF(BARSLAST(H>擒股指标3),擒股指标2+1)+擒股指标2+1);
擒股指标5:=CONST(IF(擒股指标4=0,H,REF(H,擒股指标4)));
擒股指标6:=CONST(REF(BARSLAST(H>擒股指标5),擒股指标4+1)+擒股指标4+1);
顾比:IF(CURRBARSCOUNT<=擒股指标2+21,CONST(IF(擒股指标6=0,H,REF(H,擒股指标6))),DRAWNULL),DOTLINE,COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=20,顾比,STRCAT(('顾比:'),CON2STR(顾比,1))),COLORYELLOW;

{洗盘}
XP1:=V=HHV(V,60) AND C<O;
XP2:=V<REF(V,1) AND H/C>1.04 AND C<O AND EXIST(H>HHV(L,60),5);
STICKLINE(XP2,O,C,1,1), COLORGREEN;

{断量}
MV5:=MA(V,5);
破5:=CROSS(MV5,V);
断量:DRAWLINE(破5 AND CURRBARSCOUNT<9,C,REF(破5,1),REF(C,1),1),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,断量,STRCAT((''),CON2STR(断量,2))),COLORWHITE;

下降压力线:DRAWLINE(CURRBARSCOUNT<20 AND HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLORGRAY ,LINETHICK1,DOTLINE;

{快逃绿箭头}
VAR30:=PEAKBARS(3,15,1)<10;
VAR50:=IF(VAR30=1,2,0);
顶1:= IF(VAR50=2,2,0);
顶A:=IF(顶1>REF(顶1,1),2,0),COLORGREEN;
DRAWICON(顶A=2,H*1.02,2);

{买点红箭头}
AR1:=EMA(OPEN,7);
AR2:=EMA(AR1,21);
AR3:=CROSS(AR1,AR2);
AR5:=EMA(SMA((CLOSE-LLV(LOW,20))/(HHV(HIGH,16)-LLV(LOW,20))*100,8,1),3);
短买:=IF(TROUGHBARS(1,6,1)=0 AND HIGH>LOW+0,2,0),COLORRED;
DRAWICON(短买=2,L*0.98,1);

{小压}
H01:=REF(C,9)=HHV(C,2*9+1);
H02:=FILTER(H01,9);
H03:=BACKSET(H02,9+1);
H04:=FILTER(H03,9);
小压:=REF(C*0.999,BARSLAST(H04)),COLORWHITE,NODRAW;
H05:=ABS(REF(小压,1)-小压)>小压*0.075 AND H4;
小压2:REF(C*0.999,BARSLAST(H05)),COLORLIGREEN,DOTLINE;
{STICKLINE(C*0.999,小压2,小压2,1,1), COLORLIBLUE;};


{七彩量能副图副图源码如下}


DRAWGBK(C>0,RGB(0,0,110),RGB(0,25,0),0,' ',0);
PJ:=(H+L+C)/3;
V1:=IF(H=L,1,H-MAX(O,C));
V2:=IF(H=L,1,MAX(C,O)-PJ);
V3:=IF(H=L,1,MIN(O,C)-L);
V4:=IF(H=L,1,PJ-MIN(C,O));
V5:=VOL/IF(H=L,4,H-L);
V6:=(V1*V5)+(V2*V5);
V7:=(V3*V5)+(V4*V5);
WP1:=DYNAINFO(23);
NP1:=DYNAINFO(22);
WP2:=IF(ISLASTBAR,V7*240/FROMOPEN,V7);
NP2:=IF(ISLASTBAR,V6*240/FROMOPEN,V6);
主买:IF(ISLASTBAR AND PERIOD=5,WP1,WP2),COLORRED,NODRAW;
主卖:IF(ISLASTBAR AND PERIOD=5,NP1,NP2),COLORGREEN,NODRAW;
净量:=ABS(主买-主卖);
DRAWRECTREL(50,0,CONST(主买*500/(主买+主卖)+50),80,RGB(230,65,0));
DRAWRECTREL(50,110,CONST(主卖*500/(主买+主卖)+50),190,RGB(0,104,0));
主买1:=BUYVOL,COLORLIRED,NODRAW;
主卖1:=-SELLVOL,COLORLIBLUE,NODRAW;
总量:=VOL,VOLSTICK;
ZZ:=IF(REF(C,1)>REF(O,1) AND O>REF(C,1)*1.014 AND C< O*1.02,1,3);
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
饱和度:IF(SAT>1,1,SAT)*100,COLORYELLOW,NODRAW;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
V05:=MA(V,5);
V12:=MA(V,12);
V34:=MA(V,34);
C6:=MA(C,6);
STICKLINE(C,0,VOL,2,0),COLORGRAY;
STICKLINE(CROSS(C,C6) AND V>V05*1.2 AND V>V12*1.2 AND ZZ>2 AND C>H*0.975,0,VOL,2,0),COLORRED;
STICKLINE(CROSS(C6,C) AND V>V05*1.2 AND V>V12*1.2,0,VOL,2,0),COLORGREEN;
STICKLINE(VOL>MA(VOL,5)*2 AND V>V34*3 AND C< REF(C,1)*1.05,0,VOL,2,0),COLORYELLOW;
STICKLINE(VOL< MA(VOL,5)/2 AND V< V12/2,0,VOL,2,0),COLORBLUE;
STICKLINE(VOL>MA(VOL,5)*2 AND V>V34*3 AND C< REF(C,1)*1.05 AND CROSS(C,C6) AND V>V5*1.2 AND V>V12*1.2 AND ZZ>2 AND C>H*0.975,VOL*0.5,0,2,0),COLORRED;
STICKLINE(VOL>MA(VOL,5)*2 AND V>V34*3 AND C< REF(C,1)*1.05 AND CROSS(C6,C) AND V>V5*1.2 AND V>V12*1.2,VOL*0.5,0,2,0),COLORWHITE;
N:=27;
N2:=9;
N4:=16;
VAR1:=IF(DATE>=1030131,1,1);
VAR2:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
VAR3:=SMA(VAR2,3,1)*VAR1;
VAR4:=SMA(VAR3,N2,1)*VAR1;
VAR5:=3*VAR3-2*VAR4*VAR1;
STICKLINE(VOL AND VAR5>VAR4,0,VOL,2,1),COLORRED;
STICKLINE(VOL AND VAR5< VAR4,0,VOL,2,1),COLORGREEN;
STICKLINE(VOL AND VAR4< N4,-10,VOL*0.5,2,0),COLORBLUE;
VARN2:=CLOSE-REF(CLOSE,1);
VARN3:=IF(CLOSE-REF(CLOSE,1)>=0,VARN2,0);
VARN4:=REF(CLOSE,1)-CLOSE;
VARN5:=IF(CLOSE-REF(CLOSE,1)<=0,VARN4,0);
VARN6:=SUM(VARN3,16)/SUM(VARN5,16);
VARN7:=100-100/(1+VARN6);
VARN8:=EMA(VARN7,16);
VARN9:=EMA(VARN8,8);
VARNA:=EMA(VARN8,45);
MO:=(VARN8-VARNA);
ML:=(VARN9-VARNA);
VARN1A:=EMA(CLOSE,32);
VARN2A:=MA(OPEN,32);
趋势:=(VARN1A-VARN2A);
STICKLINE(MO>ML AND 趋势< 0 AND MO>REF(MO,3) AND 趋势>REF(趋势,3),VOL,0,1,0) COLORYELLOW;
AAA:DRAWLINE(VOL>=HHV(VOL,35),VOL,VOL<=LLV(VOL,8),HHV(VOL,3),1),COLORWHITE;
BBB:DRAWLINE(VOL<=LLV(VOL,8),VOL,VOL>=HHV(VOL,35),HHV(VOL,3),0),COLORYELLOW;
量比:VOL/REF(MA(VOL,5),1),NODRAW,COLORAAAAAA;
X_10:=VOL=HHV(VOL,30);
X_11:=BARSLAST(FILTER(CROSS(0.9,X_10),2))+1;
X_12:=REF(VOL,X_11);{公式平台 公式源码 HTTP://WWW.GSPT.COM}
STICKLINE(X_11<=30,X_12,X_12,1,0),COLORBROWN;
VVOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,(-1),(-1)),COLOR00C0C0;
XA_1:=AMOUNT;
XA_2:=MA(AMOUNT,5);
XA_3:=MA(AMOUNT,10);
XA_4:=HHV(XA_1,30)=XA_1;
XA_5:=HHV(XA_1,60)=XA_1;
XA_6:=HHV(XA_1,100)=XA_1;
XA_7:=HHV(XA_1,250)=XA_1;
STICKLINE(XA_4 AND C>REF(C,1),VOL,VOL*0.2,3,0),COLORMAGENTA;
STICKLINE(XA_5 AND C< REF(C,1),VOL,VOL*0.2,3,0),COLORBLUE;
STICKLINE(XA_6,VOL,VOL*0.2,3,0),COLOR0099FF;
STICKLINE(XA_7 AND C>REF(C,1),VOL,VOL*0.2,3,0),COLOR0033FF;
STICKLINE(XA_6 AND C< REF(C,1),VOL,VOL*0.2,3,0),COLORFF3399;
VARB1:=ZIG(3,96/12);
DRAWICON(REF(VARB1,2)< REF(VARB1,1) AND VARB1< REF(VARB1,1),VOL*1.2,15);
DRAWICON(REF(VARB1,2)>REF(VARB1,1) AND VARB1>REF(VARB1,1),VOL*1.3,9);
总额:=AMOUNT;
买0:=IF(O=C AND (C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L));
买%:=买0/AMOUNT*100;
流入:=AMOUNT*买%/10000000000;
流出:=AMOUNT/100000000-流入;
净流:=(流入-流出);
总额3:=SUM(AMOUNT,3);
流入3:=SUM(流入,3);
流出3:=SUM(流出,3);
净流3:=SUM(流入-流出,3);
总额5:=SUM(AMOUNT,5);
流入5:=SUM(流入,5);
流出5:=SUM(流出,5);
净流5:=SUM(流入-流出,5);
DRAWTEXT_FIX(1,0.4,0,0,'净流入(亿):'),COLOR8080FF,COLORYELLOW;
DRAWTEXT_FIX(1,0.5,0,0,'1日'),COLOR8080FF,COLORWHITE;
DRAWNUMBER_FIX(1,0.6,0,0,CONST((净流))),COLORYELLOW;
DRAWTEXT_FIX(1,0.7,0,0,'3日'),COLOR8080FF,COLORWHITE;
DRAWNUMBER_FIX(1,0.78,0,0,CONST((净流3))),COLORYELLOW;
DRAWTEXT_FIX(1,0.87,0,0,'5日'),COLOR8080FF,COLORWHITE;
DRAWNUMBER_FIX(1,1,0,0,CONST((净流5))),COLORYELLOW;
X01:=IF(MA(C,5)>MA(C,10),20,0);
X02:=IF(MA(C,20)>MA(C,60),10,0);
X3:=IF(KDJ.J>KDJ.K,10,0);
X4:=IF(MACD.DIF>MACD.DEA,10,0);
X5:=IF(MACD.MACD>0,10,0);
X6:=IF(V>MA(V,60),10,0);
X7:=IF(WINNER(C)>0.5,10,0);
X8:=IF(C/REF(C,1)>1.03,10,0);
XG:=X01+X02+X3+X4+X5+X6+X7+X8;
DRAWTEXT_FIX(V>O,0.15,0,0,STRCAT('趋势评分:',STRCAT(CON2STR(XG,0),' '))),COLORLIBLUE;



未来函数检测结果如下:
该公式包含未来函数:ZIG
该公式包含未来函数:PEAK
该公式包含未来函数:PEAKBARS
该公式包含未来函数:TROUGH
该公式包含未来函数:TROUGHBARS
该公式包含未来函数:BACKSET
该公式包含未来函数:WINNER
该公式包含未来函数:COST
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
该公式包含未来函数:XMA

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

{超级解盘主图源码如下}DRAWGBK(C>0,RGB(0,0,110),RGB(0,25,0),0,' ',0)
Z1赋值:STRCAT(HYBLOCK,' ')
Z2赋值:STRCAT(Z1,DYBLOCK)
Z3赋值:STRCAT(Z2,' ')
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORYELLOW
天赋值:(XMAXMAH的25日简单移动平均,25)-XMAXMAL的25日简单移动平均,25))*1+XMAXMAH的25日简单移动平均,25),DOTLINE,COLORGREEN,LINETHICK1
地赋值:XMAXMAL的25日简单移动平均,25)-(XMAXMAH的25日简单移动平均,25)-XMAXMAL的25日简单移动平均,25))*1,LINETHICK1,DOTLINE,COLORYELLOW
DRAWBAND(天,RGB(34,0,68),地,RGB(55,0,0))
输出AA05:MAC的5日简单移动平均,LINETHICK1,COLORYELLOW
五日乖离率赋值:(C-AA05)/AA05*100
BB05赋值:ATAN((AA05/1日前的AA05-1)*100)*180/3.1416
速度5赋值:SMA(EMA((AA05-1日前的AA05)/1日前的AA05,3)*100,3,1)
加速度5赋值:EMA((速度5-1日前的速度5),3)
IF(BB05>30 AND AA05>1日前的AA05,AA05,DRAWNULL),LINETHICK1,COLORRED
IF(BB05<0 AND AA05<1日前的AA05,AA05,DRAWNULL),LINETHICK1,COLORGREEN
DRAWKLINE(H,O,L,C)
TT赋值:240/FROMOPEN
比赋值:TT
J12赋值:(最高价 - ((最高价 - LOW) / 3))
J23赋值:(LOW + ((最高价 - LOW) / 3))
AAA赋值:CONST(90日内H最高值)
BBB赋值:CONST(100日内L最低值)
MA3赋值:MA收盘价的3日简单移动平均,COLORFFFFFF
MA13赋值:MA收盘价的13日简单移动平均,COLORFF00FF,POINTDOT,LINETHICK4
MA55赋值:MA收盘价的55日简单移动平均
MA89赋值:MA收盘价的89日简单移动平均
MA250赋值:MA收盘价的250日简单移动平均
DRAWKLINE(H,O,L,C)
T1{早晨之星}赋值:CONST(IF((2日前的收盘价/2日前的OPEN < 0.95 AND 1日前的OPEN< 2日前的收盘价 AND 1日前的OPEN-1日前的收盘价的绝对值/1日前的收盘价<0.03 AND收盘价/OPEN>1.05 AND 收盘价>2日前的收盘价),1,0))
T2{黄昏之星}赋值:CONST(IF((2日前的收盘价/2日前的OPEN > 1.03 AND 1日前的OPEN> 2日前的收盘价 AND 1日前的OPEN-1日前的收盘价的绝对值/1日前的收盘价<0.02AND 收盘价/OPEN<0.97 AND 收盘价<2日前的收盘价),1,0))
T3{长十字}赋值:CONST(IF((收盘价=OPEN AND 最高价/LOW >1.03),1,0))
T4{垂死十字}赋值:CONST(IF((收盘价=OPEN AND 收盘价=LOW AND 收盘价!=最高价),1,0))
T5{早晨十字星}赋值:CONST(IF((2日前的收盘价/2日前的OPEN < 0.95 AND 1日前的OPEN< 2日前的收盘价 AND 1日前的OPEN=1日前的收盘价 AND收盘价/OPEN>1.05 AND 收盘价>2日前的收盘价),1,0))
T6{黄昏十字星}赋值:CONST(IF((2日前的收盘价/2日前的OPEN > 1.05 AND 1日前的OPEN> 2日前的收盘价 AND 1日前的OPEN=1日前的收盘价 AND收盘价/OPEN<0.95 AND 收盘价<2日前的收盘价),1,0))
T7{射击之星}赋值:CONST(IF((OPEN和收盘价的较小值=LOW AND 最高价-LOW >3*(MAXOPEN和收盘价较大值-LOW) AND 收盘价 > MA收盘价的5日简单移动平均),1,0))
T8{倒转锤头}赋值:CONST(IF((OPEN和收盘价的较小值=LOW AND 最高价-LOW >3*(MAXOPEN和收盘价较大值-LOW) AND 收盘价 < MA收盘价的5日简单移动平均),1,0))
T9{锤头}赋值:CONST(IF((最高价 = MAXOPEN和收盘价较大值 AND 最高价-LOW >3*(最高价-OPEN和收盘价的较小值) AND 收盘价 < MA收盘价的5日简单移动平均),1,0))
T10{吊颈}赋值:CONST(IF((最高价 = MAXOPEN和收盘价较大值 AND 最高价-LOW >3*(最高价-OPEN和收盘价的较小值) AND 收盘价>MA收盘价的5日简单移动平均),1,0))
T11{穿头破脚}赋值:CONST(IF(((1日前的收盘价/1日前的OPEN>1.03 AND 收盘价/OPEN<0.96AND 收盘价<1日前的OPENAND OPEN>1日前的收盘价)OR (1日前的收盘价/1日前的OPEN<0.97 AND 收盘价/OPEN>1.04AND 收盘价>1日前的OPEN AND OPEN<1日前的收盘价)),1,0))
T12{乌云盖顶}赋值:CONST(IF((1日前的收盘价/1日前的OPEN>1.03 AND 收盘价/OPEN<0.97AND OPEN>1日前的收盘价 AND 收盘价<1日前的收盘价),1,0))
T13{曙光初现}赋值:CONST(IF((1日前的收盘价/1日前的OPEN<0.97 AND 收盘价/OPEN>1.03AND OPEN<1日前的收盘价 AND 收盘价>1日前的收盘价),1,0))
T14{身怀六甲}赋值:CONST(IF((1日前的收盘价-1日前的OPEN的绝对值/1日前的收盘价 > 0.04AND ABS(收盘价-OPEN)/收盘价<0.005 ANDMAX收盘价和OPEN较大值 < MAX1日前的收盘价和1日前的OPEN较大值 AND 收盘价和OPEN的较小值> 1日前的收盘价和1日前的OPEN的较小值),1,0))
T15{十字胎}赋值:CONST(IF((1日前的收盘价-1日前的OPEN的绝对值/1日前的收盘价 > 0.04AND 收盘价=OPEN AND收盘价 < MAX1日前的收盘价和1日前的OPEN较大值 AND 收盘价 > 1日前的收盘价和1日前的OPEN的较小值),1,0))
T16{平顶}赋值:CONST(IF((最高价-1日前的最高价的绝对值/最高价<0.001),1,0))
T17{平底}赋值:CONST(IF(((LOW-1日前的LOW的绝对值/LOW<0.001 AND ABS(1日前的LOW-2日前的LOW)/1日前的LOW<=0.001)),1,0))
T18{大阳烛}赋值:CONST(IF((收盘价/OPEN>1.05 AND 最高价/LOW < 收盘价/OPEN+0.018),1,0))
T19{三个白武士}赋值:CONST(IF((2日前的收盘价>2日前的OPEN AND 1日前的收盘价>1日前的OPEN AND 收盘价>OPENAND 1日前的收盘价>2日前的收盘价 AND 收盘价>1日前的收盘价),1,0))
T20{双飞乌鸦}赋值:CONST(IF((1日前的收盘价<1日前的OPEN AND 收盘价T21{孕育线}赋值:CONST(IF((2日前的收盘价>2日前的OPEN AND (2日前的收盘价-2日前的OPEN)/2日前的OPEN>=2/100 AND 1日前的OPEN>=1日前的收盘价AND (1日前的OPEN-1日前的收盘价)/1日前的收盘价<=2/100 AND 1日前的OPEN<=2日前的收盘价 AND 1日前的收盘价>=2日前的OPEN AND C>=OPENAND (收盘价-OPEN)/OPEN>=2/100 AND 收盘价>=1日前的OPEN AND OPEN<=1日前的收盘价AND (MAX收盘价和2日前的C较大值-收盘价和2日前的收盘价的较小值)/收盘价和2日前的收盘价的较小值<=1/100),1,0))
T22{多方炮}赋值:CONST(IF((2日前的收盘价>2日前的OPEN AND 1日前的收盘价<1日前的OPENAND 收盘价>OPEN),1,0))
T23{出水芙蓉}赋值:CONST(IF(((OPENMAX(EMAC的20日指数移动平均,MAX(EMAC的40日指数移动平均,EMAC的60日指数移动平均)))AND (V/MAV的30日简单移动平均>1.2 AND C/1日前的C>1.049)),1,0))
T24{上升三部曲}赋值:CONST(IF((4日前的收盘价/4日前的OPEN>1.03 AND 3日前的收盘价<3日前的OPEN AND 2日前的收盘价<2日前的OPEN AND 1日前的收盘价<1日前的OPENAND 4日前的LOW<3日前的LOW AND 4日前的LOW<2日前的LOW AND 4日前的LOW<1日前的LOW AND 4日前的最高价>3日前的最高价 AND 4日前的最高价>2日前的最高价AND 4日前的最高价>1日前的最高价 AND 收盘价/OPEN>1.03 AND 收盘价>4日前的收盘价),1,0))
T25{下跌三部曲}赋值:CONST(IF(( 4日前的收盘价/4日前的OPEN<0.97 AND 3日前的收盘价>3日前的OPEN AND 2日前的收盘价>2日前的OPEN AND 1日前的收盘价>1日前的OPENAND 4日前的LOW<3日前的LOW AND 4日前的LOW<2日前的LOW AND 4日前的LOW<1日前的LOW AND 4日前的最高价>3日前的最高价 AND 4日前的最高价>2日前的最高价 AND 4日前的最高价>1日前的最高价 AND 收盘价/OPEN<0.97 AND收盘价<4日前的收盘价),1,0))
T26{跳空缺口}赋值:CONST(IF(最高价<1日前的LOW OR LOW>1日前的最高价,1,0))
T27{三只乌鸦}赋值:CONST(IF((2日前的收盘价<2日前的OPEN AND 1日前的收盘价<1日前的OPEN AND 收盘价T28{光脚阴线}赋值:CONST(IF((LOW=收盘价 AND 最高价!=LOW),1,0))
T29{光头阳线}赋值:CONST(IF((最高价=收盘价 AND 最高价!=LOW),1,0))
T30{分离}赋值:CONST(IF((OPEN=1日前的OPEN AND (收盘价-OPEN)*(1日前的收盘价-1日前的OPEN)<0),1,0))
T31{长下影}赋值:CONST(IF(((收盘价和OPEN的较小值-LOW)/(最高价-LOW)>0.667),1,0))
T32{长上影}赋值:CONST(IF(((最高价-MAX收盘价和OPEN较大值)/(最高价-LOW)>0.667),1,0))
T33{十字星}赋值:CONST(IF((收盘价=OPEN AND 最高价!=LOW),1,0))
T34{大阴烛}赋值:CONST(IF((OPEN/收盘价 > 1.05 AND 最高价/LOW < OPEN/收盘价+0.018),1,0))
T35{好友反攻}赋值:CONST(IF(((1日前的收盘价<1日前的OPEN AND 收盘价>OPENAND 收盘价-1日前的收盘价的绝对值/收盘价<0.002) OR (1日前的收盘价>1日前的OPENAND 收盘价T36{倾盆大雨}赋值:CONST(IF((1日前的C/1日前的O>=1.03 AND O<1日前的C AND O>1日前的O AND C<1日前的O),1,0))
T37{M9}赋值:CONST(V*比>1日前的V AND MAV的5日简单移动平均>REF(MAV的5日简单移动平均,1))
T38{M10}赋值:CONST(V*比<1日前的V AND MAV的5日简单移动平均>REF(MAV的5日简单移动平均,1))
T39{M11}赋值:CONST(V*比>1日前的VAND MAV的5日简单移动平均T40{M12}赋值:CONST(V*比<1日前的VAND MAV的5日简单移动平均T41{M13}赋值:CONST((((IF((收盘价 = OPEN),1,0) + IF((收盘价 >= J12),1,0)) + IF((收盘价 <= J23),1,0)) > 1))
T42{M14}赋值:CONST((((AMOUNT / 成交量) / 100) > 1日前的最高价))
T43{M15}赋值:CONST((((AMOUNT / 成交量) / 100) < 1日前的LOW))
如果T1=1返回0+0.03否则返回0
如果T2=1返回TS1+0.03否则返回TS1
如果T3=1返回TS2+0.03否则返回TS2
如果T4=1返回TS3+0.03否则返回TS3
如果T5=1返回TS4+0.03否则返回TS4
如果T6=1返回TS5+0.03否则返回TS5
如果T7=1返回TS6+0.03否则返回TS6
如果T8=1返回TS7+0.03否则返回TS7
如果T9=1返回TS8+0.03否则返回TS8
如果T10=1返回TS9+0.03否则返回TS9
如果T11=1返回TS10+0.03否则返回TS10
如果T12=1返回TS11+0.03否则返回TS11
如果T13=1返回TS12+0.03否则返回TS12
如果T14=1返回TS13+0.03否则返回TS13
如果T15=1返回TS14+0.03否则返回TS14
如果T16=1返回TS15+0.03否则返回TS15
如果T17=1返回TS16+0.03否则返回TS16
如果T18=1返回TS17+0.03否则返回TS17
如果T19=1返回TS18+0.03否则返回TS18
如果T20=1返回TS19+0.03否则返回TS19
如果T21=1返回TS20+0.03否则返回TS20
如果T22=1返回TS21+0.03否则返回TS21
如果T23=1返回TS22+0.03否则返回TS22
如果T24=1返回TS23+0.03否则返回TS23
如果T25=1返回TS24+0.03否则返回TS24
如果T26=1返回TS25+0.03否则返回TS25
如果T27=1返回TS26+0.03否则返回TS26
如果T28=1返回TS27+0.03否则返回TS27
如果T29=1返回TS28+0.03否则返回TS28
如果T30=1返回TS29+0.03否则返回TS29
如果T31=1返回TS30+0.03否则返回TS30
如果T32=1返回TS31+0.03否则返回TS31
如果T33=1返回TS32+0.03否则返回TS32
如果T34=1返回TS33+0.03否则返回TS33
如果T35=1返回TS34+0.03否则返回TS34
如果T36=1返回TS35+0.03否则返回TS35
如果T37=1返回TS36+0.03否则返回TS36
如果T38=1返回TS37+0.03否则返回TS37
如果T39=1返回TS38+0.03否则返回TS38
如果T40=1返回TS39+0.03否则返回TS39
如果T41=1返回TS40+0.03否则返回TS40
如果T42=1返回TS41+0.03否则返回TS41
如果T43=1返回TS42+0.03否则返回TS42
DRAWTEXT(T1=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS1),'早晨之星,见底回升‖'),COLORFF00FF
DRAWTEXT(T2=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS2),'黄昏之星,见顶回落‖'),COLORFFFF00
DRAWTEXT(T3=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS3),'长十字,重要的警告信号,原趋势停顿或反转‖'),COLOR00FFFF
DRAWTEXT(T4=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS4),'垂死十字,下跌信号‖'),COLORFFFF00
DRAWTEXT(T5=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS5),'早晨十字星,上涨信号,见底回升‖'),COLORFF00FF
DRAWTEXT(T6=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS6),'黄昏十字星,趋势停顿或反转,下跌或,见顶回落‖'),COLORFFFF00
DRAWTEXT(T7=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS7),'射击之星,市场顶部就在眼前,可能见顶回落,可靠性低‖'),COLORFFFF00
DRAWTEXT(T8=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS8),'倒转锤头构成一个看涨信号,可能见底回升‖'),COLORFF00FF
DRAWTEXT(T9=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS9),'锤头,可能见底回升,如有量配合,信号强烈‖'),COLOR0000FF
DRAWTEXT(T10=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS10),'吊颈,上升行情中见顶回落,顶部出现,见顶信号‖'),COLORFFFF00
DRAWTEXT(T11=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS11),'穿头破脚,顶部出现,见顶回落信号‖'),COLORFFFF00
DRAWTEXT(T12=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS12),'乌云盖顶,见顶回落信号‖'),COLORFFFF00
DRAWTEXT(T13=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS13),'曙光初现,将演化为V型反转或横盘。后市见底回升‖'),COLORFF00FF
DRAWTEXT(T14=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS14),'身怀六甲,底部,是见底回升,顶部,是见顶回落信号‖'),COLOR00FFFF
DRAWTEXT(T15=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS15),'十字胎‖'),COLOR00FFFF
DRAWTEXT(T16=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS16),'平顶,行情见顶,股价将反转。但下跌力度较小‖'),COLORFFFFFF
DRAWTEXT(T17=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS17),'平底,行情探低见底,股价行将反转上升,但力度较小‖'),COLORFFFFFF
DRAWTEXT(T18=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS18),'大阳烛,上升中,剧烈地向上攀升。下行中,剧烈地向上反弹‖'),COLOR0000FF
DRAWTEXT(T19=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS19),'三个白武士,每日收盘价上移,表示可能见底回升‖'),COLORFFFFFF
DRAWTEXT(T20=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS20),'双飞乌鸦,行情开始疲软将见顶回落‖'),COLORFF0000
DRAWTEXT(T21=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS21),'孕育线,注意股价位置‖'),COLOR00FFFF
DRAWTEXT(T22=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS22),'多方炮,底部可能上涨,中间上涨中继,顶部见顶信号‖'),COLOR00FFFF
DRAWTEXT(T23=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS23),'出水芙蓉,阳线穿过20、40、60日均线,上攻势头初现‖'),COLORFF00FF
DRAWTEXT(T24=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS24),'上升三部曲,上涨信号‖'),COLORFF00FF
DRAWTEXT(T25=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS25),'下跌三部曲,下跌信号‖'),COLORFFFF00
DRAWTEXT(T26=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS26),'跳空缺口,突破盘整,向上涨、向下跌开始‖'),COLOR00FFFF
DRAWTEXT(T27=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS27),'三只乌鸦站枝头,可能见顶回落‖'),COLORFFFF00
DRAWTEXT(T28=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS28),'光脚阴线,下跌信号‖'),COLORFFFF00
DRAWTEXT(T29=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS29),'光头阳线,多方积极上攻态势,后市看涨‖'),COLOR0000FF
DRAWTEXT(T30=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS30),'分离,注意看涨分离和吹掷搿?'),COLOR00FFFF
DRAWTEXT(T31=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS31),'长下影,有可能止跌回升,升势末期,须小心‖'),COLOR00FFFF
DRAWTEXT(T32=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS32),'长上影,表明行情上档压力沉重,升势受阻‖'),COLORFFFF00
DRAWTEXT(T33=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS33),'十字星,重要的警告信号,原趋势停顿或反转‖'),COLOR00FFFF
DRAWTEXT(T34=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS34),'大阴烛,后市向淡,发生逆转‖'),COLORFF0000
DRAWTEXT(T35=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS35),'好友反攻,跌势已尽,要展开一段反弹行情‖'),COLORFF00FF
DRAWTEXT(T36=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS36),'倾盆大雨,见顶信号‖'),COLORFFFF00
DRAWTEXT(T37=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS37),'今日成交量大于昨日,且有继续增大趋势'),COLORYELLOW
DRAWTEXT(T38=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS38),'今日成交量小于昨日,但有放大迹象'),COLORFFFF00
DRAWTEXT(T39=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS39),'今日成交量大于昨日, 但有缩小迹象'),COLORRED
DRAWTEXT(T40=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS40),'今日成交量小于昨日,且有缩小迹象'),COLORRED
DRAWTEXT(T41=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS41),'极端行情,在未来的几日内有85%的机会变更方向'),COLORWHITE
DRAWTEXT(T42=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS42),'上涨趋势'),COLORRED
DRAWTEXT(T43=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS43),'下跌趋势'),COLORGREEN
MA5赋值:MA收盘价的5日简单移动平均
MA10赋值:MA收盘价的10日简单移动平均
MA30:=MA收盘价的30日简单移动平均
MA60赋值:MA收盘价的60日简单移动平均
A赋值:(3*C+L+O+H)/6
X赋值:(20*A+19*1日前的A+18*2日前的A+17*3日前的A+16*4日前的A+15*5日前的A+14*6日前的A+13*7日前的A+12*8日前的A+11*9日前的A+10*10日前的A+9*11日前的A+8*12日前的A+7*13日前的A+6*14日前的A+5*15日前的A+4*16日前的A+3*17日前的A+2*18日前的A+20日前的A)/210
MTM赋值:C-1日前的C
DX赋值:100*EMAEMAMTM的6日指数移动平均,6)/EMA(EMA(MTM的绝对值,6),6)
CB赋值:EMAX的13日指数移动平均
卖赋值:IF(2日内DX最高值=7日内DX最高值 AND 统计2日满足DX>50的天数 AND CROSS(MADX的2日简单移动平均,DX),1,0)
DRAWTEXT(卖=1的1过滤,最高价*1.02,'卖'),COLORWHITE
买1赋值:IF(2日内DX最低值=7日内DX最低值 AND 统计2日满足DX<0的天数 AND CROSS(DX,MADX的2日简单移动平均),1,0)
DRAWTEXT(买1=1的5过滤,LOW-0.03,'买'),COLORRED
RSV赋值:(C-9日内L最低值)/(9日内H最高值-9日内L最低值)*100
SMARSV的3日[1日权重]移动平均
SMAK的3日[1日权重]移动平均
J赋值:3*K-2*D
BDGD赋值:2日内J最高值=8日内J最高值 AND J>80
小心赋值:IF(CROSS(1日前的J-0.01,J) AND 1日前的BDGD,1,0)
当满足条件小心 AND 卖!=1时,在最高价*1.01和'减'位置书写文字
加仓A赋值:SMA(EMA((C-1日前的C)/1日前的C,5)*100,3,1)*10
DRAWTEXT(FILTER((加仓A上穿0 OR 收盘价上穿CB) AND 买1=1,3),LOW-0.03,'加'),COLOR0080FF
MA18:=MAC的18日简单移动平均
跟赋值:IF(MA18>=3日前的MA18 AND 收盘价上穿MA18,1,0)
DRAWTEXT(MA18>=3日前的MA18 AND 收盘价上穿MA18,LOW*0.99,'跟'),COLOR7F52AF
买入价赋值:((C-1日前的MA5)/5+MA5)*1.004
买入条件赋值:C上穿买入价 AND 买入价>1日前的买入价
如果买入条件返回L否则返回H
当满足条件买入条件时,在H和L之间画柱状线
当满足条件买入条件时,在O和C之间画柱状线
增仓价赋值:((C-1日前的MA10)/20+MA10)*1.004
增仓条件赋值:C上穿增仓价 AND增仓价>1日前的增仓价
如果增仓条件返回L否则返回H
当满足条件增仓条件时,在H和L之间画柱状线
当满足条件增仓条件时,在O和C之间画柱状线
P1赋值:5
P2赋值:10
P3赋值:20
P4赋值:30
P5赋值:60
P6赋值:120
P7赋值:240
P8赋值:340
N赋值:4
WX赋值:MA收盘价的0日简单移动平均
M1赋值:MA收盘价的P1日简单移动平均
M2赋值:(MA收盘价的P2日简单移动平均 * IF((N < 2),WX,1))
M3赋值:(MA收盘价的P3日简单移动平均 * IF((N < 3),WX,1))
M4赋值:(MA收盘价的P4日简单移动平均 * IF((N < 4),WX,1))
M5赋值:(MA收盘价的P5日简单移动平均 * IF((N < 5),WX,1))
M6赋值:(MA收盘价的P6日简单移动平均 * IF((N < 6),WX,1))
M7赋值:(MA收盘价的P7日简单移动平均 * IF((N < 7),WX,1))
M8赋值:(MA收盘价的P8日简单移动平均 * IF((N < 8),WX,1))
C1赋值:1日前的收盘价
C2赋值:2日内C1最高值
C3赋值:1日内C1最低值
ET赋值:2日内C1最高值
ET1:=1日前的ET
XB:=1日内C1最低值
XB1:=1日前的XB
M赋值:上次((收盘价 < XB距今天数 AND (C1 >= XB1)))
M11:=1日前的M
N9:=上次((收盘价 > ET距今天数 AND (C1 <= ET1)))
N1:=1日前的N9
M21:=(上次(((M - N9距今天数 > 0) AND (M11 <= N1))) + 1)
N2:=(上次(((N9 - M距今天数 > 0) AND (N1 <= M11))) + 1)
ET2:=M21日内ET最高值
XB2:=N2日内XB最低值
H1赋值:IF(((M - N9) > 0),收盘价,ET2)
H2赋值:IF((A = 1),收盘价,C2)
H3赋值:IF(((M - N9) < 0),收盘价,XB2)
H4赋值:IF((A = 1),收盘价,XB2)
H5赋值:IF((((M - N9) > 0) OR (A = 1)),收盘价,H3)
H6赋值:1日前的H5
H7赋值:2日前的H5
H8赋值:(H5 > H6)
H9赋值:(((H4 = 1日前的H4) AND (1日前的H4 < 2日前的H4)) AND (H5 > 2日前的H5))
H10:=(((H2 = 1日前的H2) AND (H4 = 1日前的H4)) AND (H5 = 2日前的H5))
W赋值:((H8 OR H9) OR H10)
T09赋值:((H5 < H6) AND (H5 < 2日前的H5))
T010赋值:((H4 = 1日前的H4) AND (H5 < 2日前的H5))
T011赋值:((H3 > 1日前的H3) AND (H5 < 1日前的H5))
T012赋值:((H5 = 1日前的H5) AND (H3 = H4))
T013赋值:((H2 = 1日前的H2) AND (H2 = H5))
TW赋值:((((T9 OR T10) OR T11) OR T12) OR T13)
522421823101618865K赋值:((AMOUNT * (((OPEN + 收盘价) + 最高价) + LOW)) / 4)
522421823101618865K1:=IF((成交量 > 0),(522421823101618865K / AMOUNT),((((OPEN + 收盘价) + 最高价) + LOW) / 4))
BBP赋值:(((收盘价 - 9日内LOW最低值) / (9日内最高价最高值 - 9日内LOW最低值)) * 100)
DRAWTEXT((ISLASTBAR AND (BBP >= 96.5)),(H5 * 1.022),'明见-短高-龙头-除外'),COLORRED
DRAWTEXT((ISLASTBAR AND (BBP < 1)),((H5 + H4) / 1.96),'明见-短低-跌停-除外'),COLORGREEN
DRAWTEXT(((ISLASTBAR AND W) AND (BBP < 96.5)),(H5 * 1.022),'明日看涨'),COLORYELLOW
DRAWTEXT(((ISLASTBAR AND TW) AND (BBP > 1)),((H5 + H4) / 2),'明日看跌'),COLORGREEN
{顶底}DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.978,'底'),LINETHICK2,COLORYELLOW
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),最高价*1.02,'顶'),LINETHICK2,COLORYELLOW
{趋势评分}X01:=IF(MAC的5日简单移动平均>MAC的10日简单移动平均,20,0)
X02:=IF(MAC的20日简单移动平均>MAC的60日简单移动平均,10,0)
如果KDJ.J>KDJ.K返回10否则返回0
如果MACD.D>MACD.DEA返回10否则返回0
如果MACD.MACD>0返回10否则返回0
X6:=IF(V>MAV的60日简单移动平均,10,0)
X7:=IF(C计算的获利盘比例>0.5,10,0)
X8:=IF(C/1日前的C>1.03,10,0)
XX赋值:X01+X02+X3+X4+X5+X6+X7+X8
DRAWTEXT_FIX(V>O,0.41,0,0,STRCAT('趋势评分: ',STRCAT(CON2STR(XX,0),' '))),COLORLIMAGENTA
总额赋值:AMOUNT
买0赋值:IF(O=C AND (C-1日前的C)/1日前的C*100>9.8,AMOUNT,AMOUNT/((H-L)*2-O-C的绝对值)*(C-L))
买%赋值:买0/AMOUNT*100
流入赋值:AMOUNT*买%/10000000000
流出赋值:AMOUNT/100000000-流入
净流赋值:(流入-流出)
总额3:=3的AMOUNT日累和
流入3:=3的流入日累和
流出3:=3的流出日累和
净流3:=3的流入-流出日累和
总额5:=5的AMOUNT日累和
流入5:=5的流入日累和
流出5:=5的流出日累和
净流5:=5的流入-流出日累和
DRAWTEXT_FIX(1,0.58,0,0,'净流(亿):'),COLOR8080FF,COLORWHITE
DRAWNUMBER_FIX(1,0.7,0,0,CONST((净流))),COLORWHITE
DRAWNUMBER_FIX(1,0.83,0,0,CONST((净流3))),COLORWHITE
DRAWNUMBER_FIX(1,1,0,0,CONST((净流5))),COLORWHITE
竞价额赋值:DYNAINFO(15)/10000
{万元}DRAWTEXT_FIX(C>0,0,0.15,0,VARCAT(VARCAT('竞价: ',VAR2STR(竞价额,0)),' 万')),COLORMAGENTA
{庄家成本}AL0:=V累加至CAPITAL*1的天数
AL1:=SUM(获利盘为10%的成本分布,AL0)/AL0
AL2:=SUM(获利盘为20%的成本分布,AL0)/AL0
AL3:=SUM(获利盘为30%的成本分布,AL0)/AL0
AL4:=SUM(获利盘为40%的成本分布,AL0)/AL0
AL5:=SUM(获利盘为50%的成本分布,AL0)/AL0
庄家成本2赋值:(5*AL1+4*AL2+3*AL3+2*AL4+AL5)/15,COLOR0080FF,DOTLINE
输出庄家成本1:DATE庄家成本2日,COLORLIGRAY,DOTLINE
DRAWTEXT(CURRBARSCOUNT=50,庄家成本1,STRCAT('庄本:',CON2STR(庄家成本1,2))),COLORLIGRAY
{顾比}P:=21
擒股指标1赋值:IF(L=P日内L最低值,L,DRAWNULL)
擒股指标2赋值:CONST(上次擒股指标1!=DRAWNULL距今天数)
擒股指标3赋值:CONST(IF(擒股指标2=0,H,擒股指标2日前的H))
擒股指标4赋值:CONST(REF(上次H>擒股指标3距今天数,擒股指标2+1)+擒股指标2+1)
擒股指标5赋值:CONST(IF(擒股指标4=0,H,擒股指标4日前的H))
擒股指标6赋值:CONST(REF(上次H>擒股指标5距今天数,擒股指标4+1)+擒股指标4+1)
顾输出比:IF(CURRBARSCOUNT<=擒股指标2+21,CONST(IF(擒股指标6=0,H,擒股指标6日前的H)),DRAWNULL),DOTLINE,COLORYELLOW
DRAWTEXT(CURRBARSCOUNT=20,顾比,STRCAT(('顾输出比:'),CON2STR(顾比,1))),COLORYELLOW
{洗盘}XP1赋值:V=60日内V最高值 AND CXP2赋值:V<1日前的V AND H/C>1.04 AND C60日内L最高值,5)
当满足条件XP2时,在O和C之间画柱状线
{断量}MV5赋值:MAV的5日简单移动平均
破5赋值:MV5上穿V
输出断量:DRAWLINE(破5 AND CURRBARSCOUNT<9,C,1日前的破5,1日前的C,1),COLORWHITE
DRAWTEXT(CURRBARSCOUNT=1,断量,STRCAT((''),CON2STR(断量,2))),COLORWHITE
输出下降压力线:DRAWLINE(CURRBARSCOUNT<20 AND 最高价>=10日内最高价最高值,最高价,LOW<=3日内LOW最低值,3日内最高价最高值,1),COLORGRAY ,LINETHICK1,DOTLINE
{快逃绿箭头}VAR30:=PEAKBARS(3,15,1)<10
如果VAR30=1返回2否则返回0
如果VAR50=2返回2否则返回0
顶A赋值:IF(顶1>1日前的顶1,2,0),COLORGREEN
当满足条件顶A=2时,在H*1.02和2之间画图标
{买点红箭头}AR1:=EMAOPEN的7日指数移动平均
AR2:=EMAAR1的21日指数移动平均
AR3:=AR1上穿AR2
AR5:=EMA(SMA((收盘价-20日内LOW最低值)/(16日内最高价最高值-20日内LOW最低值)*100,8,1),3)
短买赋值:IF(TROUGHBARS(1,6,1)=0 AND 最高价>LOW+0,2,0),COLORRED
当满足条件短买=2时,在L*0.98和1之间画图标
{小压}H01赋值:9日前的C=2*9+1日内C最高值
H02赋值:H01的9过滤
H03赋值:BACKSET(H02,9+1)
H04赋值:H03的9过滤
小压赋值:REF(C*0.999,上次H04距今天数),COLORWHITE,NODRAW
H05赋值:1日前的小压-小压的绝对值>小压*0.075 AND H4
小压2:REF(C*0.999,上次H05距今天数),COLORLIGREEN,DOTLINE
当满足条件C*0.999时,在小压2和小压2之间画柱状线
}
{七彩量能副图副图源码如下}DRAWGBK(C>0,RGB(0,0,110),RGB(0,25,0),0,' ',0)
PJ赋值:(H+L+C)/3
V1赋值:IF(H=L,1,H-MAXO和C较大值)
V2赋值:IF(H=L,1,MAXC和O较大值-PJ)
V3赋值:IF(H=L,1,O和C的较小值-L)
V4赋值:IF(H=L,1,PJ-C和O的较小值)
如果H=L返回4否则返回H-L
V6赋值:(V1*V5)+(V2*V5)
V7赋值:(V3*V5)+(V4*V5)
WP1赋值:DYNAINFO(23)
NP1赋值:DYNAINFO(22)
如果ISLASTBAR返回V7*240/FROMOPEN否则返回V7
如果ISLASTBAR返回V6*240/FROMOPEN否则返回V6
如果ISLASTBAR AND PERIOD=5返回WP1否则返回WP2
如果ISLASTBAR AND PERIOD=5返回NP1否则返回NP2
净量赋值:主买-主卖的绝对值
DRAWRECTREL(50,0,CONST(主买*500/(主买+主卖)+50),80,RGB(230,65,0))
DRAWRECTREL(50,110,CONST(主卖*500/(主买+主卖)+50),190,RGB(0,104,0))
主买1赋值:BUY成交量,COLORLIRED,NODRAW
主卖1:=-SELL成交量, 画淡蓝色,NODRAW
总量赋值:成交量,成交量STICK
ZZ赋值:IF(1日前的C>1日前的O AND O>1日前的C*1.014 AND C< O*1.02,1,3)
SAT:=(AMOUNT/C)/(20日内AMOUNT最高值/20日内C最高值)
如果SAT>1返回1否则返回SAT
AA赋值:成交量/((最高价-LOW)*2-收盘价-OPEN的绝对值)
V05赋值:MAV的5日简单移动平均
V12:=MAV的12日简单移动平均
V34:=MAV的34日简单移动平均
C6赋值:MAC的6日简单移动平均
当满足条件C时,在0和成交量之间画柱状线
STICKLINE(C上穿C6 AND V>V05*1.2 AND V>V12*1.2 AND ZZ>2 AND C>H*0.975,0,成交量,2,0),COLORRED
STICKLINE(C6上穿C AND V>V05*1.2 AND V>V12*1.2,0,成交量,2,0),COLORGREEN
STICKLINE(成交量>MA成交量的5日简单移动平均*2 AND V>V34*3 AND C< 1日前的C*1.05,0,成交量,2,0),COLORYELLOW
STICKLINE(成交量< MA成交量的5日简单移动平均/2 AND V< V12/2,0,成交量,2,0), 画蓝色
STICKLINE(成交量>MA成交量的5日简单移动平均*2 AND V>V34*3 AND C< 1日前的C*1.05 AND C上穿C6 AND V>V5*1.2 AND V>V12*1.2 AND ZZ>2 AND C>H*0.975,成交量*0.5,0,2,0),COLORRED
STICKLINE(成交量>MA成交量的5日简单移动平均*2 AND V>V34*3 AND C< 1日前的C*1.05 AND C6上穿C AND V>V5*1.2 AND V>V12*1.2,成交量*0.5,0,2,0),COLORWHITE
N赋值:27
N2:=9
N4:=16
如果DATE>=1030131返回1否则返回1
VAR2:=(收盘价-N日内LOW最低值)/(N日内最高价最高值-N日内LOW最低值)*100
SMAVAR2的3日[1日权重]移动平均
SMAVAR3的N2日[1日权重]移动平均
VAR5:=3*VAR3-2*VAR4*VAR1
当满足条件成交量 AND VAR5>VAR4时,在0和成交量之间画柱状线
当满足条件成交量 AND VAR5< VAR4时,在0和成交量之间画柱状线
当满足条件成交量 AND VAR4< N4时,在-10和成交量*0.5之间画柱状线
VARN2:=收盘价-1日前的收盘价
VARN3:=IF(收盘价-1日前的收盘价>=0,VARN2,0)
VARN4:=1日前的收盘价-收盘价
VARN5:=IF(收盘价-1日前的收盘价<=0,VARN4,0)
VARN6:=16的VARN3日累和/16的VARN5日累和
VARN7:=100-100/(1+VARN6)
VARN8:=EMAVARN7的16日指数移动平均
VARN9:=EMAVARN8的8日指数移动平均
VARNA赋值:EMAVARN8的45日指数移动平均
MO:=(VARN8-VARNA)
ML:=(VARN9-VARNA)
VARN1A赋值:EMA收盘价的32日指数移动平均
VARN2A赋值:MAOPEN的32日简单移动平均
趋势赋值:(VARN1A-VARN2A)
STICKLINE(MO>ML AND 趋势< 0 AND MO>3日前的MO AND 趋势>3日前的趋势,成交量,0,1,0) COLORYELLOW
输出AAA:DRAWLINE(成交量>=35日内成交量最高值,成交量,成交量<=8日内成交量最低值,3日内成交量最高值,1),COLORWHITE
输出BBB:DRAWLINE(成交量<=8日内成交量最低值,成交量,成交量>=35日内成交量最高值,3日内成交量最高值,0),COLORYELLOW
量输出比:成交量/REF(MA成交量的5日简单移动平均,1),NODRAW,COLORAAAAAA
X_10:=成交量=30日内成交量最高值
X_11:=上次FILTER(0.9上穿X_10,2距今天数)+1
X_12:=X_11日前的成交量
当满足条件X_11<=30时,在X_12和X_12之间画柱状线
如果CURRBARSCOUNT=1 AND PERIOD=5返回成交量*240/FROMOPEN否则返回DRAWNULL
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,(-1),(-1)),COLOR00C0C0
XA_1:=AMOUNT
XA_2:=MAAMOUNT的5日简单移动平均
XA_3:=MAAMOUNT的10日简单移动平均
XA_4:=30日内XA_1最高值=XA_1
XA_5:=60日内XA_1最高值=XA_1
XA_6:=100日内XA_1最高值=XA_1
XA_7:=250日内XA_1最高值=XA_1
STICKLINE(XA_4 AND C>1日前的C,成交量,成交量*0.2,3,0),COLORMAGENTA
STICKLINE(XA_5 AND C< 1日前的C,成交量,成交量*0.2,3,0), 画蓝色
当满足条件XA_6时,在成交量和成交量*0.2之间画柱状线
STICKLINE(XA_7 AND C>1日前的C,成交量,成交量*0.2,3,0),COLOR0033FF
STICKLINE(XA_6 AND C< 1日前的C,成交量,成交量*0.2,3,0),COLORFF3399
VARB1:=ZIG(3,96/12)
DRAWICON(2日前的VARB1< 1日前的VARB1 AND VARB1< 1日前的VARB1,成交量*1.2,15)
DRAWICON(2日前的VARB1>1日前的VARB1 AND VARB1>1日前的VARB1,成交量*1.3,9)
总额赋值:AMOUNT
买0赋值:IF(O=C AND (C-1日前的C)/1日前的C*100>9.8,AMOUNT,AMOUNT/((H-L)*2-O-C的绝对值)*(C-L))
买%赋值:买0/AMOUNT*100
流入赋值:AMOUNT*买%/10000000000
流出赋值:AMOUNT/100000000-流入
净流赋值:(流入-流出)
总额3:=3的AMOUNT日累和
流入3:=3的流入日累和
流出3:=3的流出日累和
净流3:=3的流入-流出日累和
总额5:=5的AMOUNT日累和
流入5:=5的流入日累和
流出5:=5的流出日累和
净流5:=5的流入-流出日累和
DRAWTEXT_FIX(1,0.4,0,0,'净流入(亿):'),COLOR8080FF,COLORYELLOW
当满足条件1时,在横轴0.5纵轴0位置书写文字
DRAWNUMBER_FIX(1,0.6,0,0,CONST((净流))),COLORYELLOW
当满足条件1时,在横轴0.7纵轴0位置书写文字
DRAWNUMBER_FIX(1,0.78,0,0,CONST((净流3))),COLORYELLOW
当满足条件1时,在横轴0.87纵轴0位置书写文字
DRAWNUMBER_FIX(1,1,0,0,CONST((净流5))),COLORYELLOW
X01:=IF(MAC的5日简单移动平均>MAC的10日简单移动平均,20,0)
X02:=IF(MAC的20日简单移动平均>MAC的60日简单移动平均,10,0)
如果KDJ.J>KDJ.K返回10否则返回0
如果MACD.D>MACD.DEA返回10否则返回0
如果MACD.MACD>0返回10否则返回0
X6:=IF(V>MAV的60日简单移动平均,10,0)
X7:=IF(C计算的获利盘比例>0.5,10,0)
X8:=IF(C/1日前的C>1.03,10,0)
XG:=X01+X02+X3+X4+X5+X6+X7+X8
DRAWTEXT_FIX(V>O,0.15,0,0,STRCAT('趋势评分:',STRCAT(CON2STR(XG,0),' '))), 画淡蓝色

指标安装下载帮助  |   联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:指标公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图