通达信BS买卖点主图指标通达信指标公式源码

合集下载

通达信bs指标

通达信bs指标

通达信的BS点指标主要通过对股票价格的波动进行分析,判断股票的买卖点位。

其核心思想是“买在低位,卖在高位”。

BS点指标的计算方法比较简单,主要是通过计算股票价格的最高价、最低价和收盘价来确定BS点。

具体计算公式为:BS点=(最高价+最低价+收盘价)/3。

此外,在通达信软件中,SLOPE函数可以用于计算线性回归斜率。

使用方法为SLOPE(X,N),其中X代表变量,N代表支持变量的数量。

例如,最近5个周期的收盘价为10、12、11、9、12,则可以计算如下:先计算x、y的平均值,x的平均值=(1+2+3+4+5)/5=3,y的平均值=(10+12+11+9+12)/5=10.8;分子:(1-3)(10-10.8)+(2-3)(12-10.8)+(3-3)(12-10.8)+(4-3)(9-10.8)+(5-3)(12-10.8)=1,分母:(1-3)(1-3)+(2-3)(2-3)+(3-3)(3-3)+(4-3)(4-3)+(5-3)(5-3)=10,线性回归斜率:b=1/10=0.1。

请注意,以上只是对通达信BS指标的大致介绍,并不能作为投资决策的依据。

在进行投资决策时,请咨询专业金融专家并做好风险评估。

通达信指标公式源码 BS点主图指标

通达信指标公式源码 BS点主图指标

DA:(3*CLOSE+OPEN+LOW+HIGH)/6,POINTDOT;DB:(20*DA+19*REF(DA,1)+18*REF(DA,2)+17*REF(DA,3)+16*REF(DA,4)+15 *REF(DA,5)+14*REF(DA,6)+13*REF(DA,7)+12*REF(DA,8)+11*REF(DA,9)+10*REF(DA,10)+9*REF(DA,1 1)+8*REF(DA,12)+7*REF(DA,13)+6*REF(DA,14)+5*REF(DA,15)+4*REF(DA,16)+3*REF(DA,17 )+2*REF(DA,18)+REF(DA,20))/210,COLORYELLOW;DC:MA(DB,5),COLORRED;VAR1:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) -LLV(LOW,14))));VAR2:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) -LLV(LOW,14))));VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) -LLV(LOW,6))),34));DIR1:=ABS(CLOSE-REF(CLOSE,5));VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);ER1:=DIR1/VIR1;CS1:=ER1*(0.8-2/8)+2/8;CQ1:=CS1*CS1;DIR2:=ABS(CLOSE-REF(CLOSE,10));VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);ER2:=DIR2/VIR2;CS2:=ER2*(0.8-2/24)+2/24;CQ2:=CS2*CS2;STICKLINE(VAR2 < MA(VAR3,6),LOW,HIGH,0,1),COLORLIBLUE; STICKLINE(VAR2 > MA(VAR3,6),LOW,HIGH,0,1),COLORRED;STICKLINE(((OPEN>CLOSE)AND(VAR2<MA(VAR3,6))),(CLOSE-0.03),OPEN,3. 05,0),COLORGREEN;STICKLINE(((OPEN<CLOSE)AND(VAR2<MA(VAR3,6))),CLOSE,OPEN,3.05,1),C OLORGREEN;STICKLINE(((OPEN>CLOSE)AND(VAR2>MA(VAR3,6))),OPEN,(CLOSE-0.03),3. 05,0),COLORRED;STICKLINE(((OPEN<CLOSE)AND(VAR2>MA(VAR3,6))),OPEN,CLOSE,3.05,1),C OLORRED;DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW - (LOW*0.02)),7);DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH+(HIGH*0.02)),8); PT:=REF(H,1)-REF(L,1);CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;AH:=CDP+PT;AL:=CDP-PT;NH:=CDP*2-REF(L,1);NL:=CDP*2-REF(H,1);强:IF(AH>REF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;阻:IF(NH>强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORWHITE; M:=IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL);撑:IF(NL<M,CDP-(CDP-M)*0.618,NL)NODRAW;底:IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL)NODRAW;。

通达信公式主图bs智能提示买卖(主图 指标)

通达信公式主图bs智能提示买卖(主图 指标)

通达信公式主图bs智能提示买卖(主图指标)VAR1:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));VAR2:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) -LLV(LOW,14))));VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) -LLV(LOW,6))),34));DIR1:=ABS(CLOSE-REF(CLOSE,5));VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);ER1:=DIR1/VIR1;CS1:=ER1*(0.8-2/8)+2/8;CQ1:=CS1*CS1;DIR2:=ABS(CLOSE-REF(CLOSE,10));VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);ER2:=DIR2/VIR2;CS2:=ER2*(0.8-2/24)+2/24;CQ2:=CS2*CS2;STICKLINE(VAR2STICKLINE(VAR2 >MA(VAR3,6),LOW,HIGH,0,1),COLORRED;STICKLINE(((OPEN> CLOSE)AND(VAR2STICKLINE(((OPEN{ 股票指标超市}STICKLINE(((OPEN>CLOSE)AND(VAR2>MA(VAR3,6))),OP EN,(CLOSE-0.03),3.05,0),COLORRED;STICKLINE(((OPENMA(VAR3,6))),OP EN,CLOSE,3.05,1),COLORRED;DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW -(LOW*0.02)),7);DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIG H+(HIGH*0.02)),8);PT:=REF(H,1)-REF(L,1);CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;AH:=CDP+ PT;AL:=CDP-PT;NH:=CDP*2-REF(L,1);NL:=CDP*2-REF(H,1);强:IF(AH>REF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;阻:IF(NH>强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORBLUE;M:=IF(AL撑:IF(NL底:IF(ALK版1:=EMA(C,3),COLORWHITE;K版2:=EMA(C,5),COLORYELLOW;K版3:=EMA(C,7),COLORBROWN;K版4:=EMA(C,12),COLORLIGREEN;K版5:=EMA(C,20),COLORRED;SS:=CROSS(K版1,K版2) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018OR CROSS(K 版1,K版4) AND C>O AND C>REF(C,1) ANDC/REF(C,1)>=1.018OR CROSS(K版2,K版3) AND C>O ANDC>REF(C,1) AND C/REF(C,1)>=1.018OR CROSS(K版1,K版3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 AND CROSS(K版1,K版4);DRAWICON(SS,L-0.04,5);DD:=CROSS(K版2,K版3) AND C>O ANDC>REF(C,1) AND C/REF(C,1)>=1.018OR CROSS(K版2,K版5) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018ORCROSS(K版3,K版4) AND C>O AND C>REF(C,1) ANDC/REF(C,1)>=1.018OR CROSS(K版2,K版4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 AND CROSS(K版1,K版5);。

买卖强主图通达信指标公式源码

买卖强主图通达信指标公式源码

此指标在出现'★'时买进后再等到出现“卖”时卖出必有丰厚的回报;黄柱出现时买进一路持有至绿柱时卖出,不要理会一时的得失,做足波段。

N:=20;N1:=7;N2:=69;T1:=IF((DATE<=1341231),1,0);M3:=EMA(CLOSE,3);M8:EMA(CLOSE,8),COLOR008000;M13:EMA(M8,13),COLOR0000FF;M62:EMA(M8,55),COLORF0F000;VAR1:=EMA(M13,62);M81:EMA(M62,81),COLOR00FFFF;M144:EMA(VAR1,144),LINETHICK2,COLOR0000FF;M250:EMA(VAR1,250),POINTDOT,LINETHICK2,COLORF00FF0;VAR2:=(CLOSE+HIGH+LOW)/(3);VAR3:=(EMA(VAR2,10))*(T1);VAR4:=(REF(VAR3,1))*(T1);STICKLINE((VAR3>VAR4),VAR3,VAR4,4,0),COLOR00FFFF;STICKLINE((VAR3<VAR4),VAR3,VAR4,4,0),COLORFF0000;VAR5:=((REF(HIGH,1)+REF(LOW,1))/(2))*(T1);VAR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)))*(T1);DRAWTEXT(CROSS(VAR3,VAR4),(VAR3)*(0.98),'★'),COLOR00FFFF;DRAWTEXT(CROSS(VAR5,VAR6),(HIGH)*(1.04),'↓卖'),COLOR008000;VAR7:=REF(CLOSE,1);VAR8:=((SMA(MAX(CLOSE-VAR7,0),N1,1))/(SMA(ABS(CLOSE-VAR7),N1,1)))*(100); VAR9:=CROSS(N2,VAR8);VARA:=(FILTER(VAR9,4))*(T1);DRAWTEXT(VARA,(HIGH)*(1.04),'↓卖'),COLORFFFFFF;VARB:=((2)*(CLOSE)+HIGH+LOW)/(4);VARC:=LLV(LOW,34);VARD:=HHV(HIGH,34);VARE:=(EMA(((VARB-VAR1)/(VAR5-VAR1))*(100),7))*(T1);VARF:=(EMA((0.667)*(REF(VARE,1))+(0.333)*(VARE),5))*(T1);DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),8))/(8)>0.6) AND (VOL>=(1.5)*(MA(VOL,5))) AND COUNT((VARE>=VARF),3) AND (REF(LOW,1)=LLV(LOW,120)),1,0),LOW,'●买进'),COLORFF00FF;DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),13))/(13)>0.6) AND COUNT((VARE>VARF),6) AND (REF(LOW,5)=LLV(LOW,120)) AND REF((CLOSE>=OPEN),4) AND REF((CLOSE>OPEN),3) AND REF((CLOSE>OPEN),2) AND REF((OPEN>CLOSE),1) AND (OPEN>REF(CLOSE,1)),1,0),LOW,'●买进'),COLOR00FFFF;VAR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3))*(T1);DRAWTEXT(IF((CLOSE<VAR10) AND ((VOL)/(240)>(MA(VOL,5))/(240)) AND (CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSE<(MA(CLOSE,13))*(1.3)),1,0),LOW,'●抄底'),COLOR0000FF;。

