通达信指标公式源码 发一个准确率很高的主图指标(无未来)
无未来实战指标通达信指标公式源码
⽆未来实战指标通达信指标公式源码⽆未来实战指标VAR1:=BARSCOUNT(CLOSE);VAR2:=HHV(HIGH,200);VAR3:=LLV(LOW,200);VAR4:=(VAR2-VAR3)/40;VAR5:=HIGH+VAR4;STICKLINE(VAR1/30=FLOOR(VAR1/30),VAR5,VAR5+3*VAR4,8,0), COLOR0000FF;STICKLINE(VAR1/30=FLOOR(VAR1/30),VAR5,VAR5+2*VAR4,7,0), COLOR0000FF; VAR6:=1;VAR7:=REF(CLOSE-OPEN,2);VAR8:=REF(CLOSE,1);VAR9:=REF(CLOSE,2);VARA:=REF(CLOSE,3);VARB:=REF(CLOSE,4);VARC:=MAX(MAX(MAX(CLOSE,VAR8),VAR9),VARA);VARD:=MIN(MIN(MIN(CLOSE,VAR8),VAR9),VARA);红⾊持股: STICKLINE((CLOSE=VARC AND (VAR8>=VAR9 OR VAR8>=VARA)OR VAR8=VARC AND (VAR9=VARD OR VARA=VARD) ANDCLOSE>=VAR9 OR VAR9=VARC AND VARA=VARD AND CLOSE>=VAR8OR VARA=VARC AND CLOSE>=VAR8 ANDCLOSE>=VAR9)*VAR6,VAR8,CLOSE,5,1),COLORRED;品红变盘: STICKLINE((CLOSE=VARC ANDVAR8=VARD)*VAR6,VAR9,CLOSE,5,1),COLORYELLOW;黄⾊下跌: STICKLINE((CLOSE=VARD AND (VAR8VAR8=VARD AND (VAR9=VARC OR VARA=VARC) AND CLOSE绿⾊买: STICKLINE((VAR8=VARC ANDCLOSE=VARD)*VAR6,VAR9,CLOSE,5,0),COLORGREEN;STICKLINE((VAR8=VARD AND CLOSE>=VAR9 OR (VAR9=VARD AND VAR8<=VARA OR VARA=VARD AND VAR8<=VAR9) AND VAR9CLOSE>=VAR8)*VAR6,VAR8,VAR9,5,0),COLORBLUE;兰⾊抛售: STICKLINE((VAR8=VARC AND CLOSEVAR8>VARA OR VARA=VARC AND VAR8>VAR9) AND VAR9>=VARB ANDCLOSEVARE:=SAR(5,1,5);VARF:=EMA(CLOSE,30);VAR10:=IF(CLOSE>450,8,IF(CLOSE>=20 AND CLOSE<150,0.2,IF(CLOSE<20 ANDCLOSE>=10,0.07,IF(CLOSE<10,0.03,0.07))));变⾊龙: STICKLINE(CLOSE>VARE,VARF,VARF+VAR10,6,0),COLORWHITE; STICKLINE(CLOSESTICKLINE(CROSS(CLOSE,VARE),VARF,VARF-VAR10,6,0)COLORMAGENTA;STICKLINE(CROSS(VARE,CLOSE)*VAR6,VARF,VARF+VAR10,6,0),COLORMAGENTA;STICKLINE((RANGE(DAY,6,9) ORRANGE(DAY,27,30))*VAR6,VARF+0.01,VARF-0.01,6,0),COLORMAGENTA; ⽣命线: FORCAST(CLOSE,30)*VAR6, CIRCLEDOT;⽀撑: MA(CLOSE,13)*0.955*VAR6;。
通达信指标公式源码 没有未来函数的超级好用指标
AAA:=EMA(CLOSE,1);庄影难逃:=EMA((AAA-REF(AAA,1))/REF(AAA,1),1)*100;BBB:=EMA(庄影难逃,5);CCC:=EMA(BBB,11);主力动向:=(EMA(BBB+CCC,1)-EMA(BBB-CCC,1))*50,COLORFF00FF,NODRAW; DDD:EMA(主力动向,11)*10,COLORFF00FF,NODRAW;主力:=DDD;AA:0;STICKLINE(主力<0,主力,0,4,0),COLOR009900;STICKLINE(主力<0,主力,0,3,0),COLOR00BB00;STICKLINE(主力<0,主力,0,2,0),COLOR00DD00;STICKLINE(主力<0,主力,0,1,0),COLOR00FF00;STICKLINE(主力>REF(主力,1) AND 主力<0,主力,0,4,0),COLORFF6600; STICKLINE(主力>REF(主力,1) AND 主力<0,主力,0,3,0),COLORFF9900; STICKLINE(主力>REF(主力,1) AND 主力<0,主力,0,2,0),COLORFFCC00; STICKLINE(主力>REF(主力,1) AND 主力<0,主力,0,1,0),COLORCYAN; STICKLINE(主力>REF(主力,1) AND 主力>0,主力,0,4,0),COLOR000099; STICKLINE(主力>REF(主力,1) AND 主力>0,主力,0,3,0),COLOR0000BB; STICKLINE(主力>REF(主力,1) AND 主力>0,主力,0,1.5,0),COLOR0000DD; STICKLINE(主力>REF(主力,1) AND 主力>0,主力,0,0.5,0),COLOR0000FF; VAR2:=EXPMEMA(EMA(WINNER(C)*100,2),1);STICKLINE(VAR2>50 AND COST(60)<C AND 主力>0,主力,0,4,0),COLOR000099;STICKLINE(VAR2>50 AND COST(60)<C AND 主力>0,主力,0,3,0),COLOR0000BB;STICKLINE(VAR2>50 AND COST(60)<C AND 主力>0,主力,0,2,0),COLOR0000DD;STICKLINE(VAR2>50 AND COST(60)<C AND 主力>0,主力,0,1,0),COLOR0000FF;STICKLINE(主力<REF(主力,1) AND 主力>0,主力,0,4,0),COLOR000099; STICKLINE(主力<REF(主力,1) AND 主力>0,主力,0,3,0),COLOR0000CC; STICKLINE(主力<REF(主力,1) AND 主力>0,主力,0,2,0),COLOR0000FF; STICKLINE(主力<REF(主力,1) AND 主力>0,主力,0,1,0),COLORCC99FF;。
通达信指标公式源码简单提示主图 无未来 短期获
VAR1T:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14)))); VAR2T:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14)))); VAR3T:=(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(VAR2T < MA(VAR3T,6),LOW,HIGH,0,1),COLORLIBLUE;STICKLINE(VAR2T > MA(VAR3T,6),LOW,HIGH,0,1),COLORRED;STICKLINE(((OPEN>CLOSE)AND(VAR2T<MA(VAR3T,6))),(CLOSE-0.03),OPEN,2.5,0),COL ORLIBLUE;STICKLINE(((OPEN<CLOSE)AND(VAR2T<MA(VAR3T,6))),CLOSE,OPEN,2.5,1),COLORLIBL UE;STICKLINE(((OPEN>CLOSE)AND(VAR2T>MA(VAR3T,6))),OPEN,(CLOSE-0.03),2.5,0),COL ORLIRED;STICKLINE(((OPEN<CLOSE)AND(VAR2T>MA(VAR3T,6))),OPEN,CLOSE,2.5,1),COLORRED; DRAWICON(CROSS(VAR2T,MA(VAR3T,6)),(LOW - (LOW*0.02)),7);DRAWICON(CROSS(MA(VAR3T,6),VAR1T),(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,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;HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;HHJSJDB:(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3) +16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10) +9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+ 3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+REF(HHJSJDA,20))/210,COLORBLUE,LINETHICK2;HHJSJDC:MA(HHJSJDB,5),COLORYELLOW,LINETHICK2;ZT:=C/REF(C,1)>1.090;STICKLINE(ZT,OPEN,CLOSE,3,0),COLORRED;STICKLINE(ZT,OPEN,CLOSE,3,0),COLORRED;STICKLINE(ZT,H,L,0,0),COLORRED;XH:=FILTER(ZT,13);BH:=BARSLAST(ZT);LMIN:=REF(MIN(L,REF(C,1)),BH);CZZ:=REF(H,BH)-LMIN;STICKLINE(C AND BH<22,(LMIN+CZZ*0.5),(LMIN+CZZ*0.5),7,0),COLORRED; STICKLINE(C AND BH<22,(LMIN+CZZ*0.382),(LMIN+CZZ*0.382),7,0),COLORMAGENTA; STICKLINE(C AND BH<22,LMIN,LMIN,7,0),COLORBLUE;VARZT:=BARSLAST(C/REF(C,1)>1.097);STICKLINE(VARZT=2,L*0.97,L*0.98,8,0),COLOR0000FF;DRAWTEXT(VARZT=2,L*0.95,'3天'),COLORBLUE;STICKLINE(VARZT=4,H*1.03,H*1.02,8,0),COLOR9966FF;DRAWTEXT(VARZT=4,H*1.06,'5天'),COLORBLUE;STICKLINE(VARZT=7,L*0.97,L*0.98,8,0),COLOR00FFFF;DRAWTEXT(VARZT=7,L*0.95,'8天'),COLORBLUE;STICKLINE(VARZT=12,H*1.03,H*1.02,8,0),COLORFF33FF;DRAWTEXT(VARZT=12,H*1.06,'13天'),COLORBLUE;AZ1:=EMA(C,14);AZ1X:=(AZ1-REF(AZ1,1))/REF(AZ1,1)*100,NODRAW;出击:=IF(AZ1X>=0,REF(EMA(C,14),BARSLAST(CROSS(AZ1X,0))+1),DRAWNULL)COLORRE D;休假:=IF(AZ1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,AZ1X))+1),DRAWNULL)COLORGREE N;STICKLINE(CROSS(AZ1X,0),C,O,2,0)COLORMAGENTA;STICKLINE(CROSS(0,AZ1X),C,O,2,0)COLORGREEN;。
五星推荐一个极品主图指标(无未来,不飘逸)通达信指标公式源码
五星推荐:一个极品主图指标(无未来,不飘逸){超赢;无未来}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),COLORFF0000,NODRAW;黄色低买:VAR19,COLOR33AACC,NODRAW;洋红离场:VAR1A,COLORMAGENTA,NODRAW;急跌关注:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORWHITE,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;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;压力:MA(REF(HHV(C,30),1),2),POINTDOT,COLOR9DFFFF;支撑:MA(REF(LLV(C,30),1),2),POINTDOT,COLORABFF46;PMA:MA(C,5),COLORWHITE,LINETHICK2;IF(PMA>REF(PMA,1),PMA,DRAWNULL),COLORRED,LINETHICK2;IF(PMA<REF(PMA,1),PMA,DRAWNULL),COLORGREEN,LINETHICK2;X:=(3*C+L+O+H)/6;多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF (X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12) +7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+ REF(X,20))/210,COLORFF00FF,LINETHICK2;DD:=多空线<REF(多空线,1);IF(DD,多空线,DRAWNULL),COLOR00FFFF,LINETHICK2;A:=(PMA>多空线);IF(A,多空线,DRAWNULL),COLOR33FF33,POINTDOT,LINETHICK4;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,9,1);D:=SMA(K,9,1);J:=3*K-2*D;{}X2:=LLV(J,2)=LLV(J,8);Y:=IF(CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,30,0);DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,LOW*0.98,'★'),COLORYELLOW;。
不带未来函数且精准的主图指标通达信指标公式源码
不带未来函数且精准的主图指标!MA7:MA(C,7),COLOR0000FF;MA13:MA(C,13),COLOR0096FF;MA21:MA(C,21),COLOR00FF99;MA49:MA(C,49),COLORFF00FF;A:=BARSCOUNT(CLOSE);AH:=HHV(HIGH,200);AL:=LLV(LOW,200);B0:=(AH-AL)/40;B1:=HIGH+B0;B2:=LOW-B0;DRAWTEXT((A+0)/34=FLOOR((A+0)/34),B2-2.2*B0*1.1,'变盘'),COLORRED; DRAWTEXT(IF(CROSS(69,SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS( CLOSE-REF(CLOSE,1)),13,1)*100),1,0),HIGH*1.045,'警'),COLORWHITE; LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100; DRAWICON(CROSS(RSI,11) ,L*0.99,3);VAR28:=SMA(MAX(CLOSE-LC,0),5.5,1)/SMA(ABS(CLOSE-LC),6,1)*100; DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12)>0 ANDEMA(CLOSE,12)/LOW>1.15,5),LOW,'买'),COLORFF00FF;VARA:=((AMOUNT)/(VOL))/(100);VARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);VARC:=((SUM(AMOUNT,7))/(VARA))/(100);VARD:=DMA(VARB,(VOL)/(VARC));VARE:=((CLOSE-VARD)/(VARD))*(100);VARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100); VARJ:=MA(VARE,20)+STD(VARE,20);BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);AA:=SMA(VARF,3,1);SS:=(REF(BIAS18,1)>=5) AND CROSS(VARJ,VARE) AND (AA>79); DRAWTEXT((REF(BIAS18,1)>=5) AND CROSS(VARJ,VARE) AND (AA>SS) AND CROSS(84,RSI),H*1.028,'卖'),LINETHICK7,COLORGREEN;DRAWTEXT(CROSS(84,RSI) AND CROSS(76,VAR28),H*1.01,'出'),LINETHICK7,COLORYELLOW;买线:=EMA(C,2);卖线:=EMA(SLOPE(C,13)*21+C,49);STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,1.2,0),COLORYELLOW; STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,1.2,0),COLORBLUE;V1:=EMA(CLOSE,60)-EMA(CLOSE,300);V2:=EMA(V1,300);V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;操盘线:=SMA(V3,2,1),LINETHICK3;V5:=SMA(操盘线,2,1);DRAWICON(CROSS(操盘线,V5) AND MA7>REF(MA7,1),L*0.987,5); DRAWICON(操盘线<REF(操盘线,1) AND REF(操盘线,1)>REF(操盘线,2) AND MA21<REF(MA21,1) AND REF(操盘线,1)>40 AND CROSS(V5,操盘线),H*1.01,6);STICKLINE((REF(BIAS18,1)>=5) AND CROSS(VARJ,VARE) AND (AA>SS) AND CROSS(84,RSI) ANDCROSS(76,VAR28),C,O,3,0),COLORGREEN,LINETHICK2;{底位红色} STICKLINE(操盘线>REF(操盘线,1) AND CROSS(操盘线,V5) AND V5<50 AND MA13<REF(MA13,1),C,O,3,0),COLORMAGENTA,LINETHICK2;{底位红色};。
通达信指标公式源码 通达信筹码一线主图 筹码幅图 无未来 源码
DRAWKLINE(H,O,L,C); HB:=COST(99.9);LB:=COST(0.1);B3:=(HB-LB)/50;B31:=HB-B3;B32:=HB-2*B3;B33:=HB-3*B3;B34:=HB-4*B3;B35:=HB-5*B3;B36:=HB-6*B3;B37:=HB-7*B3;B38:=HB-8*B3;B39:=HB-9*B3;B310:=HB-10*B3;B311:=HB-11*B3;B312:=HB-12*B3;B313:=HB-13*B3;B314:=HB-14*B3;B315:=HB-15*B3;B316:=HB-16*B3;B317:=HB-17*B3;B318:=HB-18*B3;B319:=HB-19*B3;B320:=HB-20*B3;B321:=HB-21*B3;B322:=HB-22*B3;B323:=HB-23*B3;B324:=HB-24*B3;B325:=HB-25*B3;B326:=HB-26*B3;B327:=HB-27*B3;B328:=HB-28*B3;B329:=HB-29*B3;B330:=HB-30*B3;B331:=HB-31*B3;B332:=HB-32*B3;B333:=HB-33*B3;B334:=HB-34*B3;B335:=HB-35*B3;B336:=HB-36*B3;B337:=HB-37*B3;B338:=HB-38*B3;B339:=HB-39*B3;B340:=HB-40*B3;B341:=HB-41*B3;B342:=HB-42*B3;B343:=HB-43*B3;B344:=HB-44*B3;B345:=HB-45*B3;B346:=HB-46*B3;B347:=HB-47*B3;B348:=HB-48*B3;B349:=HB-49*B3;A1:=WINNER(HB)*100-WINNER(B31)*100;A2:=WINNER(B31)*100-WINNER(B32)*100;A3:=WINNER(B32)*100-WINNER(B33)*100;A4:=WINNER(B33)*100-WINNER(B34)*100;A5:=WINNER(B34)*100-WINNER(B35)*100;A6:=WINNER(B35)*100-WINNER(B36)*100;A7:=WINNER(B36)*100-WINNER(B37)*100;A8:=WINNER(B37)*100-WINNER(B38)*100;A9:=WINNER(B38)*100-WINNER(B39)*100;A10:=WINNER(B39)*100-WINNER(B310)*100; A11:=WINNER(B310)*100-WINNER(B311)*100; A12:=WINNER(B311)*100-WINNER(B312)*100; A13:=WINNER(B312)*100-WINNER(B313)*100; A14:=WINNER(B313)*100-WINNER(B314)*100; A15:=WINNER(B314)*100-WINNER(B315)*100; A16:=WINNER(B315)*100-WINNER(B316)*100; A17:=WINNER(B316)*100-WINNER(B317)*100; A18:=WINNER(B317)*100-WINNER(B318)*100; A19:=WINNER(B318)*100-WINNER(B319)*100; A20:=WINNER(B319)*100-WINNER(B320)*100;A21:=WINNER(B320)*100-WINNER(B321)*100;A22:=WINNER(B321)*100-WINNER(B322)*100;A23:=WINNER(B322)*100-WINNER(B323)*100;A24:=WINNER(B323)*100-WINNER(B324)*100;A25:=WINNER(B324)*100-WINNER(B325)*100;A26:=WINNER(B325)*100-WINNER(B326)*100;A27:=WINNER(B326)*100-WINNER(B327)*100;A28:=WINNER(B327)*100-WINNER(B328)*100;A29:=WINNER(B328)*100-WINNER(B329)*100;A30:=WINNER(B329)*100-WINNER(B330)*100;A31:=WINNER(B330)*100-WINNER(B331)*100;A32:=WINNER(B331)*100-WINNER(B332)*100;A33:=WINNER(B332)*100-WINNER(B333)*100;A34:=WINNER(B333)*100-WINNER(B334)*100;A35:=WINNER(B334)*100-WINNER(B335)*100;A36:=WINNER(B335)*100-WINNER(B336)*100;A37:=WINNER(B336)*100-WINNER(B337)*100;A38:=WINNER(B337)*100-WINNER(B338)*100;A39:=WINNER(B338)*100-WINNER(B339)*100;A40:=WINNER(B339)*100-WINNER(B340)*100;A41:=WINNER(B340)*100-WINNER(B341)*100;A42:=WINNER(B341)*100-WINNER(B342)*100;A43:=WINNER(B342)*100-WINNER(B343)*100;A44:=WINNER(B343)*100-WINNER(B344)*100;A45:=WINNER(B344)*100-WINNER(B345)*100;A46:=WINNER(B345)*100-WINNER(B346)*100;A47:=WINNER(B346)*100-WINNER(B347)*100;A48:=WINNER(B347)*100-WINNER(B348)*100;A49:=WINNER(B348)*100-WINNER(B349)*100;A50:=WINNER(B349)*100-WINNER(LB)*100;STICKLINE(ISLASTBAR,HB ,HB ,A1*15 ,0 ),COLORRED;STICKLINE(ISLASTBAR,B31 ,B31 ,A1*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B32 ,B32 ,A2*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B33 ,B33 ,A3*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B34 ,B34 ,A4*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B35 ,B35 ,A5*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B36 ,B36 ,A6*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B37 ,B37 ,A7*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B38 ,B38 ,A8*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B39 ,B39 ,A9*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B310 ,B310 ,A10*15 ,0 ),COLOR666600; STICKLINE(ISLASTBAR,B311 ,B311 ,A11*15 ,0 ),COLOR666600; STICKLINE(ISLASTBAR,B312 ,B312 ,A12*15 ,0 ),COLOR666600; STICKLINE(ISLASTBAR,B313 ,B313 ,A13*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B314 ,B314 ,A14*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B315 ,B315 ,A15*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B316 ,B316 ,A16*15 ,0 ),COLORRED;STICKLINE(ISLASTBAR,B317 ,B317 ,A17*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B318 ,B318 ,A18*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B319 ,B319 ,A19*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B320 ,B320 ,A20*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B321 ,B321 ,A21*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B322 ,B322 ,A22*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B323 ,B323 ,A23*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B324 ,B324 ,A24*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B325 ,B325 ,A25*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B326 ,B326 ,A26*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B327 ,B327 ,A27*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B328 ,B328 ,A28*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B329 ,B329 ,A29*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B330 ,B330 ,A30*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B331 ,B331 ,A31*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B332 ,B332 ,A32*15 ,0 ),COLORRED;STICKLINE(ISLASTBAR,B333 ,B333 ,A33*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B334 ,B334 ,A34*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B335 ,B335 ,A35*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B336 ,B336 ,A36*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B337 ,B337 ,A37*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B338 ,B338 ,A38*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B339 ,B339 ,A39*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B340 ,B340 ,A40*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B341 ,B341 ,A41*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B342 ,B342 ,A42*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B343 ,B343 ,A43*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B344 ,B344 ,A44*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B345 ,B345 ,A45*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B346 ,B346 ,A46*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B347 ,B347 ,A47*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B348 ,B348 ,A48*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,LB ,LB ,A50*15 ,0 ),COLORRED;当前获利筹码:=IF(WINNER(CLOSE),WINNER(CLOSE)*100,0);ZX2:=MIN(A1,MIN(A2,MIN(A3,MIN(A4,MIN(A5,MIN(A6,MIN(A7,MIN(A8,MIN(A9,MIN(A 10,MIN(A11,MIN(A12,MIN(A13,MIN(A14,MIN(A15,MIN(A16,MIN(A17,MIN(A18,MIN(A1 9,MIN(A20,MIN(A21,MIN(A22,MIN(A23,MIN(A24,MIN(A25,MIN(A26,MIN(A27,MIN(A28, MIN(A29,MIN(A30,MIN(A31,MIN(A32,MIN(A33,MIN(A34,MIN(A35,MIN(A36,MIN(A37,M IN(A38,MIN(A39,MIN(A40,MIN(A41,MIN(A42,MIN(A43,MIN(A44,MIN(A45,MIN(A46,MI N(A47,MIN(A48,MIN(A49,A50)))))))))))))))))))))))))))))))))))))))))))))))));筹码最低处:COST(ZX2),COLORMAGENTA;DRAWTEXT(ISLASTBAR,筹码最低处,'筹码最低价'),COLORMAGENTA;ZX1:=MAX(A1*15,MAX(A2*15,MAX(A3*15,MAX(A4*15,MAX(A5*15,MAX(A6*15,MAX(A 7*15,MAX(A8*15,MAX(A9*15,MAX(A10*15,MAX(A11*15,MAX(A12*15,MAX(A13*15,M AX(A14*15,MAX(A15*15,MAX(A16*15,MAX(A17*15,MAX(A18*15,MAX(A19*15,MAX(A 20*15,MAX(A21*15,MAX(A22*15,MAX(A23*15,MAX(A24*15,MAX(A25*15,MAX(A26*15 ,MAX(A27*15,MAX(A28*15,MAX(A29*15,MAX(A30*15,MAX(A31*15,MAX(A32*15,MAX (A33*15,MAX(A34*15,MAX(A35*15,MAX(A36*15,MAX(A37*15,MAX(A38*15,MAX(A39* 15,MAX(A40*15,MAX(A41*15,MAX(A42*15,MAX(A43*15,MAX(A44*15,MAX(A45*15,M AX(A46*15,MAX(A47*15,MAX(A48*15,MAX(A49*15,A50*15)))))))))))))))))))))))))))))))))))) )))))))))))));筹码最集中处:COST(ZX1/15),COLORRED,LINETHICK2;入1:IF(筹码最集中处>REF(筹码最集中处,1),筹码最集中处,DRAWNULL),COLORRED,LINETHICK2;出1:IF(筹码最集中处<REF(筹码最集中处,1),筹码最集中处,DRAWNULL),COLORGREEN,LINETHICK2;DRAWTEXT(ISLASTBAR,筹码最集中处,'筹码集中价'),COLORWHITE;STICKLINE(筹码最集中处>LOW AND 筹码最集中处<HIGH,筹码最集中处,MIN(MIN(OPEN,CLOSE),筹码最集中处),2,0),COLORMAGENTA;STICKLINE(筹码最集中处>MIN(C,O) AND 筹码最集中处<MAX(C,O),筹码最集中处,MIN(OPEN,CLOSE),2,0),COLORMAGENTA;STICKLINE(筹码最集中处>HIGH,OPEN,CLOSE,2,0),COLORMAGENTA;STICKLINE(筹码最集中处>HIGH,HIGH,LOW,0,0),COLORMAGENTA;STICKLINE(筹码最集中处>LOW AND 筹码最集中处<HIGH,筹码最集中处,MIN(MIN(OPEN,CLOSE),筹码最集中处),1.5,0),COLORGREEN;STICKLINE(筹码最集中处>MIN(C,O) AND 筹码最集中处<MAX(C,O),筹码最集中处,MIN(OPEN,CLOSE),2,0),COLORGREEN;STICKLINE(筹码最集中处>HIGH,OPEN,CLOSE,2,0),COLORGREEN;STICKLINE(筹码最集中处>HIGH,HIGH,LOW,0,0),COLORGREEN;筹码幅图公式穿越筹码:ABS(WINNER(CLOSE)-WINNER(OPEN))*100,STICK,COLORDDDDFF;换手率::VOL/CAPITAL*100,STICK,COLORFF0099;地量换手:1/换手率:*100,STICK,COLORRED,LINETHICK3;A1:=LLV(HIGH,240);MYP:=100*(CLOSE-A1)/A1;A2:=REF(HHV(CLOSE,240),1);B2:=REF(LLV(CLOSE,240),1);RPY:=100*(CLOSE -B2)/(A2-B2);A3:=1.1*CLOSE;B3:=0.9*CLOSE;ASR:=100*(WINNER(A3)-WINNER(B3));A4:=WINNER(CLOSE);A5:=DMA(A4,VOL/CAPITAL);B4:=DMA(VOL,VOL/CAPITAL)/CAPITAL;A6:=100*VOL/CAPITAL;B6:=100*(WINNER(CLOSE)-REF(WINNER(CLOSE),1));A7:=ABS(B6/A6);CYA:A4/B4*50,COLOR00FF00;CYB:EMA(A4/B4*50,34),COLORFF00FF;CYC::A5/B4*50,COLORFFFF99;CYD:WINNER(CLOSE)/(VOL/CAPITAL),COLORYELLOW,STICK,LINETHICK4; STICKLINE(A7>30 AND (VOL/CAPITAL*100)<=3,地量换手,0,3,0),COLORWHITE; STICKLINE(RPY<75 AND MYP<30 AND ASR>60 AND 穿越筹码>=24 AND (VOL/CAPITAL*100)<=3 AND C>=O,地量换手,0,10,0),COLORFF00FF; STICKLINE(RPY<75 AND MYP<30 AND ASR>60 AND 穿越筹码>=24 AND (VOL/CAPITAL*100)<=3 AND C< O,地量换手,0,10,0),COLORFFFF33;筹码穿透率:=B6/A6;STICKLINE(筹码穿透率>10 AND CLOSE/REF(CLOSE,1)>=1.05 AND换手率:<=3,地量换手,0,10,0),COLORBLUE;。
通达信指标公式源码 波段操盘主图指标 源码 无未来
指标用于波段操作!红线持股、绿线持币。
买、卖有提示,配合其他指标更准确简单实用,公式只是参考要灵活应用。
N1:=13;VAR1:=REF(C,1);VAR2:=SMA(MAX(C-VAR1,0),N1,1)/SMA(ABS(C-VAR1),N1,1)*1000;VAR3:=DRAWLINE(VAR2>=HHV(VAR2,N1),VAR2,VAR2<=LLV(VAR2,N1),VAR2,1); VAR4:=VAR2=VAR3;VAR5:=VAR2<REF(VAR2,1);RSV:=(C-LLV(L,25))/(HHV(HIGH,25)-LLV(L,25))*100;K:=SMA(RSV,4,1);D:=SMA(K,4,1);J:=4*K-2*D;VAR6:=(2*C+H+L)/4;{可将3该为4,信号少点}VAR7:=EMA(EMA(EMA(VAR6,4),4),4);{可将3该为4,信号少点}VAR8:=(VAR7-REF(VAR7,1))/REF(VAR7,1)*100;VAR9:=MA(VAR8,4)+0.03;VAR10:=MA(VAR8,1);KB:=EMA(C,4)-EMA(C,18);DB:=EMA(KB,4);AA:=BARSCOUNT(C);AH:=HHV(H,120);AL:=LLV(L,120);A0:=(AH-AL)/30;VAR2S:=(2*CLOSE+HIGH+LOW)/4;VAR3S:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4S:=LLV(LOW,5); VAR5S:=HHV(HIGH,4);散户:=EMA((VAR2S-VAR4S)/(VAR5S-VAR4S)*100,4)*VAR3S;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3S;STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,3.2,0),COLOR004400; STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,2.7,0),COLOR006600; STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,2.1,0),COLOR008800;STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,1.5,0),COLOR00AA00;STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,0.9,0),COLOR00CC00;STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,0.3,0),COLOR00EE00;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,3.2,0),COLOR000055;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,2.7,0),COLOR000077;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,2.1,0),COLOR000099;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,1.5,0),COLOR0000BB;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,0.9,0),COLOR0000DD;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,0.3,0),COLOR0000FF;STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,3.15,0),COLORAA1100; STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,2.45,0),COLORAA3300; STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,1.75,0),COLORAA5500; STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,1.05,0),COLORAA7700; STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,0.35,0),COLORAA9900; STICKLINE(VAR4 AND VAR5,L,OPEN,3.15,0),COLOR1111FF;STICKLINE(VAR4 AND VAR5,L,OPEN,2.45,0),COLOR3333FF;STICKLINE(VAR4 AND VAR5,L,OPEN,1.75,0),COLOR5555FF;STICKLINE(VAR4 AND VAR5,L,OPEN,1.05,0),COLOR7777FF;STICKLINE(VAR4 AND VAR5,L,OPEN,0.35,0),COLOR9999FF;STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,3.15,0),COLOR770077; STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,2.45,0),COLOR990099; STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,1.75,0),COLORBB00BB; STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,1.05,0),COLORDD00DD; STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,0.35,0),COLORFF00FF; STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,3.15,0),COLOR337777; STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,2.45,0),COLOR339999; STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,1.75,0),COLOR33BBBB;STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,1.05,0),COLOR33DDDD;STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,0.35,0),COLOR33FFFF; STICKLINE((AA+0)/34=FLOOR((AA+0)/34),L,OPEN,3.15,1),COLORFFFFFF; DRAWTEXT((AA+0)/34=FLOOR((AA+0)/34),L*1,'时间窗'),COLORFFFFFF; DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L*1,'吸'),COLORFF00FF;DRAWICON(CROSS(VAR9,VAR10) AND J>65,H*1,15),COLORGREEN;DRAWTEXT(CROSS(VAR9,VAR10) AND J>65,H*1,' 卖'),COLORYELLOW;DRAWICON(VAR4 AND VAR5,L*1,9);DRAWTEXT(VAR4 AND VAR5,L*1,' 买')COLORFFFFFF;DRAWTEXT(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L*1,'地量买点'),COLOR33FFFF;B1:=MA(C,1);B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1);SMA2:=MA(B2,3);停损下限:IF(LLV(MA(B2,8),3)<B2,LLV(MA(B2,8),3),B2);IF(B2>SMA2,B2,DRAWNULL),COLORRED,LINETHICK4;IF(B2<SMA2,B2,DRAWNULL),COLORGREEN,LINETHICK4;SNAKEA:HHV(MA(B2,1),13),COLORYELLOW;VAR1A:=(2*CLOSE+HIGH+LOW)/4;VAR2A:=MA(VAR1A,7);VAR3A:=VAR2A-MA(VAR1A,7/2)<0;VAR4A:=VAR2A-MA(VAR1A,7/2)>0;VAR5A:=BARSLAST(VAR3A);VAR6A:=0-BARSLAST(VAR4A);VAR7A:=IF(VAR3A<=0,VAR5A,VAR6A);STICKLINE(SNAKEA>SMA2 AND B2<SMA2,SNAKEA,SMA2,0,0),COLORBLUE;VAR11A:=(CLOSE*2+HIGH+LOW)/4;VAR21A:=EMA(VAR11A,13)-EMA(VAR11A,34);VAR31A:=EMA(VAR21A,5);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:=((REF(VARC,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VARE:=((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2)));VARF:=((REF(VARE,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(VAR18,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR1B:=(REF((((((((((((VARE OR VARF) OR VAR10) OR VAR11) OR VAR12) OR VAR13) OR VAR14) OR VAR15) OR VAR16) OR VAR17) OR VAR18) OR VAR19),1) AND VAR2);A13:=EMA(CLOSE,55);A14:=MA(CLOSE,75);A15:=EMA(A14,3);A16:=EMA(A15,3);A17:=(HIGH + LOW) / 5;A18:=(MA(A17,4)) - (MA(A17,34));A19:=CROSS(A18,0);A20:=CROSS(0,A18);A21:=BARSLAST(A19);A22:=BARSLAST(A20);A23:=REF(A19,1);A24:=REF(A20,1);A25:=BARSLAST(A23);A26:=BARSLAST(A24);A27:=IF((A25 < A26),(REF((HHV(HIGH,2)),A25)),(REF((LLV(LOW,2)),A26)));A28:=(((REF(CLOSE,1)) <= (REF(A27,1))) AND (CLOSE > A27)) AND (A21 < A22);A29:=(((REF(CLOSE,1)) >= (REF(A27,1))) AND (CLOSE < A27)) AND (A22 < A21);A30:=A28 AND ((COUNT(A28,A21)) = 1);A31:=A29 AND ((COUNT(A29,A22)) = 1);A32:=A30 AND ((REF(BARSLAST(A31),1)) < (REF(BARSLAST(A30),1)));A33:=A31 AND ((REF(BARSLAST(A31),1)) > (REF(BARSLAST(A30),1)));AC:=AMOUNT/(VOL);YY:=MA(AC,13);LLL:=(C-YY)/YY*100;MIDC := MA(CLOSE,22);UPPERC:= MIDC + 2*STD(C,22);LOWERC:= MIDC - 2*STD(C,22);BBA:=(C-LOWERC)/(UPPERC-LOWERC);BBC:=FORCAST(BBA,3);LIFENGCYC:=(REF(LLL,1)<-15 AND REF(BBA,1)<0 AND LLL>REF(LLL,1));VAR20:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VARF1:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2* SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); DRAWTEXT(VAR20 AND COUNT(VAR20,30)=1,LOW*0.95,'机构进场'),LINETHICK1,COLORFF00FF;。
成功率较高的金牛起飞指标 无未来通达信指标公式源码
成功率较高的金牛起飞指标无未来
发1个金牛起飞的指标,一般在主升浪之前提示信号,无未来函数。
整个信号不多,可以做成预警公式的。
测试了成功率较高:
设置条件为:5个交易周期内,止盈止损5%的前提,测试了最近1年来数据,成功率达到了63%,总共出现了信号400多个。
参考价值较高。
X1:=ABS(MA(C,10)/MA(C,20)-1)<0.01;
X2:=ABS(MA(C,5)/MA(C,10)-1)<0.01;
X3:=ABS(MA(C,5)/MA(C,20)-1)<0.01;
X4:=HHV(ABS(C-REF(C,1))/REF(C,1)*100,6)<3;
X5:=H/C<1.015 AND COUNT(EVERY(OPEN>CLOSE,4),5)<=3;
X6:=REF(C<MA(C,5),1) AND REF(C<MA(C,10),1);
X7:=REF(C<MA(C,20),1) AND MA(C,5)>REF(MA(C,5),1);
X8:=CROSS(C,MA(C,5)) AND C>MA(C,20) AND
REF(MA(C,5),1)<REF(MA(C,5),2);
X9:=C>MA(C,10) AND REF( X1 AND X2 AND X3,1) AND REF(X4,1) AND X5 AND C>MA(C,5)AND REF(O,1)<REF(O,2);
X6 AND X7 AND X8 AND X9;。
通达信源码公式指标软件通达信【财神到】主图指标公式 无未来
通达信【财神到】主图指标公式无未来{财神到匘===无未来函数}N:=(27,1,100);N1:=(7,1,100);N2:=(19,1,100);HH:=HHV(H,10);LL:=LLV(L,10);AA:=SMA(C,13,2);DRAWTEXT(ISLASTBAR=1 AND AA>REF(AA,1) AND REF(AA,1)<REF(AA,2) AND REF(AA,2)<REF(AA,3),HH,'激进买入'),COLORRED;DRAWTEXT(ISLASTBAR=1 AND AA>REF(AA,1) ANDREF(AA,1)>REF(AA,2),HH,'激进持股'),COLOR0066FF;DRAWTEXT(ISLASTBAR=1 AND AA<REF(AA,1) ANDREF(AA,1)>REF(AA,2),HH,'激进卖出'),COLORGREEN;A1:=MA(C,13);ZX:=REF(A1,13/2+1);DRAWTEXT(ISLASTBAR=1 AND CROSS(C,ZX),LL,'稳健买入'),COLORRED; DRAWTEXT(ISLASTBAR=1 AND C>ZX AND REF(C,1)>REF(ZX,1),LL,'稳健持股'),COLOR0066FF;DRAWTEXT(ISLASTBAR=1 AND C<ZX AND REF(C,1)>REF(ZX,1),LL,'稳健卖'),COLORGREEN;VAR1111:=FORCAST(CLOSE,5);VAR1:=1;平衡线:=(EMA(EMA(EMA(HIGH,3),3),1) * VAR1);VAR2:=(平衡线* 0.85);临界线:WMA(CLOSE,10),LINETHICK2,COLORRED;VAR1A:=POW((CLOSE - 临界线),1);VAR2A:=MA(VAR1A,3);VAR3A:=SQRT(VAR2A);支撑线:=(临界线- (1.96 * VAR3A));IF((临界线< REF(临界线,1)),临界线,DRAWNULL),LINETHICK2,COLORFFFFFF; VAR1Z:=(((CLOSE - OPEN) / OPEN) * 100);VAR2Z:=REF(CLOSE,1);VAR3Z:=((SMA(MAX((CLOSE - VAR2Z),0),6,1) / SMA(ABS((CLOSE -VAR2Z)),6,1)) * 100);VAR4Z:=(COUNT((VAR3Z < 20),20) >= 1);DRAWTEXT(((VAR1Z > 9) AND VAR4Z),LOW,'★屠龙'),LINETHICK4,COLORFFFFDD;JJJ:=(((CLOSE + HIGH) + LOW) / 3);AAA:=EMA(JJJ,3);BBA:=REF(AAA,1);持股:DRAWICON((AAA > BBA),L*0.99,11);VAR3:=REF(CLOSE,1);VAR4:=REF(CLOSE,2);VAR5:=REF(CLOSE,3);VAR6:=REF(CLOSE,9);VAR7:=HHV(CLOSE,9);VAR8:=LLV(CLOSE,9);VARC:=(((VAR3 = VAR8) AND (CLOSE >= VAR4)) OR ((((VAR4 = VAR8) AND (VAR3 <= VAR5)) AND (VAR4 < VAR6)) AND (CLOSE >= VAR3)));黄色买入:STICKLINE(VARC,(VAR3 * 0.94),(VAR4 * 0.94),25,16),COLORFFFFFF; VAR1B:=((REF(HIGH,1) + REF(LOW,1)) / 2);VAR2B:=((REF(HIGH,1) + REF(LOW,1)) / 2);VAR3B:=(MA(CLOSE,N) + (2 * STD(CLOSE,N)));DRAWICON(CROSS(VAR2B,VAR3B),(HIGH * 1.035),15);DRAWTEXT(CROSS(VAR2B,VAR3B),(HIGH * 1.02),'卖出'),COLORFF00EE; VAR4B:=REF(CLOSE,1);VAR5B:=((SMA(MAX((CLOSE - VAR4B),0),N1,1) / SMA(ABS((CLOSE -VAR4B)),N1,1)) * 100);VAR6B:=CROSS(N2,VAR5B);VAR7B:=FILTER(VAR6B,4);A7:=((((2 * CLOSE) + HIGH) + LOW) / 4);VAR10:=LLV(LOW,34);VAR11A:=HHV(HIGH,34);SK:=EMA((((A7 - VAR1B) / (VAR2B - VAR1B)) * 100),7);SD:=EMA(((0.667 * REF(SK,1)) + (0.333 * SK)),5);DRAWTEXT(IF((((((COUNT((CLOSE < REF(CLOSE,1)),8) / 8) > (6 / 10)) AND (VOL >= (1.5 * MA(VOL,5)))) AND COUNT((SK >= SD),3)) AND (REF(LOW,1) = LLV(LOW,120))),1,0),LOW,'●买进'),COLOR99FFEE;DRAWTEXT(IF((((((((((COUNT((CLOSE < REF(CLOSE,1)),13) / 13) > (6 / 10)) AND COUNT((SK > SD),6)) AND (REF(LOW,5) = LLV(LOW,120))) ANDREF((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,'●买进2'),COLORFFFFDD;VAR12:=(MA(CLOSE,80) - (MA(CLOSE,10) / 3));DRAWTEXT(IF(((((CLOSE < VAR12) AND ((VOL / 240) > (MA(VOL,5) / 240))) AND (CLOSE > (REF(CLOSE,1) * 1.08))) AND (CLOSE < (MA(CLOSE,13) *1.3))),1,0),LOW,'●抄底'),COLORFFFFDD;VAR11:=(((((2 * CLOSE) + OPEN) + HIGH) + LOW) / 5);M8:=VOL;主力:=(SUM((VAR11 * M8),3) / SUM(M8,3));散户:=主力;M1:=LLV(散户,5);M5:=(SUM((VAR11 * M8),1) / SUM(M8,1));M13:=(SUM((VAR11 * M8),5) / SUM(M8,5));M21:=(SUM((VAR11 * M8),13) / SUM(M8,13));Y:=(SUM((VAR11 * M8),21) / SUM(M8,21));U1:=M5;U3:=M13;XX1:=M21;C5:=((U3 > 散户) AND (散户> XX1));C8:=IF((C5 > 0),LLV(U3,5),HHV(散户,5));C13:=IF((C5 > 0),LLV(散户,8),HHV(散户,5));VAR1118:=IF((C5 > 0),LLV(XX1,13),HHV(散户,5));M1A:=LLV(散户,20);DRAWTEXT((M1A = REF(M1A,1)),M1A,'┬'),LINETHICK5,COLORCC33FF; DRAWTEXT(((REF(M1A,1) < REF(M1A,2)) AND (M1A = REF(M1A,1))),L*0.97,'★'),COLORFFEEDD;{STICKLINE((CLOSE < OPEN),HIGH,LOW,1,0),COLOR8800;STICKLINE((CLOSE < OPEN),HIGH,LOW,0,0),COLORFF00;STICKLINE((CLOSE < OPEN),CLOSE,OPEN,8,0),COLOR8800;STICKLINE((CLOSE < OPEN),CLOSE,OPEN,7,0),COLOR9900;STICKLINE((CLOSE < OPEN),CLOSE,OPEN,6,0),COLORAA00;STICKLINE((CLOSE < OPEN),CLOSE,OPEN,5,0),COLORBB00;STICKLINE((CLOSE < OPEN),CLOSE,OPEN,4,0),COLORCC00;STICKLINE((CLOSE < OPEN),CLOSE,OPEN,3,0),COLORDD00;STICKLINE((CLOSE < OPEN),CLOSE,OPEN,2,0),COLOREE00;STICKLINE((CLOSE < OPEN),CLOSE,OPEN,1,0),COLORFF00;STICKLINE((CLOSE >= OPEN),HIGH,LOW,1,0),COLORFF;STICKLINE((CLOSE >= OPEN),HIGH,LOW,0,0),COLOREEFF;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,8,0),COLORFF;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,7,0),COLOR22FF;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,6,0),COLOR44FF;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,5,0),COLOR66FF;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,4,0),COLOR88FF;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3,0),COLORAAFF;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2,0),COLORCCFF;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),COLOREEFF;}VAR22:=((LLV(LOW,3) = LLV(LOW,3)) AND (CLOSE >= (OPEN * 1.04))); VAR333:=(CLOSE > ((REF(HIGH,1) + REF(LOW,1)) / 2));VAR44:=(VAR22 AND VAR333);VAR55:=BARSLAST(VAR333);VAR66:=BARSLAST(VAR44);VAR77:=IF((VAR66 > 0),(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100),0); VAR88:=SUM(VAR77,1);VAR93:=IF((VAR55 > 3),(0 - 2),0);DRAWICON(((REF(VAR93,1) = (0 - 2)) AND (VAR93 = 0)),LOW*0.96,1); DRAWICON(((REF(VAR93,1) = (0 - 2)) AND (VAR93 = 0)),LOW*0.98,23); {====}XA:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);YA:=EMA(CLOSE,10);DRAWTEXT(CROSS(YA,XA),(LOW * 0.95),'←安全C级'),COLORRED;VAR1C:=LLV(LOW,21);VAR2C:=HHV(HIGH,21);AK1:=EMA((((CLOSE - VAR1C) / (VAR2C - VAR1C)) * 100),5);AK:=EMA((((CLOSE - VAR1C) / (VAR2C - VAR1C)) * 50),13);DD:=EMA(((0.667 * REF(AK1,1)) + (0.333 * AK1)),2);VAR3C:=LLV(LOW,55);VAR4C:=HHV(HIGH,34);VAR5C:=EMA((((CLOSE - VAR3C) / (VAR4C - VAR3C)) * 100),3);VAR6C:=((AK + VAR5C) / 2);VAR7C:=EMA(((0.667 * REF(VAR5,1)) + (0.333 * AK1)),2);VAR8C:=EMA(VAR6C,5);BB:=EMA(((0.667 * REF(VAR8C,1)) + (0.333 * VAR8C)),2);AB:=CROSS(AK1,AK);BB1:=(CROSS(AK1,BB) AND (BB < 30));CD:=(BB1 * 0.6);DRAWTEXT((CD = 0.6),(LOW * 0.95),'←安全A级'),COLORGREEN; DRAWTEXT((AB = 1),(LOW * 0.97),'←安全B 级'),COLOR33CC99,COLORYELLOW;{====}压力:MA(REF(HHV(C,30),1),2),COLORGREEN;支撑:MA(REF(LLV(C,30),1),2),COLORRED;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORFF6600; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2.7,0 ),COLORFF7700; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2.6,0 ),COLORFF9900; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2.5,0 ),COLORFFBB00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2.4,0 ),COLORFFCC00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2.3,0 ),COLORFFDD00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORFFEE00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORFFFF00;{立体柱子:红色}STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.8,0) ,COLOR000033; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.6,0) ,COLOR000066; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.4,0) ,COLOR000099; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.3,0) ,COLOR0000BB; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000DD;VAR9Q:=C= HHV(C,4)AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF (C,3)) OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2) =HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3) =HHV(C,4) ANDC>=REF(C,1) AND C>=REF(C,2);红持:VAR9Q,COLOR0000FF,LINETHICK0;{立体柱子:红色}STICKLINE(VAR9Q,C,(O+C)/2,2.8,0),COLOR000044;STICKLINE(VAR9Q,C,(O+C)/2,2.7,0),COLOR000055;STICKLINE(VAR9Q,C,(O+C)/2,2.6,0),COLOR000066;STICKLINE(VAR9Q,C,(O+C)/2,2.5,0),COLOR000077;STICKLINE(VAR9Q,C,(O+C)/2,2.4,0),COLOR000099;STICKLINE(VAR9Q,C,(O+C)/2,2,0),COLOR0000DD;STICKLINE(VAR9Q,C,(O+C)/2,1,0),COLOR0000FF;VARAQ:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);粉变:VARAQ,COLORFF99FF,LINETHICK0;STICKLINE(VARAQ,C,(O+C)/2,2.8,0),COLORFF11FF;STICKLINE(VARAQ,C,(O+C)/2,2.7,0),COLORFF22FF;STICKLINE(VARAQ,C,(O+C)/2,2.6,0),COLORFF33FF;STICKLINE(VARAQ,C,(O+C)/2,2.5,0),COLORFF55FF;STICKLINE(VARAQ,C,(O+C)/2,2.4,0),COLORFF77FF;STICKLINE(VARAQ,C,(O+C)/2,2.3,0),COLORFF99FF;STICKLINE(VARAQ,C,(O+C)/2,2,0),COLORFFBBFF;STICKLINE(VARAQ,C,(O+C)/2,1,0),COLORFFDDFF;VARBQ:=C=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)<>HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) ANDC<REF(C,1) AND C<REF(C,2);银灰跌:VARBQ,COLOR888888,LINETHICK0;{立体柱子:银色}STICKLINE(VARBQ,C,(O+C)/2,2.8,0),COLOR333333;STICKLINE(VARBQ,C,(O+C)/2,2.7,0),COLOR444444;STICKLINE(VARBQ,C,(O+C)/2,2.6,0),COLOR555555;STICKLINE(VARBQ,C,(O+C)/2,2.5,0),COLOR777777;STICKLINE(VARBQ,C,(O+C)/2,2.4,0),COLOR999999;STICKLINE(VARBQ,C,(O+C)/2,2.3,0),COLORBBBBBB;STICKLINE(VARBQ,C,(O+C)/2,2,0),COLORDDDDDD;STICKLINE(VARBQ,C,(O+C)/2,1,0),COLORFFFFFF;VARCQ:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);绿买:VARCQ,COLOR00FF00,LINETHICK0;{立体柱子:绿色}STICKLINE(VARCQ,O,(O+C)/2,2.8,0),COLOR004400;STICKLINE(VARCQ,O,(O+C)/2,2.6,0),COLOR005500;STICKLINE(VARCQ,O,(O+C)/2,2.5,0),COLOR007700;STICKLINE(VARCQ,O,(O+C)/2,2.4,0),COLOR009900;STICKLINE(VARCQ,O,(O+C)/2,2.3,0),COLOR00BB00;STICKLINE(VARCQ,O,(O+C)/2,2,0),COLOR00DD00;STICKLINE(VARCQ,O,(O+C)/2,1,0),COLOR00FF00;VARDQ:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF (C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);蓝抛:VARDQ,COLORFF9900,LINETHICK0;{立体柱子:深蓝色}STICKLINE(VARDQ,O,(O+C)/2,2.8,0),COLORFF1100;STICKLINE(VARDQ,O,(O+C)/2,2.6,0),COLORFF3300;STICKLINE(VARDQ,O,(O+C)/2,2.5,0),COLORFF5500;STICKLINE(VARDQ,O,(O+C)/2,2.4,0),COLORFF7700;STICKLINE(VARDQ,O,(O+C)/2,2.3,0),COLORFF9900;STICKLINE(VARDQ,O,(O+C)/2,2,0),COLORFFBB00;STICKLINE(VARDQ,O,(O+C)/2,1,0),COLORFFDD00;{立体柱子:金色}ZDF:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;STICKLINE(ZDF>9.8,OPEN,CLOSE,2.8,0),COLOR004444;STICKLINE(ZDF>9.8,OPEN,CLOSE,2.7,0),COLOR005555;STICKLINE(ZDF>9.8,OPEN,CLOSE,2.6,0),COLOR006666;STICKLINE(ZDF>9.8,OPEN,CLOSE,2.5,0),COLOR007777;STICKLINE(ZDF>9.8,OPEN,CLOSE,2.4,0),COLOR009999;STICKLINE(ZDF>9.8,OPEN,CLOSE,2.3,0),COLOR00BBBB;STICKLINE(ZDF>9.8,OPEN,CLOSE,2,0),COLOR00DDDD;STICKLINE(ZDF>9.8,OPEN,CLOSE,1,0),COLOR00FFFF;Z:=(CLOSE > REF(CLOSE,1));XL2:=(((CLOSE - EMA(CLOSE,21)) / EMA(CLOSE,21)) * 100);XL3:=CROSS(XL2,(0 - 20));DRAWTEXT((XL3 > 0),(LOW - 0.2),'←绝对底部');VAR2S:=(2*CLOSE+HIGH+LOW)/4;VAR3S:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4S:=LLV(LOW,5);VAR5S:=HHV(HIGH,4);散户C:=EMA((VAR2S-VAR4S)/(VAR5S-VAR4S)*100,4)*VAR3S;XX:=EMA(0.667*REF(散户C,1)+0.333*散户C,2)*VAR3S;DRAWTEXT(CROSS(散户C,XX) AND 散户C<30,L-0.05,'←吸'),COLORRED; VAR1R:=LLV(LOW,2)=LLV(LOW,16) AND CLOSE>=OPEN*1.04;VAR2R:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;VAR3R:=VAR1R AND VAR2R;DRAWTEXT(VAR3R,LOW,'-→逢低买入'),COLORFFFFEE;VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,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)*(0.99),'←---大胆搏'),COLORYELLOW;SHORT1:=12;LONG1:=26;M:=9;DIFF:=EMA(CLOSE,SHORT1)-EMA(CLOSE,LONG1);DEA:=EMA(DIFF,M);低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;DRAWTEXT(低位金叉,L*0.92,'*低位金叉'),COLORF00FF0;SHORT:=12;LONG:=26;A1C:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(A1C=2,21)=1; DRAWTEXT(二次金叉,L*0.90,'*二次金叉'),COLORYELLOW;QC:=REF(CLOSE,1);RSV:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*100);K:=SMA(RSV,3,1);D:=SMA(K,3,1);YX:=((CLOSE>QC) AND C>O);D1:=REF(D,1);DRAWTEXT((((D1<30) AND CROSS(K,D)) AND YX),(LOW * 0.96),'*短买!'),COLORYELLOW;VAR4A:=EMA(CLOSE,3);DRAWTEXT(COUNT(REF(VAR4A,1)<REF(VAR4A,2),5)=5 ANDVAR4A>REF(VAR4A,1),L*0.96,'出拳'),COLORRED;DA:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;DB:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4; DRAWTEXT(CROSS(DA-DB,0),L*0.98,'★B'),COLORMAGENTA;AA1:=MA(C,5);BB1C:=MA(C,15);AF:=CROSS(AA1,BB1C);DRAWTEXT(AF,LLV(L,4),'止损线'),COLORYELLOW;。
通达信指标公式源码 一定大涨指标 无未来
MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);五强:=MA5>REF(MA5,1);十强:=MA10>REF(MA10,1);小均强:=五强AND 十强;强势线1:=HHV(MA((((LOW + HIGH) + CLOSE) / 3),8),60);强势线2:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.18),8),20);强势线3:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.258),8),10);强势线4:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.08),80),13);开始走强1:=强势线1>REF(强势线1,1);开始走强2:=强势线2>REF(强势线2,1);开始走强3:=强势线3>REF(强势线3,1);开始走强4:=强势线4>REF(强势线3,1);双强1:=开始走强1 AND 开始走强2;双强2:=开始走强2 AND 开始走强3;双强3:=开始走强2 AND 开始走强3;双强4:=开始走强3 AND 开始走强4;三强:=开始走强1 AND 开始走强2 AND 开始走强3;四强:=开始走强1 AND 开始走强2 AND 开始走强3 AND 开始走强4;强势为王:=双强1 OR 双强2 OR 双强3 OR 双强4 OR 三强OR 四强; VV:=(C+L+H)/3;DSA:=SMA(XMA(VV,15),2,1);底部1:=DSA*0.9518;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);MA4:=MA(CLOSE,60);五日走强:=MA1>REF(MA1,1);十日走强:=MA2>REF(MA2,1);二十日走强:=MA3>REF(MA3,1);六十日走强:=MA4>REF(MA4,1);低位主升:=五日走强AND 十日走强AND 六十日走强;主升浪:=五日走强AND 十日走强AND 二十日走强;大主升浪:=十日走强AND 二十日走强AND 六十日走强;大主升浪2:=五日走强AND 十日走强AND 二十日走强AND 六十日走强; 总主升:=主升浪AND 大主升浪AND 大主升浪2;总主升浪:=低位主升OR 主升浪OR 大主升浪OR 大主升浪2 OR 总主升; 低买:L<底部1 AND 总主升浪AND 强势为王ANDC<DSA,NODRAW,COLORGREEN,LINETHICK1;STICKLINE(低买,0,15,2,0),COLORGREEN;猎股:L<底部1 AND C<DSA AND 强势为王,NODRAW,COLORYELLOW,LINETHICK1;STICKLINE(猎股,15,30,2,0),COLORYELLOW;猎股大王出击:=低买AND 猎股AND H<DSA;A:=MA(C,30);A1:=A*1.1;A4:=A*0.9;A2:=A1-(A1-A4)*0.191;持仓:=IF(HIGH*1.01>A2 OR REF(HIGH,1)>REF(A2,1),A1,A4);生命线:=IF(HIGH*1.01>A2 OR REF(HIGH,1)>REF(A2,1),A2,A4);主升持仓:=持仓>生命线;主升1:=持仓>REF(持仓,1);主升2:=生命线>REF(生命线,1);主升3:=主升1 AND 主升2;主升猎股王:=(猎股大王出击AND 主升持仓AND 主升3) OR (猎股AND 主升持仓AND 主升3);主升:(主升猎股王AND 小均强) OR (猎股AND 小均强),NODRAW,COLORMAGENTA,LINETHICK1;STICKLINE(主升,30,45,2,0),COLORMAGENTA;LOWV:=LLV(LOW,9);HIGHV:=HHV(HIGH,9);RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);K:EMA(RSV,3),COLORWHITE;D:MA(K,3),COLORYELLOW;。
【主升分析】源码 无未来通达信指标公式源码
【主升分析】源码无未来MA3:=MA(C,3);YTSL:=(3*C+L+O+H)/6;辰星线:(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF(Y TSL,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*R EF(YTSL,13)+6*REF(YTSL,14)+5*REF(YTSL,15)+4*REF(YTSL,16)+3*REF(YT SL,17)+2*REF(YTSL,18)+REF(YTSL,20))/211,COLORFFFF00;牵牛线:MA(C,26),COLOR669933;等待:IF(MA3<=辰星线,牵牛线,DRAWNULL),COLORGREEN,LINETHICK2;中轨:=MA(C,26);上轨:=中轨+STD(C,20);下轨:=中轨-STD(C,20);上极限:(中轨+2*STD(C,20)),COLORFF937F,LINETHICK2;下极限:(中轨-2*STD(C,20)),COLORWHITE,LINETHICK2;急速超跌:=(C-MA(C,34))/MA(C,34)*100<-14;VAR1:=(C>REF(C,1) AND C>REF(C,2));VAR2:=(REF(VAR1,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR3:=(REF(VAR2,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR4:=(REF(VAR3,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR5:=(REF(VAR4,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR6:=(REF(VAR5,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR7:=(REF(VAR6,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR8:=(REF(VAR7,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR9:=(REF(VAR8,1) AND C>=REF(C,1) AND C<=REF(C,2));VARA:=(REF(VAR9,1) AND C<=REF(C,1) AND C>=REF(C,2));VARB:=(REF(VARA,1) AND C>=REF(C,1) AND C<=REF(C,2));VARC:=(REF(VARB,1) AND C<=REF(C,1) AND C>=REF(C,2));持股:IF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,辰星线,DRAWNULL),COLORRED,POINTDOT,LINETHICK5;VARD:=(C<REF(C,1) AND C<REF(C,2));VARE:=(REF(VARD,1) AND C>=REF(C,1) AND C<=REF(C,2));VARF:=(REF(VARE,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR10:=(REF(VARF,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR11:=(REF(VAR10,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR12:=(REF(VAR11,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR13:=(REF(VAR12,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR14:=(REF(VAR13,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR15:=(REF(VAR14,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR16:=(REF(VAR15,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR17:=(REF(VAR16,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR18:=(REF(VAR17,1) AND C>=REF(C,1) AND C<=REF(C,2));持币:IF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,辰星线,DRAWNULL),COLORLIGRAY,POINTDOT,LINETHICK5;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); DRAWTEXT(VAR19,L,'←短买'),COLOR33FFCC;DRAWTEXT(VAR1A,H+0.1,'←离场'),COLORFF99FF;。
通达信非常好用非常准确无未来的主图指标公式
通达信⾮常好⽤⾮常准确⽆未来的主图指标公式VAR1:=(C+H+O+L)/4;卖出:=XMA(VAR1,20)*(1+80/1000),POINTDOT,COLORGREEN,LINETHICK3;买⼊:=XMA(VAR1,32)*(1-100/1000),POINTDOT,COLORMAGENTA,LINETHICK3;幅度:=100*(卖出-买⼊)/买⼊,NODRAW;菩提:=买⼊+(卖出-买⼊)*2/3;{此函数仅做参考线,为提前趋势预测线,上涨途中向下见顶,下跌途中向上见底};般:=XMA(CLOSE,7);若:=MEMA(CLOSE,3);全绿K:=LONGCROSS(若,般,3) AND H>菩提;RSVL:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;KL:=SMA(RSVL,3,1);DL:=SMA(KL,3,1);KKL:=SMA(RSVL,3,1);DD:=SMA(KL,3,1);NL:=KKL+DD;买⼊L:=DRAWICON(CROSS(NL,50),50,1),COLORRED;卖出L:=DRAWICON(CROSS(160,NL),160,2),COLORGREEN;卖出K:=CROSS(160,NL);TM:=(CLOSE*1.0+LOW*0.0+HIGH*0.0);T1M:=V;SL1M:=(TM/REF(TM,1)-1)*1000;趋势5:=XMA(XMA(XMA(SL1M,20),20),20),COLORYELLOW;趋势6:=XMA(XMA(XMA(SL1M,10),10),10),COLORMAGENTA;QA9:=趋势6-趋势5;QA10:=EMA(QA9,89);买⼊M:=(QA9-QA10)*2,COLORSTICK;M1:=EMA(C,5);M2:=EMA(C,13);M3:=EMA(C,34),COLORBLUE,LINETHICK2;MC1:=EMA(C,55);MC2:=EMA(C,89);MA4:=EMA(C,144);VAR1A1H:=(REF(CLOSE,1)-REF(ATR,1));买线1:=REF(EMA(C,14),1)COLORWHITE,LINETHICK3;卖线1:=IF(MC1>MAX(MC2,MA4),MC1,IF(MC1<MIN(MC2,MA4),MC2,MA4)),COLORFF00CC,LINETHICK3;⾼1:=REF(HHV(H,150),3);低1:=REF(LLV(L,150),3);STICKLINE(买线1>=卖线1,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,6,0)COLOR001050; STICKLINE(买线1<卖线1,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,6,0)COLOR404050;STICKLINE(买⼊M>=0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORRED;STICKLINE(买⼊M<0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORGREEN;STICKLINE(买⼊L,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,2,0)COLORYELLOW;STICKLINE(卖出K AND 买⼊M<0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,2,0)COLORCYAN;多空趋势彩带:DRAWBAND(SMA(C,6.5,1),RGB(255,97,0),SMA(C,13.5,1),RGB(0,128,0));中线:=(卖出+买⼊)/2,POINTDOT,COLORWHITE,LINETHICK4;MA5:=MA(C,5),COLOR000099;MA10:=MA(C,10),COLOR006600;MA20:=MA(C,20),COLOR005555;ZB1:=EMA(C,34);{ 原为55或65 }长期趋势:EMA(ZB1,13),COLORRED,LINETHICK3;{原为34或55}STICKLINE(C>=REF(C,1),O,C,3,1),COLOR000000;STICKLINE(C<REF(C,1),O,C,3,1),COLOR000000;AA3:=EMA(CLOSE,5)>EMA(CLOSE,6) AND EMA(CLOSE,6)>EMA(CLOSE,7) ANDEMA(CLOSE,7)>EMA(CLOSE,8) AND EMA(CLOSE,8)>EMA(CLOSE,9)AND EMA(CLOSE,9)>EMA(CLOSE,10) AND EMA(CLOSE,10)>EMA(CLOSE,11) ANDEMA(CLOSE,11)>EMA(CLOSE,12)AND EMA(CLOSE,12)>EMA(CLOSE,13) AND EMA(CLOSE,13)>EMA(CLOSE,14);AA2:= EMA(CLOSE,14)>EMA(CLOSE,15)AND EMA(CLOSE,15)>EMA(CLOSE,20) AND EMA(CLOSE,20)>EMA(CLOSE,30) ANDEMA(CLOSE,30)>EMA(CLOSE,60) AND EMA(CLOSE,60)>EMA(CLOSE,90)AND EMA(CLOSE,90)>EMA(CLOSE,120) AND EMA(CLOSE,120)>EMA(CLOSE,250);A1:= AA2 AND AA3;A2:=EMA(CLOSE,5)>EMA(CLOSE,6) AND EMA(CLOSE,6)>EMA(CLOSE,7) ANDEMA(CLOSE,7)>EMA(CLOSE,8) AND EMA(CLOSE,8)>EMA(CLOSE,9)AND EMA(CLOSE,9)>EMA(CLOSE,10) AND EMA(CLOSE,10)>EMA(CLOSE,11) ANDEMA(CLOSE,11)>EMA(CLOSE,12)AND EMA(CLOSE,12)>EMA(CLOSE,13) AND EMA(CLOSE,13)>EMA(CLOSE,14);B1:=IF(A1,1,2);VAR1MZ:=((CLOSE > REF(CLOSE,1)) AND (CLOSE > REF(CLOSE,2)));VAR2MZ:=((REF(VAR1MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VAR3MZ:=((REF(VAR2MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VAR4MZ:=((REF(VAR3MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VAR5MZ:=((REF(VAR4MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VAR6MZ:=((REF(VAR5MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VAR7MZ:=((REF(VAR6MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VAR8MZ:=((REF(VAR7MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VAR9MZ:=((REF(VAR8MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VARAMZ:=((REF(VAR9MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VARBMZ:=((REF(VARAMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VARCMZ:=((REF(VARBMZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); {红K}STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) ORVAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),L,H,0,0),COLOR0000DD;STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) ORVAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),C,REF(C,1),3,0),COLOR000099;STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) ORVAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),C,REF(C,1),2,0),COLOR0000BB;STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) ORVAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),C,REF(C,1),1,0),COLOR0000DD;VARDMZ:=((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2)));VAREMZ:=((REF(VARDMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VARFMZ:=((REF(VAREMZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VAR10MZ:=((REF(VARFMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR11MZ:=((REF(VAR10MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR12MZ:=((REF(VAR11MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR13MZ:=((REF(VAR12MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR14MZ:=((REF(VAR13MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR15MZ:=((REF(VAR14MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR16MZ:=((REF(VAR15MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR17MZ:=((REF(VAR16MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR18MZ:=((REF(VAR17MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));{绿K}STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) ORVAR18MZ),C,REF(C,1),3 ,0 ),COLOR00BB00;STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) ORVAR18MZ),C,REF(C,1),2 ,0 ),COLOR00DD00;STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) ORVAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) ORVAR18MZ),C,REF(C,1),1 ,0 ),COLOR00FF00;STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) ORVAR18MZ),H,L,0,0 ),COLOR00DD00;VAR19MZ:=(REF((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) ORVAR18MZ),1) AND VAR1MZ);VAR1AMZ:=(REF((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),1) AND VARDMZ);{粉红}STICKLINE(VAR19MZ,REF(CLOSE,1),REF(CLOSE,2),3 ,0 ),COLORFF11FF;STICKLINE(VAR19MZ,REF(CLOSE,1),REF(CLOSE,2),2 ,0 ),COLORFF44FF;STICKLINE(VAR19MZ,REF(CLOSE,1),REF(CLOSE,2),1 ,0 ),COLORFF66FF;{黄⾊}STICKLINE(VAR1AMZ,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR00AAFF;STICKLINE(VAR1AMZ,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR00CCFF;STICKLINE(VAR1AMZ,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR00EEFF;FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);TTJ:=CROSS(FF,MA15);上:=EMA(C,3),COLORBLUE,LINETHICK1;中:=EMA(C,5),COLORWHITE,LINETHICK1;下:=EMA(中,5),COLOR00FF00,LINETHICK1;QQ:= C<中;MM:=上>REF(上,1) AND REF(上,1)<REF(上,2) ;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);MA1Q:=MEMA(CLOSE,5);MA2Q:=ATAN((MA1Q/REF(MA1Q,1)-1)*100)*180/3.1416;MA3Q:=IF(MA2Q>0,MA2Q,MA2Q);MA5Q:=MA(CLOSE,5),COLOR888899;MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;VAR01:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3))OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) ANDREF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) ANDC>=REF(C,1) AND C>=REF(C,2);VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) ORREF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) ANDC<REF(C,1) AND C<REF(C,2);VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);VAR05:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) ANDREF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) ANDREF(C,2)>=REF(C,4) AND C<REF(C,1);VAR06:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);VAR07:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN; VAR08:=VAR07 AND COUNT(VAR06,2);VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);VAR10:=EMA(MA(C,13),13);VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09<0,2) ANDCROSS(VAR09,MA(VAR09,2)))=1,5);VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7) AND COUNT(VAR09>50,2) ANDCROSS(MA(VAR09,2),VAR09))=1,1);VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3);VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));VAR16:=VAR08 AND NOT(REF(VAR08,1));RSVQ:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSVQ,3,1);D:=SMA(K,3,1);J:=3*K-2*D;⾦叉:=CROSS(J,D);死叉:=CROSS(D,J);买1:=(VAR14 OR VAR15) AND VAR11;买2:=(VAR14 OR VAR15) AND VAR04;买3:=(VAR14 OR VAR15) AND VAR02;买4:=(VAR02 AND VAR11) OR (VAR04 AND VAR11);买5:=(⾦叉 AND VAR04) OR (⾦叉 AND VAR02) OR (⾦叉 AND VAR11);TTJ0:=VAR16;TTJ1:=买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM;XG0:=TTJ AND TTJ0;XG1:=TTJ AND TTJ1;XG11:=XG0 OR XG1;PL5:=ZIG(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) ANDREF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,10);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2) <=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) ANDREF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2) <=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) ANDREF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);⾛强1:=BARSLAST(PL5<REF(PL5,1));⾛弱1:=BARSLAST(PL5>REF(PL5,1));⾛强2:=BARSLAST(PL10<REF(PL10,1));⾛弱2:=BARSLAST(PL10>REF(PL10,1));⾛强3:=BARSLAST(PL20<REF(PL20,1));⾛弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,⾛强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,⾛强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,⾛弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,⾛弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,⾛强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,⾛强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,⾛弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,⾛弱3),0);TJ11:=EN2 AND ZTJZ5=1;TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;TJ33:=EN2 AND DTJZ10=1;TJ44:=EN3 AND ZTJZ10=1;TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;XGQ:=XG11 OR XG22;W18:=EXIST(XGQ,1);DRAWTEXT(XGQ,L-0.1,'●放⼼买'),COLORRED;SQX:=(C-MA(CLOSE,13))*100;DIFF:=EMA(MA(SQX,7),1),COLORWHITE;DEA:=EMA(DIFF,7),COLORYELLOW;MACD:=(DIFF-DEA)*2,COLORSTICK;奉献理想专⽤:IF((CROSS(DIFF,DEA) AND DIFF<-0.1) ,L-0.2,DRAWNULL),COLORMAGENTA,LINETHICK9,CROSSDOT;低位⾦叉:=IF(CROSS(DIFF,DEA) AND DIFF<-0.1,15,DRAWNULL),COLORMAGENTA,LINETHICK9,CROSSDOT;IF(CROSS(DIFF,DEA) AND DIFF<-0.1,L-0.2,DRAWNULL),COLORYELLOW,LINETHICK4,POINTDOT;{再上N均线 N 10 1 100 1}MA1:=MA(C,5);MA2:=MA(C,10);MA3:=MA(C,21);破N:=REF(MA1,1)<REF(MA2,1)AND MA2>REF(MA2,1);试摸N:=C>MA(C,10) OR H>=MA2;再上N:=C>O AND REF(C,1)< MA(C,10) AND 试摸N AND 破N AND MA(C,21)<MA(C,10);有⾏情:=再上N AND (CROSS(C,长期趋势) OR CROSS(L,长期趋势) OR CROSS(H,长期趋势)); DRAWTEXT(有⾏情,LOW-0.2,'●有⾏情'),COLORGREEN;VAR10B:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR11B:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2) <=REF(ZIG(3,6),3);VAR12B:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13B:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14B:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15B:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16B:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17B:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18B:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19B:=EMA(CLOSE,2)-EMA(CLOSE,150);买1B:=VAR10B;买2B:=(VAR11B+VAR13B+VAR15B+VAR17B);BB:=IF(买1B>0 OR 买2B>0 ,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;红买绿卖:IF(CROSS(BB,买1B),LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK5,COLORWHITE;⽜节点:=CROSS(EMA(C,5),EMA(C,30))AND CROSS(EMA(C,10),EMA(C,20));DRAWICON(⽜节点,L-0.1,13);CSAR:=SAR(10,2,20);持币:=IF(CSAR>=H,CSAR,0),CIRCLEDOT,COLORGREEN{持币};持股:=IF(CSAR<=L,CSAR,0),CIRCLEDOT,COLORRED{持股};⽣命线2:=EMA(SLOPE(C,21)*20+C,42),LINETHICK2,COLORYELLOW;{股价在上持,在下空仓}⽌损:=EMA(C,5),COLORYELLOW,LINETHICK1;{红持股绿持币黄观望}菩提B:=XMA(H,20);{此函数仅做参考线,为提前趋势预测线,上涨途中向下见顶,下跌途中向上见底};参买:=IF(⽌损>=REF(⽌损,1),⽌损,DRAWNULL),LINETHICK2,COLORRED;{持股前提} DRAWICON(CROSS(L,CSAR) AND 参买>0 AND H<菩提B AND 持股>0AND H>长期趋势,(LOW- 0.1),5);VVAR1D:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);短底:=EMA(VVAR1D,5);⽀撑:=HHV(短底,60);MAN:=(SMA(HIGH,21,2) * 1.05);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);中D:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);X1D:=EMA(中D,10);RSVD:=SMA(下档线,3,1);K⼤:=SMA(RSVD,3,1);D⼤:=((3 * RSVD) - (2 * K⼤));J12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);RSV24:=SMA(J12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));压⼒位:=IF(CROSS(D24,D⼤),HIGH,REF(HIGH,BARSLAST(CROSS(D24,D⼤)))),COLORFFFFFF;⽜浮⾯:=CROSS(CLOSE,MA20) AND HIGH < 压⼒位 AND OPEN < MA20。
通达信指标公式源码 主图源码 说明 无未来
PT:=REF(HIGH,1)-REF(LOW,1);CDP:=(HIGH + LOW + CLOSE)/3;买1:CDP+PT,COLORBLUE,DOTLINE;买2:CDP-PT,COLORFF00FF,DOTLINE;卖1:2*CDP-LOW,COLORYELLOW,DOTLINE;卖2:2*CDP-HIGH,DOTLINE;近高值:=IF(买1>卖1,卖1,买1);近低值:=IF(买2<卖2,卖2,买2);DRAWTEXT(ISLASTBAR,H,'近高值'),COLORRED ; DRAWNUMBER(ISLASTBAR,C,近高值),COLORGREEN; DRAWTEXT(ISLASTBAR,L,'近低值'),COLORRED ; DRAWNUMBER(ISLASTBAR,O,近低值),COLORYELLOW; AA:=(C-REF(C,1))/REF(C,1)*100;DRAWTEXT(AA<-5,H,'★'),COLORWHITE; DRAWNUMBER(AA<-5,O,L)COLORFF00FF;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) 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);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);VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 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 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR00FFFF;{黄色} STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2,0),COLORFF00FF;{粉红色} DRAWICON(VAR19,REF(CLOSE,1)*0.99,1);DRAWICON(VAR1A,REF(CLOSE,1)*1.01,2);DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.01,0,'===¥短线利器,低吸高抛¥==='),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.08,0,'===¥聚沙成塔,绝无深套¥==='),COLORFF6EC7;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.8,0,'【爱你=爱我温馨提示】===¥在黄色价位附近低吸?¥==='),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.85,0,'【爱你=爱我温馨提示】===¥在绿色价位附近高抛?¥==='),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.9,0,'【爱你=爱我温馨提示】===¥在粉红色价位附近逃命?¥==='),COLORFF00FF;。
通达信指标公式源码最牛的抄底追涨公式无未来
通达信指标公式源码最牛的抄底追涨公式无未来抄底追涨实战公式DEFDRAWICON(T1,T2,SHORT):REF(L,T1)>REF(LLV(L,T2),T1)ANDREF(L,T1)<REF(HHV(H,T2),T1)ANDC<REF(O,T1)ANDC>REF(C,T1)ANDC=HHV(H,T1)ANDC<REF(HHV(H,T2),T1)ANDSHORT>REF(MA(C,SHORT),T1)?1:01,DEFDRAWICON(T1,T2,SHORT)定义函数使用3个参数,T1,T2,SHORT。
2,REF(L,T1),取最近T1日内的最低价;3,REF(LLV(L,T2),T1),取最近T1日内,T2日内的最低价的最低价;4,REF(L,T1)>REF(LLV(L,T2),T1),判断最近T1日内的最低价是否大于最近T1日内,T2日内的最低价的最低价;5,REF(L,T1)<REF(HHV(H,T2),T1),判断最近T1日内的最低价是否小于最近T1日内,T2日内的最高价的最高价;6,C<REF(O,T1),判断当日收盘价是否小于最近T1日开盘价;7,C>REF(C,T1),判断当日收盘价是否大于最近T1日收盘价;8,C=HHV(H,T1),判断当日收盘价是否等于最近T1日内的最高价;9,C<REF(HHV(H,T2),T1),判断当日收盘价是否小于最近T1日内,T2日内的最高价的最高价;10,SHORT>REF(MA(C,SHORT),T1),判断当日SHORT均线是否大于最近T1日内当日SHORT均线;11,?1:0,符合上述条件就返回1,否则返回0。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
EMA13:EMA(C,13),COLORWHITE;
EMA21:EMA(C,21),COLORYELLOW;
EMA34:EMA(C,34),COLORFF00FF;
EMA60:MA(C,60),COLORFFCC66;
VAR2:=(2*CLOSE+HIGH+LOW)/4;
VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);
VAR4:=LLV(LOW,5);
VAR5:=HHV(HIGH,4);
散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;
庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;
DRAWTEXT(CROSS(散户,庄家) AND 散户<50 AND 29<散户,L-0.05,'短进'),COLORMAGENTA;
DRAWTEXT(CROSS(庄家,散户) AND 散户>40 AND 71>散户,H+0.05,'短出'),COLORGREEN;
DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'低吸'),COLORWHITE; DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'高减'),COLORYELLOW; DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);
DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);
VAR9:=CLOSE-REF(CLOSE,5);
VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);
VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20);
卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);
DRAWTEXT(VARA>0 AND CROSS(VARC,VARA),H+0.05,'中线逃!'),COLORYELLOW; DRAWICON(卖出<0,H+0.05,2);
买线:=EMA(CLOSE,2);
卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA; S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW; 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,LINETHICK3,COLORGREEN;。