真正的九转概念,采用趋势线穿越底部后 ,第一个股价最低点为基准,下跌某个百分比(百分比参数可设置)为第一转,指标给出标记,然后再以第一转的最低价为基准下跌某个百分比(百分比参数可设置)为第二转,指标给出标记,以此类推,下跌八次,指标标记八次,再次下跌即为第九转。此九转指标中的每一转,都可能意味着股价的转折。
相关简介: 九转数字主图指标公式
源码概况:九转数字主图指标公式
指标类别:九转数字主图指标公式
授权方式:免费版
指标评级:★★★★★
指标分类:策略
画线方法:副图/主图
九转数字主图指标公式未来函数检测结果:
暂未发现存在未来函数
九转数字主图指标公式源码:
c1:=C;
N:=10;
LB:=COst(1);
HB:=COST(99);
W:=(HB-LB)/10;
N0:=LB;
N1:=LB+W;
N2:=LB+2*W;
N3:=LB+3*W;
N4:=LB+4*W;
N5:=LB+5*W;
N6:=LB+6*W;
N7:=LB+7*W;
N8:=LB+8*W;
N9:=LB+9*W;
N10:=HB;
A0:=WINNER(N1)*100-WINNER(N0)*100;
A1:=WINNER(N2)*100-WINNER(N1)*100;
A2:=WINNER(N3)*100-WINNER(N2)*100;
A3:=WINNER(N4)*100-WINNER(N3)*100;
A4:=WINNER(N5)*100-WINNER(N4)*100;
A5:=WINNER(N6)*100-WINNER(N5)*100;
A6:=WINNER(N7)*100-WINNER(N6)*100;
A7:=WINNER(N8)*100-WINNER(N7)*100;
A8:=WINNER(N9)*100-WINNER(N8)*100;
A9:=WINNER(N10)*100-WINNER(N9)*100;
xa0:DRAWSL(BARSTATUS=2andA0>0,(N1+N0)/2,0,N*A0,1),Color262626,LINETHICK4;
xa1:DRAWSL(BARSTATUS=2andA1>0,(N2+N1)/2,0,N*A1,1),Color262626,LINETHICK4;
xa2:DRAWSL(BARSTATUS=2andA2>0,(N3+N2)/2,0,N*A2,1),Color262626,LINETHICK4;
xa3:DRAWSL(BARSTATUS=2andA3>0,(N4+N3)/2,0,N*A3,1),Color262626,LINETHICK4;
xa4:DRawsl(BARSTATUS=2andA4>0,(N5+N4)/2,0,N*A4,1),Color262626,LINETHICK4;
xa5:DRAWSL(BARSTATUS=2andA5>0,(N6+N5)/2,0,N*A5,1),Color262626,LINETHICK4;
xa6:DRAWSL(BARSTATUS=2andA6>0,(N7+N6)/2,0,N*A6,1),Color262626,LINETHICK4;
xa7:DRAWSL(BARSTATUS=2andA7>0,(N8+N7)/2,0,N*A7,1),Color262626,LINETHICK4;
xa8:DRAWSL(BARSTATUS=2andA8>0,(N9+N8)/2,0,N*A8,1),Color262626,LINETHICK4;
xa9:DRAWSL(BARSTATUS=2andA9>0,(N10+N9)/2,0,N*A9,1),Color262626,LINETHICK4;
{k线颜色}
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0),Color0088FF;
STICKLINE(CLOSE<OPEN,OPEN,CLOSE,8,0),COLOR666600;
{融胜轨道}
AA:=ma((2*CLOSE+HIGH+LOW)/4,5);
通1:=AA*102/100;
通2:=AA*(200-102)/100;
ZZ:=Abs((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,ZZ);
上:=(1+7/100)*DD;
下:=(1-7/100)*DD;
中:=(上+下)/2;
顶:=(1+14/100)*DD;
底:=(1-14/100)*DD;
轨道角度1:=(ATAN((MA(底,5)/REF(MA(底,5),1)-1)*100)*180/3.14115926),LINETHICK0;
五日角度1:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926),LINETHICK0;
DRAWTEXT(SYSPARAM(1)=BARPOSandC>顶,L,'顶'+NUMTOSTR(顶[SYSPARAM(1)],2)),pxdn27,Color0088FF;
DRAWTEXT(SYSPARAM(1)=BARPOSandC<顶,L,'顶'+NUMTOSTR(顶[SYSPARAM(1)],2)),pxdn27,COLOR666600;
DRAWTEXT(SYSPARAM(1)=BARPOSandC>上,L,'上'+NUMTOSTR(上[SYSPARAM(1)],2)),pxdn52,Color0088FF;
DRAWTEXT(SYSPARAM(1)=BARPOSandC<上,L,'上'+NUMTOSTR(上[SYSPARAM(1)],2)),pxdn52,COLOR666600;
DRAWTEXT(SYSPARAM(1)=BARPOSandC>中,L,'中'+NUMTOSTR(中[SYSPARAM(1)],2)),pxdn77,Color0088FF;
DRAWTEXT(SYSPARAM(1)=BARPOSandC<中,L,'中'+NUMTOSTR(中[SYSPARAM(1)],2)),pxdn77,COLOR666600;
DRAWTEXT(SYSPARAM(1)=BARPOSandC>下,L,'下'+NUMTOSTR(下[SYSPARAM(1)],2)),pxdn102,Color0088FF;
DRAWTEXT(SYSPARAM(1)=BARPOSandC<下,L,'下'+NUMTOSTR(下[SYSPARAM(1)],2)),pxdn102,COLOR666600;
DRAWTEXT(SYSPARAM(1)=BARPOSandC>底,L,'底'+NUMTOSTR(底[SYSPARAM(1)],2)),pxdn127,Color0088FF;
DRAWTEXT(SYSPARAM(1)=BARPOSandC<底,L,'底'+NUMTOSTR(底[SYSPARAM(1)],2)),pxdn127,COLOR666600;
{DRAWTEXT(SYSPARAM(1)=BARPOSand上,上,'上'+NUMTOSTR(上[SYSPARAM(1)],2)),pxup8,colorwhite;
DRAWTEXT(SYSPARAM(1)=BARPOSand中,中,'中'+NUMTOSTR(中[SYSPARAM(1)],2)),pxup8,colorYellow;
DRAWTEXT(SYSPARAM(1)=BARPOSand下,下,'下'+NUMTOSTR(下[SYSPARAM(1)],2)),pxup8,colorwhite;
DRAWTEXT(SYSPARAM(1)=BARPOSand底,底,'底'+NUMTOSTR(底[SYSPARAM(1)],2)),pxup8,colorgreen;}
ZH:=HHV(H,22);ZHH:=H;
ZGF1:=ZHH/1.0809;ZGF2:=ZHH/1.1618;
ZGF3:=ZHH/1.0809/1.1618;ZGF4:=ZHH/1.1618/1.1618;
DRAWTEXTEX(c,1,10,650,'第一回调区:'+NUMTOSTR(ZGF1[SYSPARAM(1)],2)+'--'+NUMTOSTR(ZGF2[SYSPARAM(1)],2)+''),Color00FF00;
DRAWTEXTEX(c,1,10,700,'第二回调区:'+NUMTOSTR(ZGF3[SYSPARAM(1)],2)+'--'+NUMTOSTR(ZGF4[SYSPARAM(1)],2)+''),Color00FF00;
ZL:=LLV(L,22);ZLL:=L;
ZGFB1:=ZLL*1.0809;ZGFB2:=ZLL*1.1618;ZGFB3:=ZLL*1.0809*1.1618;ZGFB4:=ZLL*1.1618*1.1618;
DRAWTEXTEX(c,1,10,450,'第一压力区:'+NUMTOSTR(ZGFB1[SYSPARAM(1)],2)+''+'--'+NUMTOSTR(ZGFB2[SYSPARAM(1)],2)+''),Color00EEFF;
DRAWTEXTEX(c,1,10,500,'第二压力区:'+NUMTOSTR(ZGFB3[SYSPARAM(1)],2)+''+'--'+NUMTOSTR(ZGFB4[SYSPARAM(1)],2)+''),Color00EEFF;
DRAWTEXTEX(c,1,10,400,'本次起动价:'+NUMTOSTR(ZL[SYSPARAM(1)],2)+''),Color00EEFF;
DRAWTEXTEX(c,1,10,600,'预计回调价:'+NUMTOSTR(ZH[SYSPARAM(1)],2)+''),color00DD00;
DRAWTEXTEX(c,1,10,50,'收益:'+NUMTOSTR(FINANCE(33),2)+'元'),ColorFFB060;
DRAWTEXTEX(c,1,120,50,'净资产:'+NUMTOSTR(FINANCE(34),2)+'元'),ColorFFB060;
DRAWTEXTEX(c,1,10,100,'流通股:'+NUMTOSTR(FINANCE(7)/10000,2)+'亿'),ColorFFB060;
DRAWTEXTEX(c,1,120,100,'占总股本:'+NUMTOSTR(FINANCE(7)/FINANCE(1)*100,2)+'%'),ColorFFB060;
DRAWTEXTEX(c,1,10,150,'负债率:'+NUMTOSTR(FINANCE(11)/FINANCE(15),2)),ColorFFB060;
DRAWTEXTEX(c,1,120,150,'主营收入:'+NUMTOSTR(FINANCE(20)/10000,1)+''),ColorFFB060;
{DRAWTEXTEX(c,1,10,250,STRLEFT(BLKNAME,90)),Color00FFFF;}
DRAWTEXTEX(c,1,10,200,'主题投资:'+SELFSTRING('主题投资')),ColorFFB060;
DRAWTEXTEX(c,1,10,0,'善谋者,谋势;不善者,谋子'),Color0088FF;
{波段主图}
input:KG1(20,1,50);
input:F1(10,1,20);
input:P(10,1,20);
D3X3:ma(c,3),SHIFT3,COLORMAGENTA;
KG:=IF(DATATYPE<=1,1,IF(DATATYPE<=3,5,IF(DATATYPE<=5,10,KG1)));
F:=IF(DATATYPE<=3,1,IF(DATATYPE=4,3,IF(DATATYPE=5,5,F1)));
ZX:=zig(4,KG);
CCH:=PEAK(4,KG,1);
CCY:=TROUGH(4,KG,1);
CC:IF(ZX<REF(ZX,1),CCH,CCY),LINETHICK0;
W1:=crOSS(CCH-0.02,ZX);
W2:=CROSS(ZX,CCY+0.02);
FD:=F/100;
YS:=IF(ZX<REF(ZX,1),FD,-FD);
W:=IF(ZX<REF(ZX,1),W1,W2);
H1:REF(CC*(1-YS*1),BArslAST(W)),LINETHICK0;
H2:REF(CC*(1-YS*2),BARSLAST(W)),LINETHICK0;
H3:REF(CC*(1-YS*3),BARSLAST(W)),LINETHICK0;
H4:REF(CC*(1-YS*4),BARSLAST(W)),LINETHICK0;
H5:REF(CC*(1-YS*5),BARSLAST(W)),LINETHICK0;
H6:REF(CC*(1-YS*6),BARSLAST(W)),LINETHICK0;
H7:REF(CC*(1-YS*7),BARSLAST(W)),LINETHICK0;
H8:REF(CC*(1-YS*8),BARSLAST(W)),LINETHICK0;
H9:REF(CC*(1-YS*9),BARSLAST(W)),LINETHICK0;
H10:REF(CC*(1-YS*10),BARSLAST(W)),LINETHICK0;
H11:REF(CC*(1-YS*11),BARSLAST(W)),LINETHICK0;
H12:REF(CC*(1-YS*12),BARSLAST(W)),LINETHICK0;
H13:REF(CC*(1-YS*13),BARSLAST(W)),LINETHICK0;
H14:REF(CC*(1-YS*14),BARSLAST(W)),LINETHICK0;
H15:REF(CC*(1-YS*15),BARSLAST(W)),LINETHICK0;
HHD:=SYSPARAM(4);
LLD:=SYSPARAM(5);
系数:=IF(DATATYPE=2,1.00005,IF(DATATYPE<6,1.0005,1.002));
STICKLINE(CC>=LLDANDCC<=HHD,CC,CC*系数,20,0),colorFF;
STICKLINE(CC>=LLDANDCC<=HHD,H1,H1,5,0),colorA0A0A0;
STICKLINE(H1>LLDANDH1<HHD,H2,H2,5,0),colorA0A0A0;
STICKLINE(H2>LLDANDH2<HHD,H3,H3,5,0),colorA0A0A0;
STICKLINE(H3>LLDANDH3<HHD,H4,H4,5,0),colorA0A0A0;
STICKLINE(H4>LLDANDH4<HHD,H5,H5,5,0),colorA0A0A0;
STICKLINE(H5>LLDANDH5<HHD,H6,H6,5,0),colorA0A0A0;
STICKLINE(H6>LLDANDH6<HHD,H7,H7,5,0),colorA0A0A0;
STICKLINE(H7>LLDANDH7<HHD,H8,H8,5,0),colorA0A0A0;
STICKLINE(H8>LLDANDH8<HHD,H9,H9,5,0),colorA0A0A0;
STICKLINE(H9>LLDANDH9<HHD,H10,H10,5,0),colorA0A0A0;
STICKLINE(H10>LLDANDH10<HHD,H11,H11,5,0),colorA0A0A0;
STICKLINE(H11>LLDANDH11<HHD,H12,H12,5,0),colorA0A0A0;
STICKLINE(H12>LLDANDH12<HHD,H13,H13,5,0),colorA0A0A0;
STICKLINE(H13>LLDANDH13<HHD,H14,H14,5,0),colorA0A0A0;
STICKLINE(H14>LLDANDH14<HHD,H15,H15,5,0),colorA0A0A0;
DRAWTEXT(WANDCC>=LLDANDCC<=HHD,H1,''+NUMTOSTR(F*1,0)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(WANDH1>LLDANDH1<HHD,H2,''+NUMTOSTR(F*2,0)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(WANDH2>LLDANDH2<HHD,H3,''+NUMTOSTR(F*3,0)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(WANDH3>LLDANDH3<HHD,H4,''+NUMTOSTR(F*4,0)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(WANDH4>LLDANDH4<HHD,H5,''+NUMTOSTR(F*5,0)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(WANDH5>LLDANDH5<HHD,H6,''+NUMTOSTR(F*6,0)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(WANDH6>LLDANDH6<HHD,H7,''+NUMTOSTR(F*7,0)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(WANDH7>LLDANDH7<HHD,H8,''+NUMTOSTR(F*8,0)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(WANDH8>LLDANDH8<HHD,H9,''+NUMTOSTR(F*9,0)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(WANDH9>LLDANDH9<HHD,H10,''+NUMTOSTR(F*10,0)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(WANDH10>LLDANDH10<HHD,H11,''+NUMTOSTR(F*11,0)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(WANDH11>LLDANDH11<HHD,H12,''+NUMTOSTR(F*12,0)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(WANDH12>LLDANDH12<HHD,H13,''+NUMTOSTR(F*13,0)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(WANDH13>LLDANDH13<HHD,H14,''+NUMTOSTR(F*14,0)+'%'),PXDN5,colorA0A0A0;
DRAWTEXT(WANDH14>LLDANDH14<HHD,H15,''+NUMTOSTR(F*15,0)+'%'),PXDN5,colorA0A0A0;
AK1:=BARSLAST(W1)+1;
BK1:=BARSLAST(W2)+1;
目前:=IF(BK1>AK1,AK1,BK1);
DRAWNUMBER(W1,CC,REF(目前,1),0),ALIGN2,PXUP30,colorFF00FF;
DRAWNUMBER(W2,CC,REF(目前,1),0),ALIGN2,PXDN10,colorFF00;
方向:=IF(CC=CCH,'下行','上升');
周期:=IF(DATATYPE=6,'天',IF(DATATYPE=7,'周',IF(DATATYPE=8,'月','单位')));
DRAWTEXTEX(CC=CCH,1,320,0,'目前波段'+方向+NUMTOSTR(目前,0)+周期),COLOR666600;
DRAWTEXTEX(CC<>CCH,1,320,0,'目前波段'+方向+NUMTOSTR(目前,0)+周期),Color0088FF;
DRAWTEXT(W1,CC,''+周期),PXUP30,colorFF00FF;
DRAWTEXT(W2,CC,''+周期),PXDN10,colorFF00;
{p:10,1,30}
X1:=TROUGH(4,P,1);
X8:=TROUGHBARS(4,P,1)=0;
X11:=TROUGHBARS(4,P,2);
X18:=TROUGHBARS(4,P,1);
X13:=TROUGHBARS(4,P,1);
X3:=PEAK(4,P,1);
X31:=PEAKBARS(4,P,2);
X38:=PEAKBARS(4,P,1);
X33:=PEAKBARS(4,P,1);
X5:=PEAKBARS(4,P,1)=0;
光标位置:=SYSPARAM(1);
CLDIS:=X13[SYSPARAM(1)];
CHDIS:=X33[SYSPARAM(1)];
TCL:=光标位置-CLDIS;
TCH:=光标位置-CHDIS;
BLDIS:=X18[SYSPARAM(1)];
BHDIS:=X38[SYSPARAM(1)];
TBL:=光标位置-BLDIS;
TBH:=光标位置-BHDIS;
ALDIS:=X11[SYSPARAM(1)];
AHDIS:=X31[SYSPARAM(1)];
TAL:=光标位置-ALDIS;
TAH:=光标位置-AHDIS;
K一浪A:=IF(TCL>TCH,TAL,TAH);
K二浪B:=IF(TCL>TCH,TBH,TBL);
K三浪C:=IF(TCL>TCH,TCL,TCH);
PH:=HIGH;
PL:=LOW;
P一浪A:IF(TCL>TCH,PL[TAL+0],PH[TAH+0]),LINETHICK0;
P二浪B:IF(TCL>TCH,PH[TBH+0],PL[TBL+0]),LINETHICK0;
P三浪C:IF(TCL>TCH,PL[TCL+0],PH[TCH+0]),LINETHICK0;
DRAWLINE(BARPOS=K一浪A,P一浪A,BARPOS=K二浪B,P二浪B,0),LINEDOT,color77FFFF;
DRAWLINE(BARPOS=K二浪B,P二浪B,BARPOS=K三浪C,P三浪C,0),LINEDOT,color77FFFF;
一浪长:=P二浪B-P一浪A;
Y1:=一浪长;
P1:=P三浪C+Y1;
VERTLINE(BARPOS=K三浪C),LINEDOT,colorFFFF;
DRAWTEXT(BARPOS=K三浪C,SYSPARAM(4)*0.95,'转
折
点'),colorFFFF;
Y0618:=一浪长*0.618;
P0618:=P三浪C+Y0618;
PARTLINE(BARPOS>K三浪C,P0618),colorCCFF;
DRAWTEXT(BARPOS=K三浪C,P0618,''+NUMTOSTR(P0618,3)+'cop'),colorCCFF;
Y1000:=一浪长*1;
P1000:=P三浪C+Y1000;
PARTLINE(BARPOS>K三浪C,P1000),colorCCFF;
DRAWTEXT(BARPOS=K三浪C,P1000,''+NUMTOSTR(P1000,3)+'op'),colorCCFF;
Y1618:=一浪长*1.618;
P1618:=P三浪C+Y1618;
PARTLINE(BARPOS>K三浪C,P1618),colorCCFF;
DRAWTEXT(BARPOS=K三浪C,P1618,''+NUMTOSTR(P1618,3)+'xop'),colorCCFF;
DK:=MA(CLOSE,7);
{STICKLINE(DK<=CLOSEANDCLOSE>=OPEN,HIGH,LOW,0.1,1),colorFF;
STICKLINE(DK<=CLOSEANDCLOSE>=OPEN,CLOSE,OPEN,8,1),colorFF;
STICKLINE(DK<=CLOSEANDCLOSE<OPEN,HIGH,LOW,0.1,0),colorFF;
STICKLINE(DK<=CLOSEANDCLOSE<OPEN,CLOSE,OPEN,8,0),colorFF;
STICKLINE(DK>CLOSEANDCLOSE>=OPEN,HIGH,LOW,0.1,1),colorFF00;
STICKLINE(DK>CLOSEANDCLOSE>=OPEN,CLOSE,OPEN,8,1),colorFF00;
STICKLINE(DK>CLOSEANDCLOSE<OPEN,HIGH,LOW,0.1,0),colorFF00;
STICKLINE(DK>CLOSEANDCLOSE<OPEN,CLOSE,OPEN,8,0),colorFF00;}
当前月:=FRacPART(ROUND(CURRENTDATE/100)/100)*100;
月:=MONTH;
日:=DAY;
DRAWTEXT(SYSPARAM(2)=BARPOSANDNUMTOSTR(当前月,0)='1',CLOSE,NUMTOSTR(当前月,0)+'月时间之窗:5(小寒)、6、15、20(大寒)、21、*25
'),ALIGN5,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOSANDNUMTOSTR(当前月,0)='2',CLOSE,NUMTOSTR(当前月,0)+'月时间之窗:4(立春)、6、15、18(雨水)21
'),ALIGN5,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOSANDNUMTOSTR(当前月,0)='3',CLOSE,NUMTOSTR(当前月,0)+'月时间之窗:5(惊蛰)、6、15、*20(春分)、21
'),ALIGN5,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOSANDNUMTOSTR(当前月,0)='4',CLOSE,NUMTOSTR(当前月,0)+'月时间之窗:4(清明)、6、15、20(谷雨)21
'),ALIGN5,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOSANDNUMTOSTR(当前月,0)='5',CLOSE,NUMTOSTR(当前月,0)+'月时间之窗:5(立夏)、6、*12、15、21(小满)
'),ALIGN5,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOSANDNUMTOSTR(当前月,0)='6',CLOSE,NUMTOSTR(当前月,0)+'月时间之窗:5(芒种)、6、*14、21(夏至)
'),ALIGN5,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOSANDNUMTOSTR(当前月,0)='7',CLOSE,NUMTOSTR(当前月,0)+'月时间之窗:7(小暑)、8、15、*19、23(大暑)
'),ALIGN5,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOSANDNUMTOSTR(当前月,0)='8',CLOSE,NUMTOSTR(当前月,0)+'月时间之窗:*6、7(立秋)、8、18、23(处暑)
'),ALIGN5,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOSANDNUMTOSTR(当前月,0)='9',CLOSE,NUMTOSTR(当前月,0)+'月时间之窗:7(白露)、8、15、*18、23(秋分)
'),ALIGN5,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOSANDNUMTOSTR(当前月,0)='10',CLOSE,NUMTOSTR(当前月,0)+'月时间之窗:8(寒露)、15、23(霜降)、*31
'),ALIGN5,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOSANDNUMTOSTR(当前月,0)='11',CLOSE,NUMTOSTR(当前月,0)+'月时间之窗:7(立冬)、8、15、22(小雪)23、*28
'),ALIGN5,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOSANDNUMTOSTR(当前月,0)='12',CLOSE,NUMTOSTR(当前月,0)+'月时间之窗:7(大雪)、8、15、22(冬至)23、*31
'),ALIGN5,colorFFFF;
M1:=5;
M2:=10;
M3:=20;
M4:=60;
P1:=5;
JJJ:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));
DDD:=(DYNAINFO(5)<0.01||DYNAINFO(6)<0.01);
JJJT:=IF(DDD,1,(JJJ<(DYNAINFO(5)+0.01)&&JJJ>(DYNAINFO(6)-0.01)));
A1:=C>=REF(C,4);
A2:=C<REF(C,4);
A3:=C<REF(C,4)ANDREF(A1,1);
T:=BARSLAST(A3),NODRAW;
M0:=(T=0ANDREFX(T=1ANDNOT(A2),1))OR(REFX(T=2ANDNOT(A2),2))OR(REFX(T=3ANDNOT(A2),3))OR(REFX(T=4ANDNOT(A2),4))OR(REFX(T=5ANDNOT(A2),5))OR(REFX(T=6ANDNOT(A2),6))OR(REFX(T=7ANDNOT(A2),7))OR(REFX(T=8ANDNOT(A2),8));
M1:=T=1ANDREFX(T=2ANDNOT(A2),1)OR(REFX(T=3ANDNOT(A2),2))OR(REFX(T=4ANDNOT(A2),3))OR(REFX(T=5ANDNOT(A2),4))OR(REFX(T=6ANDNOT(A2),5))OR(REFX(T=7ANDNOT(A2),6))OR(REFX(T=8ANDNOT(A2),7));
M2:=T=2ANDREFX(T=3ANDNOT(A2),1)OR(REFX(T=4ANDNOT(A2),2))OR(REFX(T=5ANDNOT(A2),3))OR(REFX(T=6ANDNOT(A2),4))OR(REFX(T=7ANDNOT(A2),5))OR(REFX(T=8ANDNOT(A2),6));
M3:=T=3ANDREFX(T=4ANDNOT(A2),1)OR(REFX(T=5ANDNOT(A2),2))OR(REFX(T=6ANDNOT(A2),3))OR(REFX(T=7ANDNOT(A2),4))OR(REFX(T=8ANDNOT(A2),5));
M4:=T=4ANDREFX(T=5ANDNOT(A2),1)OR(REFX(T=6ANDNOT(A2),2))OR(REFX(T=7ANDNOT(A2),3))OR(REFX(T=8ANDNOT(A2),4));
M5:=T=5ANDREFX(T=6ANDNOT(A2),1)OR(REFX(T=7ANDNOT(A2),2))OR(REFX(T=8ANDNOT(A2),3));
M6:=T=6ANDREFX(T=7ANDNOT(A2),1)OR(REFX(T=8ANDNOT(A2),2));
M7:=T=7ANDREFX(T=8ANDNOT(A2),1);
N0:=T=1ANDREF(T=0ANDA3,1)ANDA2;
N1:=T=2ANDREF(N0,1)ANDA2;
N2:=T=3ANDREF(N1,1)ANDA2;
N3:=T=4ANDREF(N2,1)ANDA2;
N4:=T=5ANDREF(N3,1)ANDA2;
N5:=T=6ANDREF(N4,1)ANDA2;
N6:=T=7ANDREF(N5,1)ANDA2;
N7:=T=8ANDREF(N6,1)ANDA2;
WZD:=L*0.985;
WZG:=H*1.011;
DRAWTEXT(T=0ANDNOT(M0),WZD,'1'),COLORGREEN;
DRAWTEXT(N0ANDNOT(M1),WZD,'2'),COLORGREEN;
DRAWTEXT(N1ANDNOT(M2),WZD,'3'),COLORGREEN;
DRAWTEXT(N2ANDNOT(M3),WZD,'4'),COLORGREEN;
DRAWTEXT(N3ANDNOT(M4),WZD,'5'),COLORGREEN;
DRAWTEXT(N4ANDNOT(M5),WZD,'6'),COLORGREEN;
DRAWTEXT(N5ANDNOT(M6),WZD,'7'),COLORGREEN;
DRAWTEXT(N6ANDNOT(M7),WZD,'8'),COLORGREEN;
DRAWTEXT(N7,WZG,'9'),LINETHICK9,COLORMAGENTA,;
B1:=C<=REF(C,4);
B2:=C>REF(C,4);
B3:=C>REF(C,4)ANDREF(B1,1);
T1:=BARSLAST(B3),NODRAW;
M8:=(T1=0ANDREFX(T1=1ANDNOT(B2),1))OR(REFX(T1=2ANDNOT(B2),2))OR(REFX(T1=3ANDNOT(B2),3))OR(REFX(T1=4ANDNOT(B2),4))OR(REFX(T1=5ANDNOT(B2),5))OR(REFX(T1=6ANDNOT(B2),6))OR(REFX(T1=7ANDNOT(B2),7))OR(REFX(T1=8ANDNOT(B2),8));
M9:=T1=1ANDREFX(T1=2ANDNOT(B2),1)OR(REFX(T1=3ANDNOT(B2),2))OR(REFX(T1=4ANDNOT(B2),3))OR(REFX(T1=5ANDNOT(B2),4))OR(REFX(T1=6ANDNOT(B2),5))OR(REFX(T1=7ANDNOT(B2),6))OR(REFX(T1=8ANDNOT(B2),7));
M10:=T1=2ANDREFX(T1=3ANDNOT(B2),1)OR(REFX(T1=4ANDNOT(B2),2))OR(REFX(T1=5ANDNOT(B2),3))OR(REFX(T1=6ANDNOT(B2),4))OR(REFX(T1=7ANDNOT(B2),5))OR(REFX(T1=8ANDNOT(B2),6));
M11:=T1=3ANDREFX(T1=4ANDNOT(B2),1)OR(REFX(T1=5ANDNOT(B2),2))OR(REFX(T1=6ANDNOT(B2),3))OR(REFX(T1=7ANDNOT(B2),4))OR(REFX(T1=8ANDNOT(B2),5));
M12:=T1=4ANDREFX(T1=5ANDNOT(B2),1)OR(REFX(T1=6ANDNOT(B2),2))OR(REFX(T1=7ANDNOT(B2),7))OR(REFX(T1=8ANDNOT(B2),4));
M13:=T1=5ANDREFX(T1=6ANDNOT(B2),1)OR(REFX(T1=7ANDNOT(B2),2))OR(REFX(T1=8ANDNOT(B2),3));
M14:=T1=6ANDREFX(T1=7ANDNOT(B2),1)OR(REFX(T1=8ANDNOT(B2),2));
M15:=T1=7ANDREFX(T1=8ANDNOT(B2),1);
N8:=T1=1ANDREF(T1=0ANDB3,1)ANDB2;
N9:=T1=2ANDREF(N8,1)ANDB2;
N10:=T1=3ANDREF(N9,1)ANDB2;
N11:=T1=4ANDREF(N10,1)ANDB2;
N12:=T1=5ANDREF(N11,1)ANDB2;
N13:=T1=6ANDREF(N12,1)ANDB2;
N14:=T1=7ANDREF(N13,1)ANDB2;
N15:=T1=8ANDREF(N14,1)ANDB2;
DRAWTEXT(T1=0ANDNOT(M8),WZG,'1'),COLOR9900CC;
DRAWTEXT(N8ANDNOT(M9),WZG,'2'),COLOR9900CC;
DRAWTEXT(N9ANDNOT(M10),WZG,'3'),COLOR9900CC;
DRAWTEXT(N10ANDNOT(M11),WZG,'4'),COLOR9900CC;
DRAWTEXT(N11ANDNOT(M12),WZG,'5'),COLOR9900CC;
DRAWTEXT(N12ANDNOT(M13),WZG,'6'),COLOR9900CC;
DRAWTEXT(N13ANDNOT(M14),WZG,'7'),COLOR9900CC;
DRAWTEXT(N14ANDNOT(M15),WZG,'8'),COLOR9900CC;
DRAWTEXT(N15,WZD,'9'),LINETHICK3,COLORGREEN;
{背离};
AN1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));
BN1:=REF(C,AN1+1)>CANDREF("MACD.DIF",AN1+1)<"MACD.DIF"ANDCROSS("MACD.DIF","MACD.DEA");
DRAWTEXT(BN1>0,WZD,'MACD底背'),COLORYELLOW;
CN1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1));
DN1:=REF(C,CN1+1)<CANDREF("MACD.DIF",CN1+1)>"MACD.DIF"ANDCROSS("MACD.DEA","MACD.DIF");
DRAWTEXT(DN1>0,WZG,'MACD顶离'),COLORGREEN;{MACD顶背离};
{N1111:1,100,10;N22:1,100,10;DISP:=1,3,2};
N1111:=10;N22:=10;DISP:=2;
K:=IF(PERIOD=5,1,{日}
IF(PERIOD=6,1,{周}
IF(PERIOD=7,1,{月}
IF(PERIOD=8,1,{多分钟}
IF(PERIOD=9,1,{多日}
IF(PERIOD=10,1,{季}
IF(PERIOD=11,2,{年}
IF(PERIOD=4,1,{60F}
IF(PERIOD=3,1,{30F}
IF(PERIOD=2,1,{15F}
IF(PERIOD=1,1{5F},1{1F})))))))))))/10;
P1:=PEAK(1,K*N1111,1);
P2:=PEAK(1,K*N1111,2);
WP1:=PEAKBARS(1,K*N1111,1);
WP2:=PEAKBARS(1,K*N1111,2);
T111:=TROUGH(2,K*N22,1);
T2:=TROUGH(2,K*N22,2);
WT111:=TROUGHBARS(2,K*N22,1);
WT2:=TROUGHBARS(2,K*N22,2);
TJ1:=P1>T111ANDP2>T2;
ZD:=MAX(T111,T2);
ZG:=MIN(P1,P2);
LL:=MIN(T111,T2);
HH:=MAX(P1,P2);
TJ2:=FILTER(ZG>ZD,2);
TJ3:=ZG=REF(ZG,BARSLAST(TJ2))ORZD=REF(ZD,BARSLAST(TJ2));
TJ4:=TJ1&&TJ2&&NOT(TJ3);
TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1)));
TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1)));
TJ7:=ZG>REF(ZG,REF(BARSLAST(TJ4),1))&&ZD<REF(ZD,REF(BARSLAST(TJ4),1));
TJ8:=TJ4&&NOT(TJ5ORTJ6ORTJ7);
ZSD:=IF(TJ8,ZD,DRAWNULL);
ZSG:=IF(TJ8,ZG,DRAWNULL);
ZSH:=IF(TJ8,HH,DRAWNULL);
ZSL:=IF(TJ8,LL,DRAWNULL);
STICKLINE(TJ8,ZSH,ZSL,0,-1),COLORMAGENTA;
STICKLINE(TJ8,ZSD,ZSG,IF(DISP=1,3,0),1),COLORMAGENTA;
DRAWTEXT(DISP=2,ZSH,'中枢'),COLORRED;
中枢高:PLOYLINE(DISP=2,REF(ZSD,BARSLAST(TJ8))),CROSSDOT,COLORLIRED;
中枢低:PLOYLINE(DISP=2,REF(ZSG,BARSLAST(TJ8))),CROSSDOT,COLORLIGREEN;
中枢最高:PLOYLINE(DISP=2,REF(ZSH,BARSLAST(TJ8))),POINTDOT,COLORRED;
中枢最低:PLOYLINE(DISP=2,REF(ZSL,BARSLAST(TJ8))),POINTDOT,COLORGREEN;
趋势高:PLOYLINE(DISP=3,ZIG(1,K*N1111)),COLORLIBLUE;
趋势低:PLOYLINE(DISP=3,ZIG(2,K*N22)),COLORLIBLUE;
局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);
局部低点预选B:=BACKSET(局部低点预选A=0ANDREF(局部低点预选A,1)=1,2);
局部低点预选C:=IF(局部低点预选B=1ANDREF(局部低点预选B,1)=0,-1,0);
局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);
局部高点预选B:=BACKSET(局部高点预选A=0ANDREF(局部高点预选A,1)=1,2);
局部高点预选C:=IF(局部高点预选B=1ANDREF(局部高点预选B,1)=0,1,0);
缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));
距前高天:=BARSLAST(局部高点预选C=1);
距前低天:=BARSLAST(局部低点预选C=-1);
小值周期:=LOWRANGE(L);
大值周期:=TOPRANGE(H);
低保留AA:=IF(局部低点预选C=-1ANDREF(距前高天,1)>REF(距前低天,1)ANDLLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);
低保留AB:=IF(局部低点预选C=-1ANDREF(距前高天,1)<=REF(距前低天,1)AND(距前高天>=4ORLLV(缺口判断,距前高天)=-1ORLLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);
低保留S:=IF((低保留AA=-1OR低保留AB=-1)ANDL<REF(H,距前高天+1),-1,0);
预判:=IF((距前低天<4ANDHHV(缺口判断,距前低天)!=1)ORREF(低保留S,距前低天)=0,1,0);
判断:=IF(局部高点预选C=1ANDREF(距前低天,1)<=REF(距前高天,1)AND预判=1AND大值周期>REF(小值周期,距前低天+1)AND大值周期>REF(小值周期,距前低天)AND大值周期>REF(大值周期,距前高天),1,0);
高保留A:=IF(局部高点预选C=1ANDREF(距前低天,1)>REF(距前高天,1)ANDHHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);
高保留B:=IF(局部高点预选C=1ANDREF(距前低天,1)<=REF(距前高天,1)ANDREF(低保留S,距前低天)=-1AND(距前低天>=4ORHHV(缺口判断,距前低天)=1),1,0);
高保留:=IF((高保留A=1OR高保留B=1OR判断=1)ANDH>REF(L,距前低天+1),1,0);
预判A:=IF((距前高天<4ANDHHV(缺口判断,距前高天)!=1)ORREF(高保留,距前高天)=0,1,0);
判断A:=IF(局部低点预选C=-1ANDREF(距前高天,1)<=REF(距前低天,1)AND预判A=1AND小值周期>REF(大值周期,距前高天+1)AND小值周期>REF(大值周期,距前高天)AND小值周期>REF(小值周期,距前低天),-1,0);
低保留A:=IF(局部低点预选C=-1ANDREF(距前高天,1)>REF(距前低天,1)ANDLLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);
低保留B:=IF(局部低点预选C=-1ANDREF(距前高天,1)<=REF(距前低天,1)AND(距前高天>=4ORLLV(缺口判断,距前高天)=-1OR判断A=-1),-1,0);
低保留:=IF((低保留A=-1OR低保留B=-1)ANDL<REF(H,距前高天+1),-1,0);
距前高天A:=BARSLAST(高保留=1);
距前低天A:=BARSLAST(低保留=-1);
预判X:=IF((距前低天A<4ANDHHV(缺口判断,距前低天A)!=1)ORREF(低保留,距前低天A)=0,1,0);
判断X:=IF(局部高点预选C=1ANDREF(距前低天A,1)<=REF(距前高天A,1)AND预判X=1AND大值周期>REF(小值周期,距前低天A+1)AND大值周期>REF(小值周期,距前低天A)AND大值周期>REF(大值周期,距前高天A),1,0);
高保留XA:=IF(局部高点预选C=1ANDREF(距前低天A,1)>REF(距前高天A,1)ANDHHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);
高保留XB:=IF(局部高点预选C=1ANDREF(距前低天A,1)<=REF(距前高天A,1)ANDREF(低保留,距前低天A)=-1AND(距前低天A>=4ORHHV(缺口判断,距前低天A)=1),1,0);
高保留X:=IF((高保留XA=1OR高保留XB=1OR判断X=1)ANDH>REF(L,距前低天A+1),1,0);
预判XA:=IF((距前高天A<4ANDHHV(缺口判断,距前高天A)!=1)ORREF(高保留XA,距前高天A)=0,1,0);
判断XA:=IF(局部低点预选C=-1ANDREF(距前高天A,1)<=REF(距前低天A,1)AND预判XA=1AND小值周期>REF(大值周期,距前高天A+1)AND小值周期>REF(大值周期,距前高天A)AND小值周期>REF(小值周期,距前低天A),-1,0);
低保留XA:=IF(局部低点预选C=-1ANDREF(距前高天A,1)>REF(距前低天A,1)ANDLLV(L,距前高天A+1)<REF(LLV(L,距前高天A+1),1),-1,0);
低保留XB:=IF(局部低点预选C=-1ANDREF(距前高天A,1)<=REF(距前低天A,1)AND(距前高天A>=4ORLLV(缺口判断,距前高天A)=-1OR判断XA=-1),-1,0);
低保留X:=IF((低保留XA=-1OR低保留XB=-1)ANDL<REF(H,距前高天A+1),-1,0);
距前高天YA:=BARSLAST(高保留X=1);
距前低天YA:=BARSLAST(低保留X=-1);
预判YX:=IF((距前低天YA<4ANDHHV(缺口判断,距前低天YA)!=1)ORREF(低保留X,距前低天YA)=0,1,0);
判断YX:=IF(局部高点预选C=1ANDREF(距前低天YA,1)<=REF(距前高天YA,1)AND预判YX=1AND大值周期>REF(小值周期,距前低天YA+1)AND大值周期>REF(小值周期,距前低天YA)AND大值周期>REF(大值周期,距前高天YA),1,0);
高保留YXA:=IF(局部高点预选C=1ANDREF(距前低天YA,1)>REF(距前高天YA,1)ANDHHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);
高保留YXB:=IF(局部高点预选C=1ANDREF(距前低天YA,1)<=REF(距前高天YA,1)ANDREF(低保留X,距前低天YA)=-1AND(距前低天YA>=4ORHHV(缺口判断,距前低天YA)=1),1,0);
高保留YX:=IF((高保留YXA=1OR高保留YXB=1OR判断YX=1)ANDH>REF(L,距前低天YA+1),1,0);
预判YXA:=IF((距前高天YA<4ANDHHV(缺口判断,距前高天YA)!=1)ORREF(高保留YXA,距前高天YA)=0,1,0);
判断YXA:=IF(局部低点预选C=-1ANDREF(距前高天YA,1)<=REF(距前低天YA,1)AND预判YXA=1AND小值周期>REF(大值周期,距前高天YA+1)AND小值周期>REF(大值周期,距前高天YA)AND小值周期>REF(小值周期,距前低天YA),-1,0);
低保留YXA:=IF(局部低点预选C=-1ANDREF(距前高天YA,1)>REF(距前低天YA,1)ANDLLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0);
低保留YXB:=IF(局部低点预选C=-1ANDREF(距前高天YA,1)<=REF(距前低天YA,1)AND(距前高天YA>=4ORLLV(缺口判断,距前高天YA)=-1OR判断YXA=-1),-1,0);
低保留YX:=IF((低保留YXA=-1OR低保留YXB=-1)ANDL<REF(H,距前高天YA+1),-1,0);
AAAD:=IF(高保留YX=1AND低保留YX=-1ANDH>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1AND低保留YX=-1ANDL<REF(L,REF(距前低天YA,1)+2),-1,0));
极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);
局部极点:IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL))CIRCLEDOTCOLORYELLOW;
DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0)COLORLIRED;
DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0)COLORYELLOW;
DD1:=BARSLAST(ABS(极点保留)!=1);
DRAWTEXT(极点保留=1,局部极点,'卖'),COLORGREEN;
DRAWTEXT(极点保留=-1,局部极点,'买'),COLORRED;
MA5:MA(CLOSE,5),COLORFF00FF,LINETHICK2;判:IF(MA5<REF(MA5,1),MA5,DRAWNULL),COLORWHITE,LINETHICK2;
[源码注释]九转数字主图指标公式翻译结果
C1赋值:收盘价
N赋值:10
LB赋值:获利盘为1%的成本分布
HB赋值:获利盘为99%的成本分布
W赋值:(HB-LB)/10
N0赋值:LB
N1赋值:LB+W
N2赋值:LB+2*W
N3赋值:LB+3*W
N4赋值:LB+4*W
N5赋值:LB+5*W
N6赋值:LB+6*W
N7赋值:LB+7*W
N8赋值:LB+8*W
N9赋值:LB+9*W
N10赋值:HB
A0赋值:以N1计算的获利盘比例*100-以N0计算的获利盘比例*100
A1赋值:以N2计算的获利盘比例*100-以N1计算的获利盘比例*100
A2赋值:以N3计算的获利盘比例*100-以N2计算的获利盘比例*100
A3赋值:以N4计算的获利盘比例*100-以N3计算的获利盘比例*100
A4赋值:以N5计算的获利盘比例*100-以N4计算的获利盘比例*100
A5赋值:以N6计算的获利盘比例*100-以N5计算的获利盘比例*100
A6赋值:以N7计算的获利盘比例*100-以N6计算的获利盘比例*100
A7赋值:以N8计算的获利盘比例*100-以N7计算的获利盘比例*100
A8赋值:以N9计算的获利盘比例*100-以N8计算的获利盘比例*100
A9赋值:以N10计算的获利盘比例*100-以N9计算的获利盘比例*100
输出XA0:当满足条件数据位置状态=2ANDA0>0时,在(N1+N0)/2位置画斜线0斜率N*A0长度,1方向.,COLOR262626,线宽为4
输出XA1:当满足条件数据位置状态=2ANDA1>0时,在(N2+N1)/2位置画斜线0斜率N*A1长度,1方向.,COLOR262626,线宽为4
输出XA2:当满足条件数据位置状态=2ANDA2>0时,在(N3+N2)/2位置画斜线0斜率N*A2长度,1方向.,COLOR262626,线宽为4
输出XA3:当满足条件数据位置状态=2ANDA3>0时,在(N4+N3)/2位置画斜线0斜率N*A3长度,1方向.,COLOR262626,线宽为4
输出XA4:当满足条件数据位置状态=2ANDA4>0时,在(N5+N4)/2位置画斜线0斜率N*A4长度,1方向.,COLOR262626,线宽为4
输出XA5:当满足条件数据位置状态=2ANDA5>0时,在(N6+N5)/2位置画斜线0斜率N*A5长度,1方向.,COLOR262626,线宽为4
输出XA6:当满足条件数据位置状态=2ANDA6>0时,在(N7+N6)/2位置画斜线0斜率N*A6长度,1方向.,COLOR262626,线宽为4
输出XA7:当满足条件数据位置状态=2ANDA7>0时,在(N8+N7)/2位置画斜线0斜率N*A7长度,1方向.,COLOR262626,线宽为4
输出XA8:当满足条件数据位置状态=2ANDA8>0时,在(N9+N8)/2位置画斜线0斜率N*A8长度,1方向.,COLOR262626,线宽为4
输出XA9:当满足条件数据位置状态=2ANDA9>0时,在(N10+N9)/2位置画斜线0斜率N*A9长度,1方向.,COLOR262626,线宽为4
当满足条件收阳线时,在收盘价和开盘价位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLOR0088FF
当满足条件收阴线时,在开盘价和收盘价位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLOR666600
AA赋值:(2*收盘价+最高价+最低价)/4的5日简单移动平均
通1赋值:AA*102/100
通2赋值:AA*(200-102)/100
ZZ赋值:(2*收盘价+最高价+最低价)/4-收盘价的20日简单移动平均的绝对值/收盘价的20日简单移动平均
DD赋值:以ZZ为权重收盘价的动态移动平均
上赋值:(1+7/100)*DD
下赋值:(1-7/100)*DD
中赋值:(上+下)/2
顶赋值:(1+14/100)*DD
底赋值:(1-14/100)*DD
轨道角度1赋值:((底的5日简单移动平均/1日前的底的5日简单移动平均-1)*100的反正切*180/3.14115926),线宽为0
五日角度1赋值:((收盘价的5日简单移动平均/1日前的收盘价的5日简单移动平均-1)*100的反正切*180/3.14115926),线宽为0
当满足条件SYSPARAM(1)=BARPOSANDC>顶时,在最低价位置书写文字,PXDN27,COLOR0088FF
当满足条件SYSPARAM(1)=BARPOSANDC<顶时,在最低价位置书写文字,PXDN27,COLOR666600
当满足条件SYSPARAM(1)=BARPOSANDC>上时,在最低价位置书写文字,PXDN52,COLOR0088FF
当满足条件SYSPARAM(1)=BARPOSANDC<上时,在最低价位置书写文字,PXDN52,COLOR666600
当满足条件SYSPARAM(1)=BARPOSANDC>中时,在最低价位置书写文字,PXDN77,COLOR0088FF
当满足条件SYSPARAM(1)=BARPOSANDC<中时,在最低价位置书写文字,PXDN77,COLOR666600
当满足条件SYSPARAM(1)=BARPOSANDC>下时,在最低价位置书写文字,PXDN102,COLOR0088FF
当满足条件SYSPARAM(1)=BARPOSANDC<下时,在最低价位置书写文字,PXDN102,COLOR666600
当满足条件SYSPARAM(1)=BARPOSANDC>底时,在最低价位置书写文字,PXDN127,COLOR0088FF
当满足条件SYSPARAM(1)=BARPOSANDC<底时,在最低价位置书写文字,PXDN127,COLOR666600
ZH赋值:22日内最高价的最高值
ZHH赋值:最高价
ZGF1赋值:ZHH/1.0809
ZGF2赋值:ZHH/1.1618
ZGF3赋值:ZHH/1.0809/1.1618
ZGF4赋值:ZHH/1.1618/1.1618
输出DRAWTEXTEX(收盘价,1,10,650,'第一回调区:'+NUMTOSTR(ZGF1[SYSPARAM(1)],2)+'--'+NUMTOSTR(ZGF2[SYSPARAM(1)],2)+''),COLOR00FF00
输出DRAWTEXTEX(收盘价,1,10,700,'第二回调区:'+NUMTOSTR(ZGF3[SYSPARAM(1)],2)+'--'+NUMTOSTR(ZGF4[SYSPARAM(1)],2)+''),COLOR00FF00
ZL赋值:22日内最低价的最低值
ZLL赋值:最低价
ZGFB1赋值:ZLL*1.0809
ZGFB2赋值:ZLL*1.1618
ZGFB3赋值:ZLL*1.0809*1.1618
ZGFB4赋值:ZLL*1.1618*1.1618
输出DRAWTEXTEX(收盘价,1,10,450,'第一压力区:'+NUMTOSTR(ZGFB1[SYSPARAM(1)],2)+''+'--'+NUMTOSTR(ZGFB2[SYSPARAM(1)],2)+''),COLOR00EEFF
输出DRAWTEXTEX(收盘价,1,10,500,'第二压力区:'+NUMTOSTR(ZGFB3[SYSPARAM(1)],2)+''+'--'+NUMTOSTR(ZGFB4[SYSPARAM(1)],2)+''),COLOR00EEFF
输出DRAWTEXTEX(收盘价,1,10,400,'本次起动价:'+NUMTOSTR(ZL[SYSPARAM(1)],2)+''),COLOR00EEFF
输出DRAWTEXTEX(收盘价,1,10,600,'预计回调价:'+NUMTOSTR(ZH[SYSPARAM(1)],2)+''),COLOR00DD00
输出DRAWTEXTEX(收盘价,1,10,50,'收益:'+NUMTOSTR(每股收益(全年折算),2)+'元'),COLORFFB060
输出DRAWTEXTEX(收盘价,1,120,50,'净资产:'+NUMTOSTR(每股净资产,2)+'元'),COLORFFB060
输出DRAWTEXTEX(收盘价,1,10,100,'流通股:'+NUMTOSTR(流通股本(股)/10000,2)+'亿'),COLORFFB060
输出DRAWTEXTEX(收盘价,1,120,100,'占总股本:'+NUMTOSTR(流通股本(股)/总股本(股)*100,2)+'%'),COLORFFB060
输出DRAWTEXTEX(收盘价,1,10,150,'负债率:'+NUMTOSTR(流动资产/流动负债,2)),COLORFFB060
输出DRAWTEXTEX(收盘价,1,120,150,'主营收入:'+NUMTOSTR(营业收入/10000,1)+''),COLORFFB060
输出DRAWTEXTEX(收盘价,1,10,200,'主题投资:'+SELFSTRING('主题投资')),COLORFFB060
DRAWTEXTEX(收盘价,1,10,0,'善谋者,谋势;不善者,谋子'),COLOR0088FF
输出INPUT:KG1(20,1,50)
输出INPUT:F1(10,1,20)
输出INPUT:P(10,1,20)
输出D3X3:收盘价的3日简单移动平均,SHIFT3,画洋红色
KG赋值:如果DATATYPE<=1,返回1,否则返回如果DATATYPE<=3,返回5,否则返回如果DATATYPE<=5,返回10,否则返回KG1
F赋值:如果DATATYPE<=3,返回1,否则返回如果DATATYPE=4,返回3,否则返回如果DATATYPE=5,返回5,否则返回F1
ZX赋值:4KG%的之字转向
CCH赋值:4KG%之字转向的前1个波峰值
CCY赋值:4KG%之字转向的前1个波谷值
输出CC:如果ZX<1日前的ZX,返回CCH,否则返回CCY,线宽为0
W1赋值:CCH-0.02上穿ZX
W2赋值:ZX上穿CCY+0.02
FD赋值:F/100
YS赋值:如果ZX<1日前的ZX,返回FD,否则返回-FD
W赋值:如果ZX<1日前的ZX,返回W1,否则返回W2
输出H1:上次W距今天数日前的CC*(1-YS*1),线宽为0
输出H2:上次W距今天数日前的CC*(1-YS*2),线宽为0
输出H3:上次W距今天数日前的CC*(1-YS*3),线宽为0
输出H4:上次W距今天数日前的CC*(1-YS*4),线宽为0
输出H5:上次W距今天数日前的CC*(1-YS*5),线宽为0
输出H6:上次W距今天数日前的CC*(1-YS*6),线宽为0
输出H7:上次W距今天数日前的CC*(1-YS*7),线宽为0
输出H8:上次W距今天数日前的CC*(1-YS*8),线宽为0
输出H9:上次W距今天数日前的CC*(1-YS*9),线宽为0
输出H10:上次W距今天数日前的CC*(1-YS*10),线宽为0
输出H11:上次W距今天数日前的CC*(1-YS*11),线宽为0
输出H12:上次W距今天数日前的CC*(1-YS*12),线宽为0
输出H13:上次W距今天数日前的CC*(1-YS*13),线宽为0
输出H14:上次W距今天数日前的CC*(1-YS*14),线宽为0
输出H15:上次W距今天数日前的CC*(1-YS*15),线宽为0
HHD赋值:SYSPARAM(4)
LLD赋值:SYSPARAM(5)
系数赋值:如果DATATYPE=2,返回1.00005,否则返回如果DATATYPE<6,返回1.0005,否则返回1.002
当满足条件CC>=LLDANDCC<=HHD时,在CC和CC*系数位置之间画柱状线,宽度为20,0不为0则画空心柱.,COLORFF
当满足条件CC>=LLDANDCC<=HHD时,在H1和H1位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORA0A0A0
当满足条件H1>LLDANDH1<HHD时,在H2和H2位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORA0A0A0
当满足条件H2>LLDANDH2<HHD时,在H3和H3位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORA0A0A0
当满足条件H3>LLDANDH3<HHD时,在H4和H4位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORA0A0A0
当满足条件H4>LLDANDH4<HHD时,在H5和H5位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORA0A0A0
当满足条件H5>LLDANDH5<HHD时,在H6和H6位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORA0A0A0
当满足条件H6>LLDANDH6<HHD时,在H7和H7位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORA0A0A0
当满足条件H7>LLDANDH7<HHD时,在H8和H8位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORA0A0A0
当满足条件H8>LLDANDH8<HHD时,在H9和H9位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORA0A0A0
当满足条件H9>LLDANDH9<HHD时,在H10和H10位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORA0A0A0
当满足条件H10>LLDANDH10<HHD时,在H11和H11位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORA0A0A0
当满足条件H11>LLDANDH11<HHD时,在H12和H12位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORA0A0A0
当满足条件H12>LLDANDH12<HHD时,在H13和H13位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORA0A0A0
当满足条件H13>LLDANDH13<HHD时,在H14和H14位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORA0A0A0
当满足条件H14>LLDANDH14<HHD时,在H15和H15位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORA0A0A0
当满足条件WANDCC>=LLDANDCC<=HHD时,在H1位置书写文字,PXDN5,COLORA0A0A0
当满足条件WANDH1>LLDANDH1<HHD时,在H2位置书写文字,PXDN5,COLORA0A0A0
当满足条件WANDH2>LLDANDH2<HHD时,在H3位置书写文字,PXDN5,COLORA0A0A0
当满足条件WANDH3>LLDANDH3<HHD时,在H4位置书写文字,PXDN5,COLORA0A0A0
当满足条件WANDH4>LLDANDH4<HHD时,在H5位置书写文字,PXDN5,COLORA0A0A0
当满足条件WANDH5>LLDANDH5<HHD时,在H6位置书写文字,PXDN5,COLORA0A0A0
当满足条件WANDH6>LLDANDH6<HHD时,在H7位置书写文字,PXDN5,COLORA0A0A0
当满足条件WANDH7>LLDANDH7<HHD时,在H8位置书写文字,PXDN5,COLORA0A0A0
当满足条件WANDH8>LLDANDH8<HHD时,在H9位置书写文字,PXDN5,COLORA0A0A0
当满足条件WANDH9>LLDANDH9<HHD时,在H10位置书写文字,PXDN5,COLORA0A0A0
当满足条件WANDH10>LLDANDH10<HHD时,在H11位置书写文字,PXDN5,COLORA0A0A0
当满足条件WANDH11>LLDANDH11<HHD时,在H12位置书写文字,PXDN5,COLORA0A0A0
当满足条件WANDH12>LLDANDH12<HHD时,在H13位置书写文字,PXDN5,COLORA0A0A0
当满足条件WANDH13>LLDANDH13<HHD时,在H14位置书写文字,PXDN5,COLORA0A0A0
当满足条件WANDH14>LLDANDH14<HHD时,在H15位置书写文字,PXDN5,COLORA0A0A0
AK1赋值:上次W1距今天数+1
BK1赋值:上次W2距今天数+1
目前赋值:如果BK1>AK1,返回AK1,否则返回BK1
当满足条件W1时,在CC位置书写数字,ALIGN2,PXUP30,COLORFF00FF
当满足条件W2时,在CC位置书写数字,ALIGN2,PXDN10,COLORFF00
方向赋值:如果CC=CCH,返回'下行',否则返回'上升'
周期赋值:如果DATATYPE=6,返回'天',否则返回如果DATATYPE=7,返回'周',否则返回如果DATATYPE=8,返回'月',否则返回'单位'
DRAWTEXTEX(CC=CCH,1,320,0,'目前波段'+方向+NUMTOSTR(目前,0)+周期),COLOR666600
DRAWTEXTEX(CC不等于CCH,1,320,0,'目前波段'+方向+NUMTOSTR(目前,0)+周期),COLOR0088FF
当满足条件W1时,在CC位置书写文字,PXUP30,COLORFF00FF
当满足条件W2时,在CC位置书写文字,PXDN10,COLORFF00
X1赋值:4P%之字转向的前1个波谷值
X8赋值:4P%之字转向的前1个波谷位置=0
X11赋值:4P%之字转向的前2个波谷位置
X18赋值:4P%之字转向的前1个波谷位置
X13赋值:4P%之字转向的前1个波谷位置
X3赋值:4P%之字转向的前1个波峰值
X31赋值:4P%之字转向的前2个波峰位置
X38赋值:4P%之字转向的前1个波峰位置
X33赋值:4P%之字转向的前1个波峰位置
X5赋值:4P%之字转向的前1个波峰位置=0
光标位置赋值:SYSPARAM(1)
CLDIS赋值:X13[SYSPARAM(1)]
CHDIS赋值:X33[SYSPARAM(1)]
TCL赋值:光标位置-CLDIS
TCH赋值:光标位置-CHDIS
BLDIS赋值:X18[SYSPARAM(1)]
BHDIS赋值:X38[SYSPARAM(1)]
TBL赋值:光标位置-BLDIS
TBH赋值:光标位置-BHDIS
ALDIS赋值:X11[SYSPARAM(1)]
AHDIS赋值:X31[SYSPARAM(1)]
TAL赋值:光标位置-ALDIS
TAH赋值:光标位置-AHDIS
K一浪A赋值:如果TCL>TCH,返回TAL,否则返回TAH
K二浪B赋值:如果TCL>TCH,返回TBH,否则返回TBL
K三浪C赋值:如果TCL>TCH,返回TCL,否则返回TCH
PH赋值:最高价
PL赋值:最低价
输出P一浪A:如果TCL>TCH,返回PL[TAL+0],否则返回PH[TAH+0],线宽为0
输出P二浪B:如果TCL>TCH,返回PH[TBH+0],否则返回PL[TBL+0],线宽为0
输出P三浪C:如果TCL>TCH,返回PL[TCL+0],否则返回PH[TCH+0],线宽为0
当满足条件BARPOS=K一浪A时,在P一浪A位置画直线起点,当满足条件BARPOS=K二浪B时,在P二浪B位置画直线终点,0表示是否延长.,LINEDOT,COLOR77FFFF
当满足条件BARPOS=K二浪B时,在P二浪B位置画直线起点,当满足条件BARPOS=K三浪C时,在P三浪C位置画直线终点,0表示是否延长.,LINEDOT,COLOR77FFFF
一浪长赋值:P二浪B-P一浪A
Y1赋值:一浪长
P1赋值:P三浪C+Y1
VERTLINE(BARPOS=K三浪C),LINEDOT,COLORFFFF
当满足条件BARPOS=K三浪C时,在SYSPARAM(4)*0.95位置书写文字,COLORFFFF
Y0618赋值:一浪长*0.618
P0618赋值:P三浪C+Y0618
PARTLINE(BARPOS>K三浪C,P0618),COLORCCFF
当满足条件BARPOS=K三浪C时,在P0618位置书写文字,COLORCCFF
Y1000赋值:一浪长*1
P1000赋值:P三浪C+Y1000
PARTLINE(BARPOS>K三浪C,P1000),COLORCCFF
当满足条件BARPOS=K三浪C时,在P1000位置书写文字,COLORCCFF
Y1618赋值:一浪长*1.618
P1618赋值:P三浪C+Y1618
PARTLINE(BARPOS>K三浪C,P1618),COLORCCFF
当满足条件BARPOS=K三浪C时,在P1618位置书写文字,COLORCCFF
DK赋值:收盘价的7日简单移动平均
当前月赋值:对CURRENTDATE/100(进行)四舍五入/100的小数部分*100
月赋值:月份
日赋值:日
当满足条件SYSPARAM(2)=BARPOSANDNUMTOS真实波幅='1'时,在收盘价位置书写文字,ALIGN5,COLORFFFF
当满足条件SYSPARAM(2)=BARPOSANDNUMTOS真实波幅='2'时,在收盘价位置书写文字,ALIGN5,COLORFFFF
当满足条件SYSPARAM(2)=BARPOSANDNUMTOS真实波幅='3'时,在收盘价位置书写文字,ALIGN5,COLORFFFF
当满足条件SYSPARAM(2)=BARPOSANDNUMTOS真实波幅='4'时,在收盘价位置书写文字,ALIGN5,COLORFFFF
当满足条件SYSPARAM(2)=BARPOSANDNUMTOS真实波幅='5'时,在收盘价位置书写文字,ALIGN5,COLORFFFF
当满足条件SYSPARAM(2)=BARPOSANDNUMTOS真实波幅='6'时,在收盘价位置书写文字,ALIGN5,COLORFFFF
当满足条件SYSPARAM(2)=BARPOSANDNUMTOS真实波幅='7'时,在收盘价位置书写文字,ALIGN5,COLORFFFF
当满足条件SYSPARAM(2)=BARPOSANDNUMTOS真实波幅='8'时,在收盘价位置书写文字,ALIGN5,COLORFFFF
当满足条件SYSPARAM(2)=BARPOSANDNUMTOS真实波幅='9'时,在收盘价位置书写文字,ALIGN5,COLORFFFF
当满足条件SYSPARAM(2)=BARPOSANDNUMTOS真实波幅='10'时,在收盘价位置书写文字,ALIGN5,COLORFFFF
当满足条件SYSPARAM(2)=BARPOSANDNUMTOS真实波幅='11'时,在收盘价位置书写文字,ALIGN5,COLORFFFF
当满足条件SYSPARAM(2)=BARPOSANDNUMTOS真实波幅='12'时,在收盘价位置书写文字,ALIGN5,COLORFFFF
M1赋值:5
M2赋值:10
M3赋值:20
M4赋值:60
P1赋值:5
JJJ赋值:如果总量>,返回?,否则返回?
0.01,0.01*总金额/总量,昨收盘价)
DDD赋值:(最高价<
0.01或者最低价<
0.01)
JJJT赋值:如果DDD,返回1,否则返回(JJJ<
(最高价+0.01)&
&
JJJ>
(最低价-0.01)))
A1赋值:收盘价>
=4日前的收盘价
A2赋值:收盘价<
4日前的收盘价
A3赋值:收盘价<
4日前的收盘价ANDREF(A1,1)
T赋值:上次A3距今天数,NODRAW
M0赋值:(T=0ANDREFX(T=1ANDNOT(A2),1))OR(2日后的T=2ANDNOT(A2))OR(3日后的T=3ANDNOT(A2))OR(4日后的T=4ANDNOT(A2))OR(5日后的T=5ANDNOT(A2))OR(6日后的T=6ANDNOT(A2))OR(7日后的T=7ANDNOT(A2))OR(8日后的T=8ANDNOT(A2))
M1赋值:T=1ANDREFX(T=2ANDNOT(A2),1)OR(2日后的T=3ANDNOT(A2))OR(3日后的T=4ANDNOT(A2))OR(4日后的T=5ANDNOT(A2))OR(5日后的T=6ANDNOT(A2))OR(6日后的T=7ANDNOT(A2))OR(7日后的T=8ANDNOT(A2))
M2赋值:T=2ANDREFX(T=3ANDNOT(A2),1)OR(2日后的T=4ANDNOT(A2))OR(3日后的T=5ANDNOT(A2))OR(4日后的T=6ANDNOT(A2))OR(5日后的T=7ANDNOT(A2))OR(6日后的T=8ANDNOT(A2))
M3赋值:T=3ANDREFX(T=4ANDNOT(A2),1)OR(2日后的T=5ANDNOT(A2))OR(3日后的T=6ANDNOT(A2))OR(4日后的T=7ANDNOT(A2))OR(5日后的T=8ANDNOT(A2))
M4赋值:T=4ANDREFX(T=5ANDNOT(A2),1)OR(2日后的T=6ANDNOT(A2))OR(3日后的T=7ANDNOT(A2))OR(4日后的T=8ANDNOT(A2))
M5赋值:T=5ANDREFX(T=6ANDNOT(A2),1)OR(2日后的T=7ANDNOT(A2))OR(3日后的T=8ANDNOT(A2))
M6赋值:T=6ANDREFX(T=7ANDNOT(A2),1)OR(2日后的T=8ANDNOT(A2))
M7赋值:T=7ANDREFX(T=8ANDNOT(A2),1)
N0赋值:T=1ANDREF(T=0ANDA3,1)ANDA2
N1赋值:T=2ANDREF(N0,1)ANDA2
N2赋值:T=3ANDREF(N1,1)ANDA2
N3赋值:T=4ANDREF(N2,1)ANDA2
N4赋值:T=5ANDREF(N3,1)ANDA2
N5赋值:T=6ANDREF(N4,1)ANDA2
N6赋值:T=7ANDREF(N5,1)ANDA2
N7赋值:T=8ANDREF(N6,1)ANDA2
WZD赋值:最低价*0.985
WZG赋值:最高价*1.011
当满足条件T=0ANDNOT(M0)时,在WZD位置书写文字,画绿色
当满足条件N0ANDNOT(M1)时,在WZD位置书写文字,画绿色
当满足条件N1ANDNOT(M2)时,在WZD位置书写文字,画绿色
当满足条件N2ANDNOT(M3)时,在WZD位置书写文字,画绿色
当满足条件N3ANDNOT(M4)时,在WZD位置书写文字,画绿色
当满足条件N4ANDNOT(M5)时,在WZD位置书写文字,画绿色
当满足条件N5ANDNOT(M6)时,在WZD位置书写文字,画绿色
当满足条件N6ANDNOT(M7)时,在WZD位置书写文字,画绿色
当满足条件N7时,在WZG位置书写文字,线宽为9,画洋红色,
B1赋值:收盘价<
=4日前的收盘价
B2赋值:收盘价>
4日前的收盘价
B3赋值:收盘价>
4日前的收盘价ANDREF(B1,1)
T1赋值:上次B3距今天数,NODRAW
M8赋值:(T1=0ANDREFX(T1=1ANDNOT(B2),1))OR(2日后的T1=2ANDNOT(B2))OR(3日后的T1=3ANDNOT(B2))OR(4日后的T1=4ANDNOT(B2))OR(5日后的T1=5ANDNOT(B2))OR(6日后的T1=6ANDNOT(B2))OR(7日后的T1=7ANDNOT(B2))OR(8日后的T1=8ANDNOT(B2))
M9赋值:T1=1ANDREFX(T1=2ANDNOT(B2),1)OR(2日后的T1=3ANDNOT(B2))OR(3日后的T1=4ANDNOT(B2))OR(4日后的T1=5ANDNOT(B2))OR(5日后的T1=6ANDNOT(B2))OR(6日后的T1=7ANDNOT(B2))OR(7日后的T1=8ANDNOT(B2))
M10赋值:T1=2ANDREFX(T1=3ANDNOT(B2),1)OR(2日后的T1=4ANDNOT(B2))OR(3日后的T1=5ANDNOT(B2))OR(4日后的T1=6ANDNOT(B2))OR(5日后的T1=7ANDNOT(B2))OR(6日后的T1=8ANDNOT(B2))
M11赋值:T1=3ANDREFX(T1=4ANDNOT(B2),1)OR(2日后的T1=5ANDNOT(B2))OR(3日后的T1=6ANDNOT(B2))OR(4日后的T1=7ANDNOT(B2))OR(5日后的T1=8ANDNOT(B2))
M12赋值:T1=4ANDREFX(T1=5ANDNOT(B2),1)OR(2日后的T1=6ANDNOT(B2))OR(7日后的T1=7ANDNOT(B2))OR(4日后的T1=8ANDNOT(B2))
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)