通达信指标公式源码精确买卖点指标

通达信指标公式源码精确买卖点指标

NN:=120;主买:=CONST("FSKY.主买#DAY"),NODRAW;前量:=CONST("FSKY.前量#DAY");前主:=CONST("FSKY.前主#DAY");昨量:=CONST("FSKY.昨量#DAY"),NODRAW;昨主:=CONST("FSKY.昨主#DAY");今量:=CONST("FSKY.今量#DAY"),NODRAW;前4:=CONST("FSKY.前4#DAY");主4:=CONST("FSKY.主4#DAY");前5:=CONST("FSKY.前5#DAY");主5:=CONST("FSKY.主5#DAY");CMM:=MAX(前5,前4),NODRAW;BMM1:=MAX(前量,昨量),NODRAW;BMM:=MAX(CMM,BMM1),NODRAW;AMM:=IF(今量/BMM>2,今量,BMM),NODRAW;MM:=CONST(500/AMM),NODRAW;DRAWGBK(C>0,RGB(0,150,150),RGB(0,00,100),0,' ',0);AAAX:=(3*C+H+L+O)/6;中长:IF(C,(8*AAAX+7*REF(AAAX,1)+6*REF(AAAX,2)+5*REF(AAAX,3)+4*REF(AAAX,4)+3*REF(AAAX,5)+2*REF(AAAX,6)+REF(AAAX,8))/36,DRAWNULL),COLOR00FF00; IF(中长> REF(中长,1),中长,DRAWNULL),COLORMAGENTA,LINETHICK2;MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;辰星线:=(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF(YTSL,4)+15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7)+12*REF(YTSL,8)+11*REF(YTSL,9)+10*REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTSL,12)+7*REF(YTSL,13)+6*REF(YTSL,14)+5*REF(YTSL,15)+4*REF(YTSL,16)+3*REF(YTSL,17)+2*REF(YTSL,18)+REF(YTSL,20))/211;等待:=IF(MA3>辰星线,辰星线,MA3);IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK2,COLOR00FFFF;IF(辰星线>REF(辰星线,1),辰星线,DRAWNULL),LINETHICK2,COLOR0000FF;IF(辰星线<REF(辰星线,1),辰星线,DRAWNULL),COLOR00FF00,LINETHICK1;EE:LLV(LOW,18),COLORFFFFFF;DRAWKLINE(H,O,L,C);最高:=CONST(HHV(H,NN));最低:=CONST(LLV(L,NN));RCC:=最高*0.9-(最高-最低);RCC1:=最高-(最高-最低)/2;RHL:=RCC;TT:=IF(ISLASTBAR,240/FROMOPEN,1);HH:=HHV(V*TT,NN);LL:=LLV(V,NN);V最高:=CONST(HH);V最低:=CONST(LL);V最高2:=CONST(HHV(H,NN));V最低2:=CONST(LLV(L,NN));P:=(V最高-V最低)/(V最高2-V最低2)*1.5,NODRAW;比:=TT;WJ:=(H+L+C)/3;V1:=IF(H=L,1,H-MAX(O,C));V2:=IF(H=L,1,MAX(C,O)-WJ);V3:=IF(H=L,1,MIN(O,C)-L);V4:=IF(H=L,1,WJ-MIN(C,O));V5:=VOL/IF(H=L,4,H-L);V6:=(V1*V5);V7:=(V2*V5);V8:=(V3*V5);V9:=(V4*V5);买盘1:=DYNAINFO(23)*比;卖盘1:=DYNAINFO(22)*比;买盘2:=IF(ISLASTBAR AND C>300,(V9+V8)*TT,(V9+V8));卖盘2:=IF(ISLASTBAR AND C>300,(V6+V7)*TT,(V6+V7));买盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,买盘1,买盘2);卖盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,卖盘1,卖盘2);买卖差:=买盘-卖盘;STICKLINE(C>=O,RCC,(买盘+卖盘)/P+RCC,2.8,1),COLORRED;STICKLINE(C<O,RCC,(买盘+卖盘)/P+RCC,2.8,1),COLORFFFF00;STICKLINE(买卖差>=0,RCC,买盘/P+RCC,2.5,0),COLORRED;STICKLINE(买卖差>=0 AND C>=MA(C,30),RCC,买盘/P+RCC,3.0,0),COLORRED; STICKLINE(买卖差>=0,RCC,卖盘/P+RCC,1.1,0),COLOR998800;STICKLINE(买卖差>=0 AND C>=MA(C,30),RCC,卖盘/P+RCC,1.5,0),COLORDDCC00; STICKLINE(买卖差<0,RCC,买盘/P+RCC,2.5,0),COLORRED;STICKLINE(买卖差<0 AND C>=MA(C,30),RCC,买盘/P+RCC,3.0,0),COLORRED; STICKLINE(买卖差<0,RCC,卖盘/P+RCC,1.1,0),COLOR998800;STICKLINE(买卖差<0 AND C>=MA(C,30),RCC,卖盘/P+RCC,1.5,0),COLORDDCC00; S1:=IF(CODELIKE('300'),0,1);{创业板}S2:=IF(NAMELIKE('S'),0,1);S3:=IF(NAMELIKE('*'),0,1);{去掉停牌>=}S4:=DYNAINFO(17)>0;去掉:=S1 AND S2 AND S3 AND S4;MV3:=EMA(V,3);MV3角度:=ATAN((MV3/REF(MV3,1)-1)*100)*180/3.1416;MA3角度:=ATAN((MA3/REF(MA3,1)-1)*100)*180/3.1416;MV5:=EMA(V,5);MA5:=EMA(C,5);MV5角度:=ATAN((MV5/REF(MV5,1)-1)*100)*180/3.1416;MA5角度:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;MV10:=EMA(V,10);MA10:=EMA(C,10);MV10角度:=ATAN((MV10/REF(MV10,1)-1)*100)*180/3.1416;MA10角度:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;强弱度:=(MV3角度+MA3角度+MV5角度+MA5角度+MV10角度+MA10角度)/6,COLORFFFFFF; QBD:=CROSS(强弱度,50) AND COUNT(强弱度>50,7)<=3;启爆点:=IF(QBD AND COUNT(QBD,4)=1,50,0),COLOR00FFFF;半月相对价位:=(C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*10;半月相对价位M:=SMA(半月相对价位,3,2);半月相对价位MM:=SMA(半月相对价位M,10,6);K13:=MA(半月相对价位MM,3);福缘:=半月相对价位MM>=K13,COLORRED;启爆福缘:=启爆点AND 福缘;HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);AK:=EMA((DMP-DMM)*1,3)*100+50,COLORFFFFFF;AD:=EMA((MA(DMP,3)-MA(DMM,3))*1,3)*100+50,COLORFFFFFF;DRAWICON(CROSS(AK,AD) AND 启爆点AND 福缘,L*0.99 ,9);KP:=DYNAINFO(4);ZX:=DYNAINFO(7);A1:=IF(主买>=今量/2,255,255);A2:=IF(主买>=今量/2,0,0);A3:=IF(主买>=今量/2,0,255);DRAWRECTREL(0,160,MM*今量,190,RGB(0,250,250));DRAWRECTREL(0,160,MM*主买,190,RGB(A1,A2,A3));DRAWRECTREL(0,160,MM*ABS(主买-(今量-主买)),190,RGB(A3,255,00));ZO:=CONST("FSKY.ZO#DAY");ZC:=CONST("FSKY.ZC#DAY");A4:=IF(昨主>=昨量/2,255,255);A5:=IF(昨主>=昨量/2,0,0);A6:=IF(昨主>=昨量/2,0,255);DRAWRECTREL(0,120,MM*昨量,150,RGB(0,250,250));DRAWRECTREL(0,120,MM*昨主,150,RGB(A4,A5,A6));DRAWRECTREL(0,120,MM*ABS(昨主-(昨量-昨主)),150,RGB(A6,255,00));JO:=CONST("FSKY.JO#DAY");JC:=CONST("FSKY.JC#DAY");A7:=IF(前主>=前量/2,255,255);A8:=IF(前主>=前量/2,0,0);A9:=IF(前主>=前量/2,0,255);DRAWRECTREL(0,80,MM*前量,110,RGB(0,250,250));DRAWRECTREL(0,80,MM*前主,110,RGB(A7,A8,A9));DRAWRECTREL(0,80,MM*ABS(前主-(前量-前主)),110,RGB(A9,255,00));JO3:=CONST("FSKY.JO3#DAY");JC3:=CONST("FSKY.JC3#DAY");A10:=IF(主4>=前4/2,255,255);A11:=IF(主4>=前4/2,0,0);A12:=IF(主4>=前4/2,0,255);DRAWRECTREL(0,40,MM*前4,70,RGB(0,250,250));DRAWRECTREL(0,40,MM*主4,70,RGB(A10,A11,A12));DRAWRECTREL(0,40,MM*ABS(主4-(前4-主4)),70,RGB(A12,255,00));JO4:=CONST("FSKY.JO4#DAY");JC4:=CONST("FSKY.JC4#DAY");A13:=IF(主5>=前5/2,255,255);A14:=IF(主5>=前5/2,0,0);A15:=IF(主5>=前5/2,0,255);DRAWRECTREL(0,0,MM*前5,30,RGB(0,250,250));DRAWRECTREL(0,0,MM*主5,30,RGB(A13,A14,A15));DRAWRECTREL(0,0,MM*ABS(主5-(前5-主5)),30,RGB(A15,255,00));五纯%:=CONST(IF(1 ,"FSKY2.五纯%#DAY",DRAWNULL)),NODRAW;一纯%:=CONST(IF(1,"FSKY2.一纯%#DAY",DRAWNULL)),NODRAW;三纯%:=CONST(IF(1 ,"FSKY2.三纯%#DAY",DRAWNULL)),NODRAW;DRAWRECTREL(0,345,200,600,RGB(80,80,80));DRAWTEXT_FIX(五纯%>=0,0.0,1-0.65,0,STRCAT('五日纯量%: ',CON2STR(五纯%,2))),COLORFFFFFF;DRAWTEXT_FIX(五纯%<0,0.0,1-0.65,0,STRCAT('五日纯量%: ',CON2STR(五纯%,2))),COLORFFFF00;DRAWTEXT_FIX(三纯%>=0,0.0,1-0.56,0,STRCAT('三日纯量%: ',CON2STR(三纯%,2))),COLORFFFFFF;DRAWTEXT_FIX(三纯%<0,0.0,1-0.56,0,STRCAT('三日纯量%: ',CON2STR(三纯%,2))),COLORFFFF00;DRAWTEXT_FIX(一纯%>=0,0.0,1-0.48,0,STRCAT('当日纯量%: ',CON2STR(一纯%,2))),COLORFFFFFF;DRAWTEXT_FIX(一纯%<0,0.0,1-0.48,0,STRCAT('当日纯量%: ',CON2STR(一纯%,2))),COLORFFFF00;。

