买入点(通达信指标公式源码)

合集下载

通达信指标公式源码超准超准的买卖指标

通达信指标公式源码超准超准的买卖指标

通达信指标公式源码超准超准的买卖指标通达信是国内股市行情软件中比较常用的一个,其中包含了很多常用的指标,包括MACD、RSI、KDJ等等。

下面列举几个常用的指标的源码:1.MACD指标:其中包含了两个变量:参数快线天数和参数慢线天数。

```MA1:=(CLOSE-REF(CLOSE,参数快线天数))/(参数快线天数-1);DIF:=(CLOSE-REF(CLOSE,参数慢线天数))/(参数慢线天数-1);DEA:EMA(DIF,参数横坐标);MACD:(REF(DIF-DEA,1)*2));```2.RSI指标:参数N代表计算RSI的周期。

```LC:=REF(CLOSE,1);AA:=CLOSE-LC;AVG1:=SMA(IF(AA>0,AA,0),参数N,1);AVG2:=SMA(IF(AA<0,-AA,0),参数N,1);RSI:100-100/(1+AVG1/AVG2);```3.KDJ指标:参数N代表计算KDJ的周期,参数M1和参数M2分别代表K线的移动平均线的周期。

```LC:=REF(CLOSE,1);HD:=HHV(HIGH,参数N);LD:=LLV(LOW,参数N);RSV:=(CLOSE-LD)*100/(HD-LD);K:SMA(RSV,参数M1,1);D:SMA(K,参数M2,1);J:3*K-2*D;```以上是部分常用指标的源码,其中还有很多其他指标的源码未一一列举。

这些指标的使用可以帮助投资者进行技术分析,辅助股票的买卖决策。

但需要注意的是,指标仅仅是辅助工具,不能单独作为投资的决策依据,投资者在使用指标的同时,还需要结合其他的市场因素进行综合分析。

通达信指标公式源码准确买入点提示

通达信指标公式源码准确买入点提示

准确买入点提示DRAWGBK(CURRBARSCOUNT=1, RGB(110,108,108),RGB(88,30,0),0,'',0);MTR:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)), 13);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),13);DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),13);PDI:=DMP*100/MTR;MDI:=DMM*100/MTR;D:=PDI-22;K:=MDI-22;A:=D-K;STICKLINE(A>0 ,D,K,0,-1),COLORRED;STICKLINE(A<=0,K,D,0,-1),COLORCYAN;多:D,COLORWHITE,LINETHICK2;空:K,COLORYELLOW,LINETHICK2;ADX:EXPMEMA((PDI-MDI)/(MDI+PDI)*100,3),COLORMAGENTA,LINETHICK3; ADXR:EXPMEMA(ADX,5),COLORGREEN,LINETHICK2;趋势:EMA(ADX,13),DOTLINE,COLORGRAY;底部:0,LINETHICK2,COLORCYAN;VAR1:=(2*CLOSE+HIGH+LOW)/4;VAR2:=LLV(LOW,34);VAR3:=HHV(HIGH,34);XX:EMA((VAR1-VAR2)/(VAR3-VAR2)*100,13);YY:EMA(0.667*REF(XX,1)+0.333*XX,2) , ;STICKLINE(CROSS(XX,20) AND YY<XX,XX+19,XX-10,4,0),COLORRED;DRAWTEXT(CROSS(XX,20) AND YY<XX,XX-5,'百分之三!');STICKLINE(YY<XX,XX,YY,4,0),COLORRED;选股:IF(CROSS(XX,YY) AND XX<20 ,30,0);逃顶:IF(FILTER(CROSS(YY,XX) AND XX>80 ,3),60,90),COLORFF0000;A1:=IF((BARSCOUNT(C)>7),100*((MA(C,7))/(LLV(MA(C,7),7))-1),1);N:=IF(A>0.35,6,65);HSL:=VOL/CAPITAL*100;B:=((-((100)*(HHV(H,N)-C))/(HHV(HIGH,N)-LLV(L,N))));停板:=CROSS(B,-2);ZDF:=(C/REF(C,1)-1)*100;VAR11:=0-((100)*(HHV(HIGH,3)-CLOSE))/(HHV(HIGH,3)-LLV(LOW,3));涨停:=(VAR11=0) AND ((HHV(HIGH,3))/(LLV(LOW,3))>1+(15)/(100)) AND((HHV(HIGH,3))/(LLV(LOW,3))<1+25/100);STICKLINE(涨停OR ZDF>9.9,L-0.2,L-0.4,3,0),COLOR0000FF;STICKLINE(涨停OR ZDF>9.9,L-0.4,L-0.6,3,0),COLOR00FFFF;STICKLINE(停板AND HSL>4,L-0.4,L-0.6,3,0),COLOR00FFFF;DRAWTEXT(停板AND HSL>4,L-0.2,'【攻击】'),COLOR00EEFF; DRAWTEXT(涨停OR ZDF>9.9,L-0.4,'【涨停】'),COLOR00EE00;。

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

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