通达信布林买卖点主图公式源码

通达信布林买卖点主图公式源码

用这个做短线操作还是不错的,开盘在当天买入价上方开盘买入,盘中出现买入先观望,尾盘还有买入信号尾盘买入,开盘提示卖,主导动能指标绿色,开盘就卖,盘中出现卖出信号时,也要看主导动能,如果是绿色,就执行{买卖点}JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1);VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD);红色持股:VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;卖:=IF(红色持股,JRL,DRAWNULL);明卖价:=卖,COLORFF99FF,NODRAW;今卖价:REF(卖,1)COLOR0000FF,NODRAW;青色观望:VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:REF(明进场价,1),COLORYELLOW,NODRAW;买:VAR19,COLOR33AACC,NODRAW;品红卖:VAR1A,COLORFF99FF,NODRAW;急速超跌:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORFFFFFF,NODRAW;上市日期年:REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF;月:REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFF00FF;日:REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOR00FFFF;STICKLINE(ISLASTBAR AND (红色持股OR REF(红色持股,1)=1),今卖价,今卖价,30,1),COLOR0000FF;STICKLINE(ISLASTBAR AND (青色观望OR REF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;STICKLINE(C>=O,L,H,0,0),COLOR0000CC;STICKLINE(C<O,L,H,0,0),COLOR999900;STICKLINE(1,C,O,3.5,0),COLOR858500;STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5;STICKLINE(红色持股,CLOSE,O,2.8,0),COLOR000055;STICKLINE(红色持股,CLOSE,O,2,0),COLOR000088;STICKLINE(红色持股,CLOSE,O,1.5,0),COLOR0000AA;STICKLINE(红色持股,CLOSE,O,1,0),COLOR0000CC;STICKLINE(红色持股,CLOSE,O,0.5,0),COLOR0000EE;STICKLINE(青色观望,CLOSE,O,2.8,0),COLOR555500;STICKLINE(青色观望,CLOSE,O,2,0),COLOR888800;STICKLINE(青色观望,CLOSE,O,1.5,0),COLORAAAA00;STICKLINE(青色观望,CLOSE,O,1,0),COLORCCCC00;STICKLINE(青色观望,CLOSE,O,0.5,0),COLOREEEE00;CO:=(C-O);STICKLINE(急速超跌,O,C-CO/2,2.8,0),COLOR555555;STICKLINE(急速超跌,O,C-CO/2,2,0),COLOR888888;STICKLINE(急速超跌,O,C-CO/2,1.5,0),COLORAAAAAA;STICKLINE(急速超跌,O,C-CO/2,1,0),COLORCCCCCC;STICKLINE(急速超跌,O,C-CO/2,0.5,0),COLOREEEEEE;STICKLINE(买,O,O+CO/3,2.8,0),COLOR335555; STICKLINE(买,O,O+CO/3,2,0),COLOR338888; STICKLINE(买,O,O+CO/3,1.5,0),COLOR33AAAA; STICKLINE(买,O,O+CO/3,1,0),COLOR33CCCC; STICKLINE(买,O,O+CO/3,0,0),COLOR33EEEE; DRAWICON(买,REF(CLOSE,1),1),COLORYELLOW; DRAWTEXT(买,REF(CLOSE,1),' 买'),COLORYELLOW; STICKLINE(品红卖,O,O+CO/3,2.8,0),COLOR550055; STICKLINE(品红卖,O,O+CO/3,2,0),COLOR880088; STICKLINE(品红卖,O,O+CO/3,1.5,0),COLORAA00AA; STICKLINE(品红卖,O,O+CO/3,1,0),COLORCC00CC; STICKLINE(品红卖,O,O+CO/3,0.5,0),COLOREE00EE; DRAWICON(品红卖,REF(CLOSE,1)+0.1,2),COLORGREEN; DRAWTEXT(品红卖,REF(CLOSE,1)+0.1,' 卖'),COLORGREEN; {布林-M}{参数N: 2 250 20 }MID:=MA(C,N);VARTA:=POW((C-MID),2);VARTB:=MA(VARTA,N);VARTC:=SQRT(VARTB);UPPER:=MID+2*VARTC;LOWER:=MID-2*VARTC;BOLL:REF(MID,1),COLORWHITE;UB:REF(UPPER,1),COLORYELLOW;LB:REF(LOWER,1),COLORMAGENTA;。

买卖决策王主图指标通达信指标公式源码

买卖决策王主图指标通达信指标公式源码

目前经过试验,虽算不上是最好,但准确率已高达90%以上,欢迎大家使用,好指标望大家好好珍惜!M1:=5;M2:=20;M3:=60;M4:=120;财务数据:=1;BS:1,NODRAW;MA1:MA(CLOSE,M1)COLORWHITE,LINETHICK1;MA2:MA(CLOSE,M2)COLORYELLOW,LINETHICK1;MA3:MA(CLOSE,M3)COLORMAGENTA,LINETHICK2;MA4:MA(CLOSE,M4)COLORGREEN,LINETHICK2;CC:IF(CURRBARSCOUNT<18,CONST(REF(C,1)),DRAWNULL),COLORMAGENTA;止赢:1.05*CC,COLOR8000FF;止损:0.97*CC,COLOR00F000;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);支撑:REFDATE(V2,DATE),DOTLINE,LINETHICK1,COLORFF0080;阻力:REFDATE(V3,DATE),DOTLINE,LINETHICK1,COLOR676767;AAA:=CONST(HHV(H*0.5,90));AA:=(REF(CLOSE,1)+REF(CLOSE,2)+OPEN)/3;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.8,0.05,1,'今日保护价'),LINETHICK2,COLOR00FFFF;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.84,0.05,1,AA);DRAWTEXT_FIX(CURRBARSCOUNT=1,0.86,0.05,1,'元');PT:=REF(H,1)-REF(L,1);CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;AH:=CDP+PT;AL:=CDP-PT;NH:=CDP*2-REF(L,1);NL:=CDP*2-REF(H,1);强:IF(AH>REF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;阻:IF(NH>强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORBLUE;M:=IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL);撑:IF(NL<M,CDP-(CDP-M)*0.618,NL)NODRAW;底:IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL)NODRAW;总股本:=STRCAT(STRCAT('总股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'亿')*财务数据;流通盘:=STRCAT(STRCAT(' 流通盘: ',CON2STR(CAPITAL/1000000,2)),'亿')*财务数据;全流通:=STRCAT(' 全流通: ',CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2))*财务数据;市值:=STRCAT(STRCAT(' 流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'亿')*财务数据; 上市天数:=STRCAT(' 上市天数: ',CON2STR(FINANCE(42),0))*财务数据;股本市值:=STRCAT('股本市值: ',STRCAT(STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值),上市天数))*财务数据;市盈率:=STRCAT('市盈率: ',CON2STR(C/FINANCE(33),2))*财务数据;市销率:=STRCAT(' 市销率: ',CON2STR(C/(FINANCE(20)/FINANCE(1)),2))*财务数据;市净率:=STRCAT(' 市净率: ',CON2STR(C/FINANCE(34),2))*财务数据;净资收益率:=STRCAT(' 净资收益率: ',CON2STR(FINANCE(33)/FINANCE(34)*100,2))*财务数据;毛利率:=STRCAT(' 毛利率: ',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2))*财务数据;净利润率:=STRCAT(' 净利润率',CON2STR(FINANCE(30)/FINANCE(20)*100,2))*财务数据;主营利润率:=STRCAT(' 主营利润率',CON2STR(FINANCE(23)/FINANCE(20)*100,2))*财务数据;当前业绩:=STRCAT('当前业绩: ',STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(市盈率,市销率),市净率),净资收益率),毛利率),净利润率),主营利润率))*财务数据;X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;X3:=FINANCE(23)/FINANCE(10)*3.3;X4:=FINANCE(19)/FINANCE(15)*0.6;X5:=FINANCE(20)/FINANCE(15)*0.999;Z值:=X1+X2+X3+X4+X5;预警:=IF(Z值<1.2,'重警',IF(Z值>=1.2 AND Z值<2.6,'轻警','无警'))*财务数据;财务预警:=STRCAT('财务预警: ',STRCAT(预警,STRCAT('-Z值: ',CON2STR(Z值,3))))*财务数据;优质资产率:=STRCAT(' 优质资产率:',CON2STR((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19),2))*财务数据;现金负债比:=STRCAT(' 现金负债比: ',CON2STR(FINANCE(25)/FINANCE(15),3))*财务数据;财务系数:=STRCAT('风险系数: ',STRCAT(STRCAT(财务预警,优质资产率),现金负债比))*财务数据;DRAWTEXT_FIX(ISLASTBAR,0.00,0.12,0,股本市值),COLORGREEN;DRAWTEXT_FIX(ISLASTBAR,0.00,0.18,0,当前业绩),COLORGREEN;DRAWTEXT_FIX(ISLASTBAR,0.00,0.24,0,财务系数),COLORGREEN;DRAWTEXT_FIX(1,0.00,0,0,'所属地区:')COLOR00FFFF;DRAWTEXT_FIX(1,0.07,0,0,DYBLOCK)COLOR00FFFF;DRAWTEXT_FIX(1,0.00,0.06,0,'所属行业:')COLORFF00FF;DRAWTEXT_FIX(1,0.07,0.06,0,HYBLOCK)COLORFF00FF;今日保护价:(REF(C,2)+REF(C,1)+O)/3 ,COLORCC3299,NODRAW;顶点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORRED,DOTLINE;低点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORMAGENTA,DOTLINE; DRAWTEXT(ISLASTBAR,顶点,'顶点'),COLORRED;DRAWTEXT(ISLASTBAR,低点,'低点'),COLORMAGENTA;MA7:=MA(CLOSE,BS);转强:=(6*H+5*REF(H,1)+4*REF(H,2)+3*REF(H,3)+2*REF(H,4)+1*REF(H,5))/(6+5+4+3+ 2+1);转弱:=(6*L+5*REF(L,1)+4*REF(L,2)+3*REF(L,3)+2*REF(L,4)+1*REF(L,5))/(6+5+4+3+2 +1);BB2:=IF(C>REF(转强,1),1,IF(C<REF(转弱,1),-1,0));DD2:=BARSLAST(NOT(BB2=0));B:=IF(BB2=0,REF(BB2,DD2),BB2);中短:=IF(B=-1,MA(HIGH,6),MA(LOW,6));STICKLINE(MA7<中短,LOW,HIGH,0,1),COLORCYAN;STICKLINE(MA7>中短,LOW,HIGH,0,1),COLORRED;STICKLINE(((OPEN>CLOSE)AND(MA7<中短)),(CLOSE-0.003),OPEN,3.1,0),COLORLIBLUE; STICKLINE(((OPEN<CLOSE)AND(MA7<中短)),CLOSE,OPEN,3.1,1),COLORCYAN; STICKLINE(((OPEN>CLOSE)AND(MA7>中短)),OPEN,(CLOSE-0.003),3.1,0),COLORRED; STICKLINE(((OPEN<CLOSE)AND(MA7>中短)),OPEN,CLOSE,3.1,1),COLORRED;B点:CROSS(MA7,中短),COLORRED,NODRAW;持股:MA7>中短,COLORRED,NODRAW;DRAWICON(CROSS(MA7,中短),L,7);DRAWICON(CROSS(中短,MA7),H,8);超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0); 大宗进:=(超B)+(大B),NODRAW;大宗出:=(超S)+(大S),NODRAW;非大宗进:=(中B)+(小B),NODRAW;非大宗出:=(中S)+(小S),NODRAW;DAZHIV:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW;DRAWRECTREL(0,CONST(950-(ABS(大宗进)*250/DAZHIV))-20,30,950,IF(CONST(大宗进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(32,CONST(950-(ABS(大宗出)*250/DAZHIV))-20,62,950,IF(CONST(大宗出>0),RGB(23,125,255),RGB(255,0,0)));DRAWRECTREL(92,CONST(950-(ABS(非大宗进)*250/DAZHIV))-20,122,950,IF(CONST(非大宗进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(124,CONST(950-(ABS(非大宗出)*250/DAZHIV))-20,154,950,IF(CONST(非大宗出>0),RGB(23,125,255),RGB(255,0,0))); DRAWTEXT_FIX(CURRBARSCOUNT=1,0.015,1,0,'主力进出'),COLORMAGENTA; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.107,1,0,'散户进出'),COLORCYAN;。

简述“BS主图指标”买卖点分析(附源码)

简述“BS主图指标”买卖点分析(附源码)

简述“ BSfe 图指标”买卖点分析(附源码)BS 指标是一种买卖点指标,其中最主要的功能就是买卖点交易决策以及短线机会点的提示,投资者需要注意 的是 B 是买入信号, S 是卖出信号,具体的操作技巧通过股 票公式进行详细的讲解说明:BS 主图指标】Bs 指标的买卖点交易决策是,在出现黄色 K 线是买入大涨行情,具体的源码公式如下:JJ:=(CLOSE+HIGH+LOW)/3; E:=EMA(JJ,5); D:=REF(E,1); AA1:=AMOUNT/V; BB1:=LCC1:=(C-REF(C,1))/REF(C,1)*100>1.2; DD1:=L EE1:=VFF1:=BB1 AND CC1 AND DD1 AND EE1; DRAWTEXT(FF1,(L0W* 0.97),'・老鼠仓 '),COLOR4080FF;号, 信号, 侧重于抓取大波段的走势,投资者要注意把握其中的DRAWTEXT(CROSS(REF(ZIG(3,19),1),ZIG(3,19)),HIGH* 1.03,' J顶COLORYELLOW;DRAWTEXT(CROSS(ZIG(3,19),REF(ZIG(3,19),1)),LOW,'J底),COLORYELLOW;猎手之路:IF(MA(C,5)>REF(MA(C,5),1),MA(C,5),DRAWNULL)CO LORYELLOW,LINETHICK3;{预测当天最低价公式}A1:=REF(O,1);A2:=ABS((REF(C,1)-A1)/A1);A3:=ABS((REF(H,1)-A1)/A1);A4:=ABS((REF(L,1)-A1)/A1);B1:=ABS((A2+A3+A4)/3);B2:=O*B1;预测低一:=O-B2;预测高一:=O+B2;今日保护价:(REF(C,2)+REF(C,1)+O)/3 ,COLOR4O8OFF,NODRAW;开盘价1:=OPEN;开盘价2:=REF(OPEN,1);最高价1:=HIGH;最高价2:=REF(HIGH,1);最低价1:=LOW;最低价2:=REF(LOW,1);收盘价1:=CLOSE;收盘价2:=REF(CLOSE,1);AA:= 最高价2;BB:= 最低价2;CC:= 开盘价2;DD:= 收盘价2;EE:=(AA+BB+CC+2*DD)/5;AAA:=EE+(AA-BB);BBB:=2*EE-BB;CCC:=2*EE-AA;DDD:=EE-(AA-BB);上升突破价:=AAA;上升阻力价:=BBB;跌支撑价:=CCC;跌反转价:=DDD;EEE:=(EE+ 升突破价+上升阻力价+下跌支撑价+下跌反转价)/5;心理价:=EEE;FFF:=(EEE+ 开盘价1)/2;GGG:=( 预测低一+FFF)/2;预测低二:=GGG;{预测今日最高价公式}预测高二:=MA(REF(HIGH,1)/REF(CLOSE,2),27)*REF(CLOSE,1)DRAWTEXT_FIX(1,0.04,0.15,0,' 预测低:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.10,0.15,0,CONST( 预测低)),COLORYELLOW;DRAWTEXT_FIX(1,0.15,0.15,0,' 元'),COLORYELLOW,LINETHICK1;DRAWTEXT_FIX(1,0.04,0.20,0,' 预测高:'),COLORFFFFFF;DRAWNUMBER_FIX(1,0.10,0.20,0,CONST( 预测高)),COLORFFFFFF;DRAWTEXT_FIX(1,0.15,0.20,0,''),COLORFFFFFF,LINETHICK1;DRAWTEXT_FIX(1,0.18,0.15,0,' 预测低二:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.24,0.15,0,CONST( 预测低)),COLORYELLOW;DRAWTEXT_FIX(1,0.29,0.15,0,' 元 DRAWTEXT_FIX(1,0.29,0.10,0,' 元 '),COLOR8080FF,LINETHICK1;'),COLORYELLOW,LINETHICK1;DRAWTEXT_FIX(1,0.18,0.20,0,' 预测高二:'),COLORFFFFFF;DRAWNUMBER_FIX(1,0.24,0.20,0,CONST( 预测高 )),COLORFFFFFF;DRAWTEXT_FIX(1,0.29,0.20,0,' '),COLORFFFFFF,LINETHICK1;买回价 :=预测低二 *1.015; 卖出价 :=买回价 *(1.03);DRAWTEXT_FIX(1,0.04,0.10,0,'价:'),COLOR8080FF,LINETHICK1;DRAWNUMBER_FIX(1,0.10,0.10,0,CONST( 卖出价)),COLOR8080FF;DRAWTEXT_FIX(1,0.15,0.10,0,' 元 '),COLOR8080FF,LINETHICK1;DRAWTEXT_FIX(1,0.18,0.10,0,' 买回价:'),COLOR8080FF,LINETHICK1;DRAWNUMBER_FIX(1,0.24,0.10,0,CONST( 买回价)),COLOR8080FF;卖出DRAWTEXT_FIX(1,0.01,0.02,0,' ★★ '),COLO RRED;DRAWTEXT_FIX(1,O.12,O.O5,O,'T+O 参考操作'),COLORFFFFFF;DRAWTEXT_FIX(1,0.01,0.08,0,' '),COLOR0000FF;DRAWTEXT_FIX(1,0.01,0.12,0,' 思'),COLOROOOOFF;DRAWTEXT_FIX(1,0.01,0.16,0,' 后'),COLOROOOOFF;DRAWTEXT_FIX(1,0.01,0.20,0,' 行'),COLOROOOOFF;DRAWTEXT_FIX(1,0.32,0.08,0,' 谨'),COLOROOOOFF;DRAWTEXT_FIX(1,0.32,0.12,0,' 慎'),COLOROOOOFF;DRAWTEXT_FIX(1,0.32,0.16,0,' 操'),COLOROOOOFF;DRAWTEXT_FIX(1,0.32,0.20,0,' 作'),COLOROOOOFF;DRAWTEXT_FIX(1,0.01,0.24,0,'★'),COLORRED;总额:=AMOUNT;买:=IF(O=C AND(C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L));买%:=买/AMOUNTTOO;流入 :=AMOUNT* 买%/10000000000; DRAWTEXT_FIX (1,0.71,0.10,0,' 净流(亿):'),COLOR8080FF,COLORWHITE;流出:=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);画:=CONST (FINDHIGH ( 总额 10,0,190,1)); 换手率 1:=VOL/CAPITAL*100;换手率 3:=SUM (VOL/CAPITAL*100,3); 换手率 5:=SUM (VOL/CAPITAL*100,5); 换手率 10:=SUM (VOL/CAPITAL*100,10);总额 10:=SUM (AMOUNT,10); 流入 10:=SUM ( 流入,10); 流出 10:=SUM ( 流出 ,10);净流 10:=SUM ( 流入-流出,10);DRAWTEXT_FIX(1,0.71,0.15,0,' 换手率(%):'),COLOR8080FF,COLORWHITE;DRAWTEXT_FIX(1,0.78,0.05,0,'1'),COLOR8080FF,COLORWHITE;DRAWTEXT_FIX(1,0.83,0.05,0,'3'),COLOR8080FF,COLORWHITE;DRAWTEXT_FIX(1,0.88,0.05,0,'5'),COLOR8080FF,COLORWHITE;DRAWTEXT_FIX(1,0.93,0.05,0,'10'),COLOR8080FF,COLORWHITE;DRAWNUMBER_FIX(1,0.78,0.10,0,CONST((流))),COLORYELLOW;DRAWNUMBER_FIX(1,0.83,0.10,0,CONST(( 净流3))),COLORYELLOW;DRAWNUMBER_FIX(1,0.88,0.10,0,CONST(( 净流5))),COLORYELLOW;DRAWNUMBER_FIX(1,0.93,0.10,0,CONST(( 净流10))),COLORYELLOW;DRAWNUMBER_FIX(1,0.78,0.15,0,CONST(( 换手率1))),COLORYELLOW;DRAWNUMBER_FIX(1,0.83,0.15,0,CONST(( 换手率3))),COLORYELLOW;DRAWNUMBER_FIX(1,0.88,0.15,0,CONST(( 换手率CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1)); 5))),COLORYELLOW;DRAWNUMBER_FIX(1,0.93,0.15,0,CONST(( 10))),COLORYELLOW;JB1:=REF(C,2)/REF(C,3)>1.095 ANDREF(C,2)=REF(H,2) AND REF(C,2)/REF(O,2)>1.03;JB2:=REF(C,1)/REF(C,2)REF(O,2); JB3:=C/REF(C,1)>1.05 AND O JBX:=JB1 AND JB2 AND JB3; DRAWTEXT(JBX,(LOW* 0.97),' '),COLORYELLOW;{MACD}MA5:MA(C,5),COLORFFFFFF;MAPJ:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+M A(CLOSE,24))/4,COLORFFFF00;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA( V3:=(1+7/100)*(DMA(CLOSE,V1));换手率启动V5:=MA((LOW+HIGH+CLOSE)/3,5);撑:REFDATE(V2,DATE),D0TLINE,LINETHICK1,C0L0RL IRED;力:REFDATE(V3,DATE),D0TLINE,LINETHICK1,C0L0R GREEN;DRAWTEXT(ISLASTBAR, 阻力,'阻力'),COLORGREEN;DRAWTEXT(ISLASTBAR,支撑,'支撑'),COLORLIRED;顶点:IF(CURRBARSCOUNT低点:IF(CURRBARSCOUNTDRAWTEXT(ISLASTBAR, 顶点,'顶点'),COLORYELLOW;DRAWTEXT(ISLASTBAR, 低点,'底点'),COLORMAGENTA;VAR1:=(CLOSE>REF(CLOSE,1) ANDCLOSE>REF(CLOSE,2));VAR2:=(REF(VAR1,1) ANDCLOSE=REF(CLOSE,2));VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSEVAR4:=(REF(VAR3,1) ANDCLOSE=REF(CLOSE,2));VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1)AND CLOSEVAR6:=(REF(VAR5,1) ANDCLOSE=REF(CLOSE,2));VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1)AND CLOSEVAR8:=(REF(VAR7,1) ANDCLOSE=REF(CLOSE,2));VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1)AND CLOSEVARA:=(REF(VAR9,1) ANDCLOSE=REF(CLOSE,2));VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1)AND CLOSEVARC:=(REF(VARB,1) ANDCLOSE=REF(CLOSE,2));VARD:=(CLOSEVARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1)AND CLOSEVARF:=(REF(VARE,1) ANDCLOSE=REF(CLOSE,2));VAR10:=(REF(VARF,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSEVAR11:=(REF(VAR10,1) ANDCLOSE=REF(CLOSE,2));VAR12:=(REF(VAR11,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSEVAR13:=(REF(VAR12,1) ANDCLOSE=REF(CLOSE,2));VAR14:=(REF(VAR13,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSEVAR15:=(REF(VAR14,1) ANDCLOSE=REF(CLOSE,2));VAR16:=(REF(VAR15,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSEVAR17:=(REF(VAR16,1) ANDCLOSE=REF(CLOSE,2));VAR18:=(REF(VAR17,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSEVAR19:=((REF(VARD OR VARE OR VARF ORVAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 ORVAR15 OR VAR16 OR VAR17 OR VAR18,1)) ANDVAR1);VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 ORVARA OR VARB OR VARC,1)) AND VARD);DRAWICON(VAR1A,H,2);DRAWICON(VAR19,L,1);LOWER:MA(CLOSE,20)-1.2*STD(CLOSE,20),COLORRED,LINETHICK2;具体的走势形态,如图国农科技在日线中的走势形态,通过bs 指标的源码公式可以预测出当天的最高价以及最低价格,做买卖操作的参考点位,同时可以在标注的买卖点位进行分析。

简述“BS主图指标”买卖点分析(附源码)

简述“BS主图指标”买卖点分析(附源码)

简述“ BSfe 图指标”买卖点分析(附源码)BS 指标是一种买卖点指标,其中最主要的功能就是买卖点交易决策以及短线机会点的提示,投资者需要注意 的是 B 是买入信号, S 是卖出信号,具体的操作技巧通过股 票公式进行详细的讲解说明:BS 主图指标】Bs 指标的买卖点交易决策是,在出现黄色 K 线是买入大涨行情,具体的源码公式如下:JJ:=(CLOSE+HIGH+LOW)/3; E:=EMA(JJ,5); D:=REF(E,1); AA1:=AMOUNT/V; BB1:=LCC1:=(C-REF(C,1))/REF(C,1)*100>1.2; DD1:=L EE1:=VFF1:=BB1 AND CC1 AND DD1 AND EE1; DRAWTEXT(FF1,(L0W* 0.97),'・老鼠仓 '),COLOR4080FF;号, 信号, 侧重于抓取大波段的走势,投资者要注意把握其中的DRAWTEXT(CROSS(REF(ZIG(3,19),1),ZIG(3,19)),HIGH* 1.03,' J顶COLORYELLOW;DRAWTEXT(CROSS(ZIG(3,19),REF(ZIG(3,19),1)),LOW,'J底),COLORYELLOW;猎手之路:IF(MA(C,5)>REF(MA(C,5),1),MA(C,5),DRAWNULL)CO LORYELLOW,LINETHICK3;{预测当天最低价公式}A1:=REF(O,1);A2:=ABS((REF(C,1)-A1)/A1);A3:=ABS((REF(H,1)-A1)/A1);A4:=ABS((REF(L,1)-A1)/A1);B1:=ABS((A2+A3+A4)/3);B2:=O*B1;预测低一:=O-B2;预测高一:=O+B2;今日保护价:(REF(C,2)+REF(C,1)+O)/3 ,COLOR4O8OFF,NODRAW;开盘价1:=OPEN;开盘价2:=REF(OPEN,1);最高价1:=HIGH;最高价2:=REF(HIGH,1);最低价1:=LOW;最低价2:=REF(LOW,1);收盘价1:=CLOSE;收盘价2:=REF(CLOSE,1);AA:= 最高价2;BB:= 最低价2;CC:= 开盘价2;DD:= 收盘价2;EE:=(AA+BB+CC+2*DD)/5;AAA:=EE+(AA-BB);BBB:=2*EE-BB;CCC:=2*EE-AA;DDD:=EE-(AA-BB);上升突破价:=AAA;上升阻力价:=BBB;跌支撑价:=CCC;跌反转价:=DDD;EEE:=(EE+ 升突破价+上升阻力价+下跌支撑价+下跌反转价)/5;心理价:=EEE;FFF:=(EEE+ 开盘价1)/2;GGG:=( 预测低一+FFF)/2;预测低二:=GGG;{预测今日最高价公式}预测高二:=MA(REF(HIGH,1)/REF(CLOSE,2),27)*REF(CLOSE,1)DRAWTEXT_FIX(1,0.04,0.15,0,' 预测低:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.10,0.15,0,CONST( 预测低)),COLORYELLOW;DRAWTEXT_FIX(1,0.15,0.15,0,' 元'),COLORYELLOW,LINETHICK1;DRAWTEXT_FIX(1,0.04,0.20,0,' 预测高:'),COLORFFFFFF;DRAWNUMBER_FIX(1,0.10,0.20,0,CONST( 预测高)),COLORFFFFFF;DRAWTEXT_FIX(1,0.15,0.20,0,''),COLORFFFFFF,LINETHICK1;DRAWTEXT_FIX(1,0.18,0.15,0,' 预测低二:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.24,0.15,0,CONST( 预测低)),COLORYELLOW;DRAWTEXT_FIX(1,0.29,0.15,0,' 元 DRAWTEXT_FIX(1,0.29,0.10,0,' 元 '),COLOR8080FF,LINETHICK1;'),COLORYELLOW,LINETHICK1;DRAWTEXT_FIX(1,0.18,0.20,0,' 预测高二:'),COLORFFFFFF;DRAWNUMBER_FIX(1,0.24,0.20,0,CONST( 预测高 )),COLORFFFFFF;DRAWTEXT_FIX(1,0.29,0.20,0,' '),COLORFFFFFF,LINETHICK1;买回价 :=预测低二 *1.015; 卖出价 :=买回价 *(1.03);DRAWTEXT_FIX(1,0.04,0.10,0,'价:'),COLOR8080FF,LINETHICK1;DRAWNUMBER_FIX(1,0.10,0.10,0,CONST( 卖出价)),COLOR8080FF;DRAWTEXT_FIX(1,0.15,0.10,0,' 元 '),COLOR8080FF,LINETHICK1;DRAWTEXT_FIX(1,0.18,0.10,0,' 买回价:'),COLOR8080FF,LINETHICK1;DRAWNUMBER_FIX(1,0.24,0.10,0,CONST( 买回价)),COLOR8080FF;卖出DRAWTEXT_FIX(1,0.01,0.02,0,' ★★ '),COLO RRED;DRAWTEXT_FIX(1,O.12,O.O5,O,'T+O 参考操作'),COLORFFFFFF;DRAWTEXT_FIX(1,0.01,0.08,0,' '),COLOR0000FF;DRAWTEXT_FIX(1,0.01,0.12,0,' 思'),COLOROOOOFF;DRAWTEXT_FIX(1,0.01,0.16,0,' 后'),COLOROOOOFF;DRAWTEXT_FIX(1,0.01,0.20,0,' 行'),COLOROOOOFF;DRAWTEXT_FIX(1,0.32,0.08,0,' 谨'),COLOROOOOFF;DRAWTEXT_FIX(1,0.32,0.12,0,' 慎'),COLOROOOOFF;DRAWTEXT_FIX(1,0.32,0.16,0,' 操'),COLOROOOOFF;DRAWTEXT_FIX(1,0.32,0.20,0,' 作'),COLOROOOOFF;DRAWTEXT_FIX(1,0.01,0.24,0,'★'),COLORRED;总额:=AMOUNT;买:=IF(O=C AND(C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L));买%:=买/AMOUNTTOO;流入 :=AMOUNT* 买%/10000000000; DRAWTEXT_FIX (1,0.71,0.10,0,' 净流(亿):'),COLOR8080FF,COLORWHITE;流出:=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);画:=CONST (FINDHIGH ( 总额 10,0,190,1)); 换手率 1:=VOL/CAPITAL*100;换手率 3:=SUM (VOL/CAPITAL*100,3); 换手率 5:=SUM (VOL/CAPITAL*100,5); 换手率 10:=SUM (VOL/CAPITAL*100,10);总额 10:=SUM (AMOUNT,10); 流入 10:=SUM ( 流入,10); 流出 10:=SUM ( 流出 ,10);净流 10:=SUM ( 流入-流出,10);DRAWTEXT_FIX(1,0.71,0.15,0,' 换手率(%):'),COLOR8080FF,COLORWHITE;DRAWTEXT_FIX(1,0.78,0.05,0,'1'),COLOR8080FF,COLORWHITE;DRAWTEXT_FIX(1,0.83,0.05,0,'3'),COLOR8080FF,COLORWHITE;DRAWTEXT_FIX(1,0.88,0.05,0,'5'),COLOR8080FF,COLORWHITE;DRAWTEXT_FIX(1,0.93,0.05,0,'10'),COLOR8080FF,COLORWHITE;DRAWNUMBER_FIX(1,0.78,0.10,0,CONST((流))),COLORYELLOW;DRAWNUMBER_FIX(1,0.83,0.10,0,CONST(( 净流3))),COLORYELLOW;DRAWNUMBER_FIX(1,0.88,0.10,0,CONST(( 净流5))),COLORYELLOW;DRAWNUMBER_FIX(1,0.93,0.10,0,CONST(( 净流10))),COLORYELLOW;DRAWNUMBER_FIX(1,0.78,0.15,0,CONST(( 换手率1))),COLORYELLOW;DRAWNUMBER_FIX(1,0.83,0.15,0,CONST(( 换手率3))),COLORYELLOW;DRAWNUMBER_FIX(1,0.88,0.15,0,CONST(( 换手率CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1)); 5))),COLORYELLOW;DRAWNUMBER_FIX(1,0.93,0.15,0,CONST(( 10))),COLORYELLOW;JB1:=REF(C,2)/REF(C,3)>1.095 ANDREF(C,2)=REF(H,2) AND REF(C,2)/REF(O,2)>1.03;JB2:=REF(C,1)/REF(C,2)REF(O,2); JB3:=C/REF(C,1)>1.05 AND O JBX:=JB1 AND JB2 AND JB3; DRAWTEXT(JBX,(LOW* 0.97),' '),COLORYELLOW;{MACD}MA5:MA(C,5),COLORFFFFFF;MAPJ:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+M A(CLOSE,24))/4,COLORFFFF00;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA( V3:=(1+7/100)*(DMA(CLOSE,V1));换手率启动V5:=MA((LOW+HIGH+CLOSE)/3,5);撑:REFDATE(V2,DATE),D0TLINE,LINETHICK1,C0L0RL IRED;力:REFDATE(V3,DATE),D0TLINE,LINETHICK1,C0L0R GREEN;DRAWTEXT(ISLASTBAR, 阻力,'阻力'),COLORGREEN;DRAWTEXT(ISLASTBAR,支撑,'支撑'),COLORLIRED;顶点:IF(CURRBARSCOUNT低点:IF(CURRBARSCOUNTDRAWTEXT(ISLASTBAR, 顶点,'顶点'),COLORYELLOW;DRAWTEXT(ISLASTBAR, 低点,'底点'),COLORMAGENTA;VAR1:=(CLOSE>REF(CLOSE,1) ANDCLOSE>REF(CLOSE,2));VAR2:=(REF(VAR1,1) ANDCLOSE=REF(CLOSE,2));VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSEVAR4:=(REF(VAR3,1) ANDCLOSE=REF(CLOSE,2));VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1)AND CLOSEVAR6:=(REF(VAR5,1) ANDCLOSE=REF(CLOSE,2));VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1)AND CLOSEVAR8:=(REF(VAR7,1) ANDCLOSE=REF(CLOSE,2));VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1)AND CLOSEVARA:=(REF(VAR9,1) ANDCLOSE=REF(CLOSE,2));VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1)AND CLOSEVARC:=(REF(VARB,1) ANDCLOSE=REF(CLOSE,2));VARD:=(CLOSEVARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1)AND CLOSEVARF:=(REF(VARE,1) ANDCLOSE=REF(CLOSE,2));VAR10:=(REF(VARF,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSEVAR11:=(REF(VAR10,1) ANDCLOSE=REF(CLOSE,2));VAR12:=(REF(VAR11,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSEVAR13:=(REF(VAR12,1) ANDCLOSE=REF(CLOSE,2));VAR14:=(REF(VAR13,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSEVAR15:=(REF(VAR14,1) ANDCLOSE=REF(CLOSE,2));VAR16:=(REF(VAR15,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSEVAR17:=(REF(VAR16,1) ANDCLOSE=REF(CLOSE,2));VAR18:=(REF(VAR17,1) ANDCLOSE>=REF(CLOSE,1) AND CLOSEVAR19:=((REF(VARD OR VARE OR VARF ORVAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 ORVAR15 OR VAR16 OR VAR17 OR VAR18,1)) ANDVAR1);VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 ORVARA OR VARB OR VARC,1)) AND VARD);DRAWICON(VAR1A,H,2);DRAWICON(VAR19,L,1);LOWER:MA(CLOSE,20)-1.2*STD(CLOSE,20),COLORRED,LINETHICK2;具体的走势形态,如图国农科技在日线中的走势形态,通过bs 指标的源码公式可以预测出当天的最高价以及最低价格,做买卖操作的参考点位,同时可以在标注的买卖点位进行分析。

通达信指标公式源码 精准买卖点主图指标

通达信指标公式源码 精准买卖点主图指标

高J:IF(CURRBARSCOUNT<=20,REFDATE(HHV(H,30),DATE),DRAWNULL),COLO RWHITE,DOTLINE;低J:IF(CURRBARSCOUNT<=20,REFDATE(LLV(L,30),DATE),DRAWNULL),COLOR WHITE;分割点1:IF(CURRBARSCOUNT<=10,高J-(高J-低J)*0.382,DRAWNULL),COLORWHITE,DOTLINE;分割点2:IF(CURRBARSCOUNT<=10,高J-(高J-低J)*0.618,DRAWNULL),COLORWHITE,DOTLINE;P1:=IF(BARSLAST(CURRBARSCOUNT=2),1,0);DRAWTEXT(P1,分割点1,' 0.382'),COLORYELLOW;DRAWTEXT(P1,分割点2,' 0.618'),COLORYELLOW;DRAWTEXT(P1,低J,' XO'),COLORYELLOW;G:=YEAR AND MONTH AND DAY;G1:=STRCAT(CON2STR(YEAR,0),'年');G2:=STRCAT(CON2STR(MONTH,0),'月');G3:=STRCAT(CON2STR(DAY,0),'日');G4:=STRCAT(' 【',IF(WEEKDAY=1,'星期一',IF(WEEKDAY=2,'星期二',IF(WEEKDAY=3,'星期三',IF(WEEKDAY=4,'星期四',IF(WEEKDAY=5,'星期五',IF(WEEKDAY=6,'星期六','星期日')))))));GA:=STRCAT(STRCAT(STRCAT(G1,G2),STRCAT(G3,G4)),' 】');日期:DRAWTEXT_FIX(G,0.04,0.03,0,GA)COLORGREEN;TRR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1 )-LOW));ATRR:=MA(TRR1,13);VARR1:=REF(CLOSE,1)-REF(ATRR,1);LSX:HHV(VARR1,13),LINETHICK2,COLORWHITE;LSX1:IF(C>=LSX,LSX,DRAWNULL),COLORRED,DOTLINE,LINETHICK2;VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB ORVARC,CLOSE,REF(CLOSE,1),2,1),COLORRED;VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 ORVAR18,CLOSE,REF(CLOSE,1),2,0),COLORFFCC66;VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,1),COLORYELLOW;VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2,1.8),COLOR00FF00; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2.6,0),COLOR00FFFF; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR00C8FF; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR10ECFF; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.6,0),COLOR00D900; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR93FFD1; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR93FF22; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR24FF22;基础值:=IF(C<REF(C,1) AND REF(C,1)<REF(C,2) AND L<REF(L,1) ANDL>REF(L,2),REF(C,2),IF(C>REF(C,1),C,REF(C,1)));TOWER:=IF(VAR1A,REF(基础值,1),基础值);DRAWICON(VAR19=1,L*1.005,13);DRAWICON(VAR1A=1,H*1.01,39);DRAWNUMBER(VAR19,L*0.995,TOWER),COLORFFFFFF; DRAWNUMBER(VAR1A,H*1.01,TOWER),COLORGREEN;。

通达信指标公式源码 主图点位指标 主图 源码

通达信指标公式源码 主图点位指标 主图 源码

局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0);局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选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=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0);预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0);高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0); 预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0);距前高天A:=BARSLAST(高保留=1);距前低天A:=BARSLAST(低保留=-1);预判X:=IF((距前低天A<4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 预判X=1 AND 大值周期>REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND 大值周期>REF(大值周期,距前高天A),1,0);高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判断,距前低天A)=1),1,0); 高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND H>REF(L,距前低天A+1),1,0);预判XA:=IF((距前高天A<4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND 小值周期>REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A) AND 小值周期>REF(小值周期,距前低天A),-1,0);低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)<REF(LLV(L,距前高天A+1),1),-1,0);低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L<REF(H,距前高天A+1),-1,0);距前高天YA:=BARSLAST(高保留X=1);距前低天YA:=BARSLAST(低保留X=-1);预判YX:=IF((距前低天YA<4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期>REF(小值周期,距前低天YA+1) AND 大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 OR HHV(缺口判断,距前低天YA)=1),1,0);高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) AND H>REF(L,距前低天YA+1),1,0);预判YXA:=IF((距前高天YA<4 AND HHV(缺口判断,距前高天YA)!=1) OR REF(高保留YXA,距前高天YA)=0,1,0);判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期>REF(大值周期,距前高天YA+1) AND 小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0);低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距前高天YA>=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L<REF(H,距前高天YA+1),-1,0); AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L<REF(L,REF(距前低天YA,1)+2),-1,0));极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);局部极点:IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)) CIRCLEDOT COLORYELLOW; {DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0)COLORLIRED; DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0)COLORYELLOW;}DD1:=BARSLAST(ABS(极点保留)!=1);DRAWTEXT(极点保留=1,局部极点,'*'),COLORGREEN;DRAWTEXT(极点保留=-1,局部极点,'*'),COLORRED;。