通达信布林买卖点主图公式源码用这个做短线操作还是不错的,开盘在当天买入价上方开盘买入,盘中出现买入先观望,尾盘还有买入信号尾盘买入,开盘提示卖,主导动能指标绿色,开盘就卖,盘中出现卖出信号时,也要看主导动能,如果是绿色,就执行{买卖点}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,2));<="" p=""> 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 ORVARC,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;< p="">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; </o,l,h,0,0),color999900;<>。

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

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

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;。

最精准的买点通达信指标公式源码

最精准的买点通达信指标公式源码

当出现黄柱的买点时可以关注AAA:=(3*C+H+L+O)/6;VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(A AA,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;短线:=VAR1,COLORMAGENTA,LINETHICK2;中线:=VAR6,COLORCYAN,LINETHICK2;长线:=EMA(((SLOPE(CLOSE,21) * 20) +CLOSE),42),LINETHICK2,NODRAW,COLORGREEN;{持股持币彩色K线}EMA2:=EMA(CLOSE,2);BBUY:=CROSS(EMA2,长线);SEL:=CROSS(长线,EMA2);STICKLINE((EMA2 >= 长线),LOW,HIGH,0.4,0),COLOR0000FF;STICKLINE((EMA2 >= 长线),CLOSE,OPEN,3,1),COLOR000077;STICKLINE((EMA2 >= 长线),CLOSE,OPEN,2.6,1),COLOR000099;STICKLINE((EMA2 >= 长线),CLOSE,OPEN,2,1),COLOR0000BB;STICKLINE((EMA2 >= 长线),CLOSE,OPEN,1.3,1),COLOR0000DD;STICKLINE((EMA2 >= 长线),CLOSE,OPEN,0.4,1),COLOR0000FF;STICKLINE((EMA2 < 长线),LOW,HIGH,0.4,0),COLORFFFF00;STICKLINE((EMA2 < 长线),CLOSE,OPEN,3,1),COLOR777700;STICKLINE((EMA2 < 长线),CLOSE,OPEN,2.6,1),COLOR999900;STICKLINE((EMA2 < 长线),CLOSE,OPEN,2,1),COLORBBBB00;STICKLINE((EMA2 < 长线),CLOSE,OPEN,1.3,1),COLORDDDD00;STICKLINE((EMA2 < 长线),CLOSE,OPEN,0.4,1),COLORFFFF00;STICKLINE((CROSS(EMA2,长线) OR CROSS(长线,EMA2)),OPEN,CLOSE,5,0),COLOR0055FF;STICKLINE((CROSS(EMA2,长线) OR CROSS(长线,EMA2)),OPEN,CLOSE,4.2,0),COLOR0077FF;STICKLINE((CROSS(EMA2,长线) OR CROSS(长线,EMA2)),OPEN,CLOSE,3,0),COLOR0099FF;STICKLINE((CROSS(EMA2,长线) OR CROSS(长线,EMA2)),OPEN,CLOSE,2.2,0),COLOR00BBFF;STICKLINE((CROSS(EMA2,长线) OR CROSS(长线,EMA2)),OPEN,CLOSE,1.5,0),COLOR00DDFF;STICKLINE((CROSS(EMA2,长线) OR CROSS(长线,EMA2)),OPEN,CLOSE,0.4,0),COLOR00FFFF;VAR3TD:=100-3*SMA((CLOSE-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*100,20,1)+ 2*SMA(SMA((CLOSE-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*100,20,1),15,1); VAR4TD:=100-3*SMA((OPEN-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*100,20,1),15,1); VAR2TD:=VAR3TD<REF(VAR4TD,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(VAR2TD AND COUNT(VAR2TD,30)=1,L,'大资金进场'),COLORFF00FF;VAR3AA:=IF((CLOSE>REF(CLOSE,1)),78,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);DRAWTEXT(FILTER((VAR4AA>90),45),(LOW),'★大胆搏'),COLOR00FFFF; DRAWTEXT(CROSS(EMA(((SLOPE(CLOSE,40)*20)+CLOSE),20),EMA(CLOSE,3)),(HIGH * 1.05),'卖'),LINETHICK3,COLORFFFFFF;。

潜伏买点通达信指标公式源码

潜伏买点通达信指标公式源码

A01:=DYNAINFO(7);A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));A07:=DMA(A06,(VOL / CAPITAL)) * 60;A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);VAR1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(S MA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);VAR2:=EMA(VAR1,8);VAR3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55) )/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势:=EMA(VAR3,3)-10;{FILLRGN(趋势,80,趋势>80);}DRAWICON(CROSS(趋势,0),-20,11);{FILLRGN(0,A09,(A09 > 0 AND (趋势<20 OR 趋势>REF(趋势,1)AND 趋势<50))),COLORFFFF00;}建仓区:0,LINETHICK0,COLORFFFF00;VAR4:=(趋势-REF(趋势,1))/REF(趋势,1)*100;{STICKLINE(趋势<=13,0,20,5,0),COLORCC9900;DRAWTEXT(FILTER(趋势<=13,15),30,'准备现金'),COLORCC9900;STICKLINE(趋势<=13 AND VAR4>13,0,50,5,0),COLOR0099FF;}VAR5:=FILTER((趋势<=13 AND VAR4>13),10);STICKLINE(趋势>=90 AND VAR4,0,30,3,0),COLORLIRED;VAR6:=FILTER((趋势>=90 AND VAR4),10);DRAWTEXT(VAR6,40,'清仓'),COLORGRAY;VAR7:=LLV(LOW,30);VAR8:=HHV(HIGH,30);VAR9:=EMA((CLOSE-VAR7)/(VAR8-VAR7)*4,4)*25;STICKLINE(VAR9>90,100,105,3,2),COLORRED;VAR10:=(VAR9-LLV(VAR9,4))/(HHV(VAR9,4)-LLV(VAR9,4))*100;DRAWICON(CROSS(90,VAR9),95,12);VAR11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;VAR12:=HHV(VAR11,30)*8;潜伏资金:EMA(IF(LOW<=VAR7 AND 趋势<40,(VAR11+VAR12),0),3)/618,COLORRED,LINETHICK1;STICKLINE(潜伏资金>0,0 ,潜伏资金*1.3,2.5,0 ),COLORRED;VAR13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;VAR14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;趋势线: 趋势,COLORWHITE,LINETHICK1;VAR16:=MAX(EMA(VAR13,2)-EMA(VAR14,5),0)*200;VAR17:=EMA(VAR16,5);市场资金:VAR17,STICK,COLORFF00FF,LINETHICK5;STICKLINE(VAR17<REF(VAR17,1),0,VAR17,1,0),COLORGREEN;VAR18:=MA(趋势线,8);IF(CROSS(VAR2,VAR18) AND VAR2<15,50,0),COLORRED;IF(趋势线>=REF(趋势线,1),趋势线,DRAWNULL),COLORRED,LINETHICK2;选股:VAR3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55)) /(HHV(H,55)-LLV(L,55))*100,5,1),3,1);QS:=EMA(VAR3,3)-10;CROSS(QS,0);。