通达信BS买卖点主图指标通达信指标公式源码

通达信BS买卖点主图指标通达信指标公式源码

通达信BS买卖点主图指标自用的指标上面自己加了一条趋势线和走势匹配更加完美DRAWKLINE(H,O,L,C);MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;主力:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;IF(主力>=REF(主力,1),主力,DRAWNULL),COLORRED,LINETHICK2;IF(主力<=REF(主力,1),主力,DRAWNULL),COLORGREEN,LINETHICK2;VAR1:=IF(CLOSE/REF(CLOSE,1)>1.050 AND HIGH/CLOSE<1.010 ANDIF(CLOSE>REF(CLOSE,1),88,0)>0, 91, 0);STICKLINE(VAR1>90,L,L*0.92,0.1,0),COLORRED;DRAWTEXT(VAR1>90,LOW*0.92,'B'),COLORRED;买线:=EMA(CLOSE,2);卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);B11:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK4,COLORRED;S11:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK4,COLORGREEN; VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24) *100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;S2:=IF(VC>20 AND FILTER(VC<REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK4,COLORGREEN;A1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));B1:=REF(C,A1+1)> C AND REF("MACD.DIF",A1+1)<"MACD.DIF" ANDCROSS("MACD.DIF","MACD.DEA");DRAWTEXT(B1> 0,L-0.02,'M底'),COLOR00FFFF;A2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));B2:=REF(C,A2+1)> C AND REF("KDJ.K",A2+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D"); DRAWTEXT(B2,L-0.10,'K底'),COLORFF00FF;A3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));B3:=REF(C,A3+1)> C AND REF("RSI.RSI1",A3+1)<"RSI.RSI1" ANDCROSS("RSI.RSI1","RSI.RSI2");DRAWTEXT(B3> 0,L-0.18,'R底'),COLOR0000FF;C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1));D1:=REF(C,C1+1)<C AND REF("MACD.DIF",C1+1)> "MACD.DIF" ANDCROSS("MACD.DEA","MACD.DIF");DRAWTEXT(D1> 0,H+0.16,'M顶'),COLOR00FF00;C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));D2:=REF(C,C2+1)<C AND REF("KDJ.K",C2+1)> "KDJ.K" AND CROSS("KDJ.D","KDJ.K"); DRAWTEXT(D2> 0,H+0.08,'K顶'),COLORFFFFCC;C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));D3:=REF(C,C3+1)<C AND REF("RSI.RSI1",C3+1)> "RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1");DRAWTEXT(D3> 0,H+0.04,'R顶'),COLORFF9900;。

通达信买卖阶梯主图指标公式

通达信买卖阶梯主图指标公式

通达信买卖阶梯主图指标公式指标源码正文LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);买卖阶梯:MA(CLOSE,10000);STICKLINE((MA15 > REF(MA15,1)),MA15,MA15,5,6),LINETHICK2,COLOR0000FF;STICKLINE((MA15 < REF(MA15,1)),MA15,MA15,5,6),LINETHICK2,COLORFF0000;买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);BU:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);DRAWTEXT(CROSS(买线,卖线),(LOW * 0.99),'买'),COLOR00FFFF;DRAWTEXT(CROSS(卖线,买线),(HIGH * 1.02),'卖'),COLOR00FF00;STICKLINE(买线>=卖线,LOW,HIGH,1,0),COLORRED;STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),COLOR0000AA;STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),COLOR0000CC;STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),COLOR0000CC;STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),COLOR0000EE;STICKLINE(买线<卖线,CLOSE,OPEN,4,0),COLORAAAA00;STICKLINE(买线<卖线,CLOSE,OPEN,3,0),COLORBBBB00;STICKLINE(买线<卖线,CLOSE,OPEN,2,0),COLORCCCC00;STICKLINE(买线<卖线,CLOSE,OPEN,1,0),COLOREEEE00;STICKLINE(买线<卖线,LOW,HIGH,1,0),COLORFFFF00;STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,2,0),COLOR00FFFF;指导线: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLO SE,24))/4,2),LINETHICK1,COLORFFFFFF;界: MA(CLOSE,27),LINETHICK1,COLOR00FFFF;。

【股票指标公式下载】-【通达信】BS买卖(波段)

【股票指标公式下载】-【通达信】BS买卖(波段)
DRAWICON(CROSS(KB,KS),L-0.2,1);
DRAWICON(CROSS(KS,KB),H+0.2,2);
【通达信】BS买卖(波段)-指标公式效果图
下载次数: 0
2010-12-11 11:43
下载(65.59 KB)
2010-12-11 11:41
(文档来源:若水财经社区)
VAR13:=SMA(VAR12,3,1);
VAR14:=VAR13 AND VAR13<20;
LJB:=1/WINNER(CLOSE);
STICKLINE(LJB>10,L-0.45,L-0.4,-1,1),COLORYELLOW;
平均:=(L+H)/2;
KB:=ZIG(平均,10);
KS:=MA(KB,2);
DRAWICON(CROSS(SELL,BUY),H+0.1,8);
STICKLINE(BUY>SELL AND O>=C,C,O,-1,0),COLORRED;
STICKLINE(BUY>SELL AND O>=C,L,H,0,0),COLORRED;
STICKLINE(BUY<SELL AND O<=C,O,C,-1,1),COLORCYAN;
STICKLINE(BUY<SELL AND O<=C,O,L,0,1),COLORCYAN;
STICKLINE(BUY<SELL AND O<=C,C,H,0,1),COLORCYAN;
VAR11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR12:=SMA(VAR11,3,1);
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