通达信指标公式源码绝密买卖点指标

通达信指标公式源码绝密买卖点指标

{买卖密码}JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;R1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));R2:=(REF(R1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R3:=(REF(R2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R4:=(REF(R3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R5:=(REF(R4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R6:=(REF(R5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R7:=(REF(R6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R8:=(REF(R7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R9:=(REF(R8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); RA:=(REF(R9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); RB:=(REF(RA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); RC:=(REF(RB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); RD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));RE:=(REF(RD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); RF:=(REF(RE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R10:=(REF(RF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R11:=(REF(R10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R12:=(REF(R11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R13:=(REF(R12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R14:=(REF(R13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R15:=(REF(R14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));R16:=(REF(R15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));R17:=(REF(R16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));R18:=(REF(R17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));R19:=REF(RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15 OR R16 OR R17 OR R18,1) AND R1;R1A:=((REF(R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,1)) AND RD);VAR3:=IF(C<200 ,MA(COST(80),3),2500),NODRAW;VAR4:=(((HIGH + LOW) + CLOSE) / 3);VAR55:=EMA(((((OPEN + HIGH) + LOW) + CLOSE) / 4),2330);VAR66:=(VAR55 + ((VAR55 * 6) / 100));短买春:=R19,NODRAW,COLOR00DD00;秋离场:=R1A,NODRAW,COLOR2288EE;红持股:=R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,NODRAW,COLOR0000FF;急速超跌关注:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORBBBBBB,NODRAW;Q1:=CONST(IF(短买春,0,IF(秋离场,150,IF(红持股,150,IF(急速超跌关注,150,100))))),NODRAW; Q2:=CONST(IF(短买春,80,IF(秋离场,100,IF(红持股,0,IF(急速超跌关注,150,100))))),NODRAW;Q3:=CONST(IF(短买春,0,IF(秋离场,20,IF(红持股,70,IF(急速超跌关注,150,100))))),NODRAW;DD1:=EMA((O+H+L)/3,4)COLORWHITE,NODRAW;DD2:=EMA(C+(H-L)*0.618,3)COLORYELLOW,NODRAW;密码1:DD2+(DD2-DD1)*0.618,NODRAW,COLORWHITE;{明卖}密码2:EMA((O+H+L)/3,4)+((H+L)/2-REF((O+H+L)/3,3))/4,NODRAW;{明买}密码3:=MA(REF(密码1,1),1)*1,COLORLIMAGENTA,NODRAW;{今卖}密码4:=REF(密码2,1),COLORLIMAGENTA,NODRAW;{今买}密码5:=MA(REF(DD2,1),1)*1,COLORLIMAGENTA,NODRAW;{今卖}密码6:=REF(DD1,1),COLORLIMAGENTA,NODRAW;{今买}{黄金买点:=EMA((O+H+L)/3,4)COLORWHITE,NODRAW;黄金卖点:=EMA(C+(H-L)*0.618,3)COLORYELLOW,NODRAW;预测明日卖点:黄金卖点+(黄金卖点-黄金买点)*0.618,NODRAW,COLORWHITE;预测明日买点:EMA((O+H+L)/3,4)+((H+L)/2-REF((O+H+L)/3,3))/4,NODRAW;今卖:MA(REF(预测明日卖点,1),1)*1,COLORLIMAGENTA,NODRAW;今买:REF(预测明日买点,1),COLORLIMAGENTA,NODRAW;}换:IF(CAPITAL>0,V/CAPITAL*100,V),NODRAW;收:=FINANCE(33),NODRAW;流:FINANCE(7)/100000000,NODRAW;TT:=IF(ISLASTBAR,240/FROMOPEN,1);NN:=120;HH:=HHV(V*TT,NN);LL:=LLV(V,NN);最高:=CONST(HH);最低:=CONST(LL);RCC:=最高*0.9-(最高-最低)*0.5;RHL:=RCC;HLMAX:=最高;HLMIN:=最低;HLMN1:=(HLMAX+HLMIN)/2;HLMN2:=HLMAX-HLMIN;HLMN3:=(100-0)/2*1.3;HLMN4:=(100-0)/1*1.3;P:=最高/120;{顶底摸块}神:=2*SMA(V*((C+L)/2+(H+C)/2+L)/3,2,1)/SMA(V,2,1)-(3*HHV(SMA(V*((C+L)/2+(H+C)/2+L)/3,2,1)/ SMA(V,2,1),2)-2*SMA(V*((C+L)/2+(H+C)/2+L)/3,2,1)/SMA(V,2,1));奇:=(2*神+EMA((2*(C+L)/2+(H+C)/2+L+O)/5,2)+2*((EMA((C*2+H+L+O)/5,5)+MA((C*2+H+L+O)/5,13)+MA((C *2+H+L+O)/5,21))/3)+((EMA((C*2+H+L+O)/5,13)+MA((C*2+H+L+O)/5,21)+MA((C*2+H+L+O)/5,34))/3)+((EMA((C*2+H+L+O)/5,2 1)+MA((C*2+H+L+O)/5,34)+MA((C*2+H+L+O)/5,55))/3))/7;分清:=(FORCAST(HHV((C+L)/2,1),21)+(EMA(((C+L)/2+L+(H+C)/2)/3,55)-(C-EMA(((C+L)/2+L+(H+C)/2)/3, 55))))/2;放心买入:=(((C+L)/2+(H+C)/2+L)/3+(3*(C+H+L+(O+C+L)/3)/4-2*(C+L)/2))/2;强:=(EMA((分清+3*((EMA(放心买入,5)*5+分清)/6+((EMA(奇,5)+EMA(奇,8)+EMA(奇,13))/3))/2)/4,3)/3),POINTDOT,COLOR00FFFF;验证:=((((C+L)/2-LLV(L,24))/(HHV((H+C)/2,24)-LLV(L,24))*1.1*(C+L)/2));续持验证:=EMA((2*(5*((EMA((2*C+L)/3,2)-EMA((2*C+H)/3,5))-EMA((EMA((2*C+L)/3,2)-EMA((2*C+H)/3,5)),21)))+(((C*2+H)/3+(C*2+H)/3)/2)+EMA(验证,2))/4,2),COLOR555555;AR:=(2*(C+L)/2+REF((C+L)/2,1))/3;BR:=(7*(C+L)/2+6*REF((C+L)/2,1)+5*REF((C+L)/2,2)+4*REF((C+L)/2,3)+3*REF((C+L)/2,4)+2*REF((C+L)/2,5)+REF((C+L)/2,6))/28;VARA2:=LLV(MA(LOW,3),3);VARA3:=HHV(MA(HIGH,3),3);比:=TT;昨V:=REF(V,1);T:=IF(ISLASTBAR,IF(FROMOPEN>60,IF(FROMOPEN-INTPART(FROMOPEN/60)*60=0,1,60/(FROMOPEN-INTPART(FROMOPEN/60)*60)),60/FROMOPEN),1);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);DRAWBAND(最高,RGB(Q1,Q2,Q3),0,DRAWNULL);买卖差:=买盘-卖盘;STICKLINE(C>=O,0,买盘+卖盘,2.8,1),COLORRED;STICKLINE(C<O,0,买盘+卖盘,2.8,1),COLORFFFF00;STICKLINE(买卖差>=0,0,买盘,2.5,0),COLORRED;STICKLINE(买卖差>=0 AND C>=MA(C,30),0,买盘,3.0,0),COLORRED;STICKLINE(买卖差>=0,0,卖盘,1.1,0),COLOR998800;STICKLINE(买卖差>=0 AND C>=MA(C,30),0,卖盘,1.5,0),COLORDDCC00;STICKLINE(买卖差<0,0,买盘,2.5,0),COLORRED;STICKLINE(买卖差<0 AND C>=MA(C,30),0,买盘,3.0,0),COLORRED;STICKLINE(买卖差<0,0,卖盘,1.1,0),COLOR998800;STICKLINE(买卖差<0 AND C>=MA(C,30),0,卖盘,1.5,0),COLORDDCC00;A1:=REF(CLOSE,1);B1:=(买盘+卖盘)<MA(V,60)/3 ;{B1:=V<MA(V,60)/3 ;}B2:=MA(V,5)/2>V AND V>B1;STICKLINE(B1,0,卖盘,2,0),COLORYELLOW;((80-HLMN3)*HLMN2/HLMN4+HLMN1),COLORCCCCCC,LINETHICK1,DOTLINE;((50-HLMN3)*HLMN2/HLMN4+HLMN1),COLORCCCCCC,LINETHICK1,DOTLINE;((20-HLMN3)*HLMN2/HLMN4+HLMN1),COLORCCCCCC,LINETHICK1,DOTLINE;KA:=(EMA((CLOSE-VARA2)/(VARA3-VARA2)*100,4)-50)*0.5+50;DB:=EMA(0.667*REF(KA,1)+0.333*KA,2);JJ:=3*KA-2*DB;((KA-HLMN3)*HLMN2/HLMN4+HLMN1),COLORFFF111,LINETHICK1;((DB-HLMN3)*HLMN2/HLMN4+HLMN1),COLOR00FF00,LINETHICK1;((JJ-HLMN3)*HLMN2/HLMN4+HLMN1),COLORFF00FF,LINETHICK1;IF(续持验证<强,-5*P,DRAWNULL),CIRCLEDOT,COLORYELLOW,LINETHICK1;IF(续持验证>=强,-5*P,DRAWNULL),CIRCLEDOT,COLORRED,LINETHICK1;IF(续持验证>= REF(续持验证,1),-15*P,DRAWNULL),CIRCLEDOT,COLORRED,LINETHICK1; IF(续持验证< REF(续持验证,1),-15*P,DRAWNULL),CIRCLEDOT,COLORYELLOW,LINETHICK1; STICKLINE(1,HLMAX,HLMAX*0.96,3,0),COLORGREEN;红灯买:STICKLINE(密码1>密码3,HLMAX,HLMAX*0.96,3,0),COLORRED;STICKLINE(1,HLMAX*0.98,HLMAX*0.98,3,0),COLORWHITE;STICKLINE(1,HLMAX*0.93,HLMAX*0.89,3,0),COLORRED;绿灯卖:STICKLINE(密码2<=密码4,HLMAX*0.93,HLMAX*0.89,3,0),COLORGREEN; STICKLINE(1,HLMAX*0.91,HLMAX*0.91,3,0),COLORWHITE;操作段1:STICKLINE(密码1>(密码3) AND C>密码 2 OR 密码2>密码4,HLMAX*0.82,HLMAX*0.86,3,0),COLORRED;操作段2:STICKLINE(C>密码 2 AND 密码1>密码3,HLMAX*0.82,HLMAX*0.86,3,0),COLORMAGENTA;操作段3:STICKLINE(密码1<密码 3 AND 密码2>密码4,HLMAX*0.82,HLMAX*0.86,3,0),COLORYELLOW;STICKLINE(密码1>(密码3) AND C>密码2 OR 密码2>密码4 OR C>密码2 AND 密码1>密码3,HLMAX*0.84,HLMAX*0.84,3,0),COLORWHITE;。

通达信指标公式源码粘合买点指标

通达信指标公式源码粘合买点指标

{阳线上下影}STICKLINE(CLOSE>=OPEN,CLOSE,HIGH,0,0), COLORRED; STICKLINE(CLOSE>=OPEN,OPEN,LOW,0,0), COLORRED;{阴线上下影}STICKLINE(CLOSE<OPEN,OPEN,HIGH,0,0), COLOR00EC00; STICKLINE(CLOSE<OPEN,CLOSE,LOW,0,0), COLOR00EC00; {阳K线}STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,2.9.2,0),COLOR0000A1; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1.9.2,0),COLOR0000B5; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,0.9.8,0),COLOR0000C5; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,0.4,0),COLOR0000D4; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,0.2,0),COLOR0000FF; {阴K线}STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2.9.2,0),COLOR009000; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,1.9.2,0),COLOR00B400; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.9.8,0),COLOR00C100; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.4,0),COLOR00DB00; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.2,0),COLOR00EC00;自动C:=INDEXC;自动H:=INDEXH;自动L:=INDEXL;自动O:=INDEXO;大盘低:=CONST(LLV(自动L,叠加行指));大盘高:=CONST(HHV(自动H,叠加行指));大盘差:=大盘高-大盘低;当前低:=CONST(LLV(L,叠加行指));当前高:=CONST(HHV(H,叠加行指));当前差:=当前高-当前低;比:=当前差/大盘差;大盘:当前低+(自动C-大盘低)*比,NODRAW;变H:=当前低+(自动H-大盘低)*比;变L:=当前低+(自动L-大盘低)*比;变O:=当前低+(自动O-大盘低)*比;自动HYC:=HY_INDEXC;自动HYH:=HY_INDEXH;自动HYL:=HY_INDEXL;自动HYO:=HY_INDEXO;大盘低HY:=CONST(LLV(自动HYL,叠加行指));大盘高HY:=CONST(HHV(自动HYH,叠加行指));大盘差HY:=大盘高HY-大盘低HY;当前低HY:=CONST(LLV(L,叠加行指));当前高HY:=CONST(HHV(H,叠加行指));当前差HY:=当前高HY-当前低HY;比HY:=当前差HY/大盘差HY;行业:当前低HY+(自动HYC-大盘低HY)*比HY,NODRAW;变HYH:=当前低HY+(自动HYH-大盘低HY)*比HY;变HYL:=当前低HY+(自动HYL-大盘低HY)*比HY;变HYO:=当前低HY+(自动HYO-大盘低HY)*比HY;STICKLINE(CURRBARSCOUNT<=叠加行指,变H,变L,0,0),COLOR888888;STICKLINE(CURRBARSCOUNT<=叠加行指,变O,大盘,2,0),COLOR888888;STICKLINE(CURRBARSCOUNT<=叠加行指AND 大盘>=变O,变O,大盘,2,1),COLORAAAAAA; STICKLINE(CURRBARSCOUNT<=叠加行指,变HYH,变HYL,0,0),COLORYELLOW;STICKLINE(CURRBARSCOUNT<=叠加行指,变HYO,行业,2,0),COLORYELLOW;STICKLINE(CURRBARSCOUNT<=叠加行指AND 行业>=变HYO,变HYO,行业,2,1),COLORYELLOW;MA1:MA(CLOSE,M1)COLORWHITE;MA2:MA(CLOSE,M2)COLORYELLOW;MA3:MA(CLOSE,M3)COLORMAGENTA,LINETHICK2;MA4:MA(CLOSE,M4)COLORGREEN;MA5:MA(CLOSE,M5)COLORCYAN;昨天MA1:=REF(MA1,1);昨天MA2:=REF(MA2,1);昨天MA3:=REF(MA3,1);昨天MA4:=REF(MA4,1);昨天MA5:=REF(MA5,1);M1向上:BARSLASTCOUNT(MA1>REF(MA1,1)),COLORWHITE,NODRAW;M2向上:BARSLASTCOUNT(MA2>REF(MA2,1)),COLORYELLOW,NODRAW;M3向上:BARSLASTCOUNT(MA3>REF(MA3,1)),COLORLIMAGENTA,NODRAW;M4向上:BARSLASTCOUNT(MA4>REF(MA4,1)),COLORGREEN,NODRAW;M5向上:BARSLASTCOUNT(MA5>REF(MA5,1)),COLORCYAN,NODRAW;SA:=MAX(MAX(MA1,MA2),MAX(MA3,MA4));SB:=MIN(MIN(MA1,MA2),MIN(MA3,MA4));JD1:=MAX(MAX(MA(C,M1),MA(C,M2)),MA(C,M3));JX1:=MIN(MIN(MA(C,M1),MA(C,M2)),MA(C,M3));多头N:=(昨天MA1>=昨天MA2 AND 昨天MA2>=昨天MA3 AND 昨天MA3>=昨天MA4 AND 昨天MA4>=昨天MA5);向上N:=(MA1>昨天MA1 AND MA2>昨天MA2 AND MA3>昨天MA3 AND MA4>昨天MA4 AND MA5>昨天MA5);多头:BARSLASTCOUNT(多头N>0)COLORWHITE,NODRAW;向上:BARSLASTCOUNT(向上N>0)COLORWHITE,NODRAW;五线顺上N:=多头>0 AND 向上>0;一阳三线:(JX1/JD1*100>98.5 AND C>JD1 AND O<JX1 AND REF(MA(C,20),1)/MA(C,20)<1 AND C>MA(C,120))COLORLIRED,NODRAW;四线粘合:100*(SA-SB)/SB,COLORYELLOW,NODRAW;N线顺上:BARSLASTCOUNT(五线顺上N>0)COLORMAGENTA,NODRAW;四线粘合N:=BARSLASTCOUNT(四线粘合<5 AND MA1>MA2);DRAWTEXT(一阳三线=1,L,' 一阳'),COLORLIRED;DRAWTEXT(四线粘合N=1,L,' 粘合'),COLORYELLOW;DRAWTEXT(N线顺上=1,L,' 顺上'),COLORMAGENTA;。

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

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

高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;。

全仓买入通达信指标公式源码

全仓买入通达信指标公式源码

全仓买入通达信指标公式源码通达信指标公式源码是一种用于股票交易的技术指标源代码,它可以被用于计算和显示各种股票指标,例如移动平均线、相对强弱指标等。

以下是一个简单的全仓买入策略的通达信指标公式源码示例。

```c++/*通达信全仓买入指标公式源码*///计算移动平均线指标double movingAverage(double[] data, int period)double avg = 0.0;int count = 0;for (int i = 0; i < data.length; i++)if (i < period)count++;avg += data[i];} elseavg = avg - data[i - period] + data[i];}if (count >= period)return avg / period;}return avg / count;//计算相对强弱指标(RSI)double relativeStrengthIndex(double[] data, int period) double rsi = 0.0;double gain = 0.0;double loss = 0.0;for (int i = 1; i < data.length; i++)double diff = data[i] - data[i - 1];if (diff >= 0)gain += diff;} elseloss -= diff;}if (i >= period)double avgGain = gain / period;double avgLoss = loss / period;rsi = 100 - (100 / (1 + (avgGain / avgLoss)));}return rsi;//全仓买入策略void buySignal(double[] prices, int period, double rsiThreshold)double movingAverage = movingAverage(prices, period);double rsi = relativeStrengthIndex(prices, period);if (prices[prices.length - 1] > movingAverage && rsi > rsiThreshold)printf("买入信号:价格上涨趋势和RSI超过阈值\n");} elseprintf("卖出信号:价格下跌趋势或RSI未超过阈值\n");}int mai//股票价格历史数据double[] prices = {100.0, 105.0, 110.0, 115.0, 120.0, 130.0, 140.0, 150.0};int period = 5; // 移动平均线和RSI的周期double rsiThreshold = 70.0; // RSI阈值buySignal(prices, period, rsiThreshold);return 0;```上述代码是一个简单的全仓买入策略的通达信指标公式源码示例。

买入点(通达信指标公式源码)

买入点(通达信指标公式源码)

买入点(通达信指标公式源码)ZDF:=(C-REF(C,1))/REF(C,1)*100;年涨停数:SUM(ZDF>9.8,YEAR),POINTDOT,COLORYELLOW;月涨停数:SUM(ZDF>9.8,MONTH),POINTDOT,COLORYELLOW;周涨停数:SUM(ZDF>9.8,WEEKDAY),POINTDOT,COLORYELLOW;年跌停数:SUM(ZDF<-9.8,YEAR),POINTDOT,COLORGREEN;月跌停数:SUM(ZDF<-9.8,MONTH),POINTDOT,COLORGREEN;周跌停数:SUM(ZDF<-9.8,WEEKDAY),POINTDOT,COLORGREEN;年涨: (CLOSE-REF(C,YEAR))/REF(C,YEAR)*100,POINTDOT,COLORWHITE;月涨: (CLOSE-REF(C,MONTH))/REF(C,MONTH)*100,POINTDOT,COLORWHITE;周涨: (CLOSE-REF(C,WEEKDAY))/REF(C,WEEKDAY)*100,POINTDOT,COLORWHITE;DRAWBAND(110,RGB(255,180,0),-10,RGB(0,150,255));V1:=MA(C,3)=HHV(MA(C,3),7);V2:=MA(C,3)>MA(C,5);V3:=MA(V,5)>MA(V,10)*1.01;V4:=COUNT(MA(C,1)>REF(C,1),2)=2;LC20:=REF(CLOSE,1);RSI20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(ABS(CLOSE-LC20),4.1,1)*100; STICKLINE(CROSS(RSI20,11)*1,-10,40,2,0),COLORRED;VAR3A:=3;VAR2A:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1 );MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) ANDCROSS(DX,MA(DX,2)),1,0);加仓:IF(FILTER(YXF=1,5),40,-5),STICK,COLORLICYAN,LINETHICK3;A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV( L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);FY:=EMA(A51,5);A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;QS:(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2)),LINETHICK2,COLORRED;选股公式:MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);TGLJ:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) ANDCROSS(DX,MA(DX,2)),1,0);XG:IF(FILTER(TGLJ=1,5),40,-5);。

全仓买入通达信指标公式源码

全仓买入通达信指标公式源码

全仓买入通达信指标公式源码1.移动平均线(MA)MA是股票市场中最常用的指标之一,它可以帮助交易者识别价格趋势。

MA的源码公式如下:MA(CLOSE,N)其中,CLOSE表示收盘价,N表示移动平均线的周期。

该公式计算的是最近N个周期的平均值。

2.指数移动平均线(EMA)EMA也是一种常用的移动平均线指标,它对近期的数据更加敏感,对于较短周期的分析更有优势。

EMA的源码公式如下:EMA(CLOSE,N)其中,CLOSE和N的含义与移动平均线相同。

3.相对强弱指标(RSI)RSI是一种用来度量市场超买超卖情况的指标,其源码公式如下:RSI(CLOSE,N)其中,CLOSE和N的含义与移动平均线相同。

RSI的取值范围为0到100,通常超过70被视为超买,低于30被视为超卖。

4.随机指标(KD)KD指标是一种波动性指标,用来判断股票的超买超卖情况。

KD指标的源码公式如下:RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:SMA(RSV,M1,1);D:SMA(K,M2,1);其中,CLOSE表示收盘价,LOW和HIGH分别表示最低价和最高价,N表示周期,M1和M2表示平滑因子。

5.威廉指标(W%R)W%R是一种和KD指标类似的超买超卖指标,其源码公式如下:W%R:=100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N));其中,CLOSE、HIGH和LOW的含义与KD指标相同。

以上是一些通达信指标公式的源码解释。

股票交易者可以根据自己的需求和分析方法,选择适合自己的指标来进行股票分析和交易决策。

同时,还可以根据自己的需求对这些指标公式进行调整和优化,以获得更好的交易信号和结果。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

买入点(通达信指标公式源码)
ZDF:=(C-REF(C,1))/REF(C,1)*100;
年涨停数:SUM(ZDF>9.8,YEAR),POINTDOT,COLORYELLOW;
月涨停数:SUM(ZDF>9.8,MONTH),POINTDOT,COLORYELLOW;
周涨停数:SUM(ZDF>9.8,WEEKDAY),POINTDOT,COLORYELLOW;
年跌停数:SUM(ZDF<-9.8,YEAR),POINTDOT,COLORGREEN;
月跌停数:SUM(ZDF<-9.8,MONTH),POINTDOT,COLORGREEN;
周跌停数:SUM(ZDF<-9.8,WEEKDAY),POINTDOT,COLORGREEN;
年涨: (CLOSE-REF(C,YEAR))/REF(C,YEAR)*100,POINTDOT,COLORWHITE;
月涨: (CLOSE-REF(C,MONTH))/REF(C,MONTH)*100,POINTDOT,COLORWHITE;
周涨: (CLOSE-REF(C,WEEKDAY))/REF(C,WEEKDAY)*100,POINTDOT,COLORWHITE;
DRAWBAND(110,RGB(255,180,0),-10,RGB(0,150,255));
V1:=MA(C,3)=HHV(MA(C,3),7);
V2:=MA(C,3)>MA(C,5);
V3:=MA(V,5)>MA(V,10)*1.01;
V4:=COUNT(MA(C,1)>REF(C,1),2)=2;
LC20:=REF(CLOSE,1);
RSI20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(ABS(CLOSE-LC20),4.1,1)*100; STICKLINE(CROSS(RSI20,11)*1,-10,40,2,0),COLORRED;
VAR3A:=3;
VAR2A:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1 );
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND
CROSS(DX,MA(DX,2)),1,0);
加仓:IF(FILTER(YXF=1,5),40,-5),STICK,COLORLICYAN,LINETHICK3;
A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV( L,55))/(HHV(H,55)-LLV
(L,55))*100,5,1);
FY:=EMA(A51,5);
A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
QS:
(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2)),LINETHICK2,COLORRED;
选股公式:
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
TGLJ:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND
CROSS(DX,MA(DX,2)),1,0);
XG:IF(FILTER(TGLJ=1,5),40,-5);。

相关文档
最新文档