通达信BS买卖点主图指标
自用的指标上面自己加了一条趋势线和走势匹配更加完美
DRAWKLINE(H,O,L,C);
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
主力:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+
16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+
13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+
10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+
7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+
4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;
IF(主力>=REF(主力,1),主力,DRAWNULL),COLORRED,LINETHICK2;
IF(主力<=REF(主力,1),主力,DRAWNULL),COLORGREEN,LINETHICK2;
VAR1:=IF(CLOSE/REF(CLOSE,1)>1.050 AND HIGH/CLOSE<1.010 AND
IF(CLOSE>REF(CLOSE,1),88,0)>0, 91, 0);
STICKLINE(VAR1>90,L,L*0.92,0.1,0),COLORRED;
DRAWTEXT(VAR1>90,LOW*0.92,'B'),COLORRED;
买线:=EMA(CLOSE,2);
卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
B11:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK4,COLORRED;
S11:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK4,COLORGREEN; VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24) *100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;
S2:=IF(VC>20 AND FILTER(VC<
REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK4,COLORGREEN;
A1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));
B1:=REF(C,A1+1)> C AND REF("MACD.DIF",A1+1)<"MACD.DIF" AND
CROSS("MACD.DIF","MACD.DEA");
DRAWTEXT(B1> 0,L-0.02,'M底'),COLOR00FFFF;
A2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));
B2:=REF(C,A2+1)> C AND REF("KDJ.K",A2+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D"); DRAWTEXT(B2,L-0.10,'K底'),COLORFF00FF;
A3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));
B3:=REF(C,A3+1)> C AND REF("RSI.RSI1",A3+1)<"RSI.RSI1" AND
CROSS("RSI.RSI1","RSI.RSI2");
DRAWTEXT(B3> 0,L-0.18,'R底'),COLOR0000FF;
C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1));
D1:=REF(C,C1+1)<C AND REF("MACD.DIF",C1+1)> "MACD.DIF" AND
CROSS("MACD.DEA","MACD.DIF");
DRAWTEXT(D1> 0,H+0.16,'M顶'),COLOR00FF00;
C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));
D2:=REF(C,C2+1)<C AND REF("KDJ.K",C2+1)> "KDJ.K" AND CROSS("KDJ.D","KDJ.K"); DRAWTEXT(D2> 0,H+0.08,'K顶'),COLORFFFFCC;
C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));
D3:=REF(C,C3+1)<C AND REF("RSI.RSI1",C3+1)> "RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1");
DRAWTEXT(D3> 0,H+0.04,'R顶'),COLORFF9900;。

相关文档
最新文档