通达信买卖决策副图源码
TYP:=(H+L+C)/3;
LC:=REF(C,1);
{NO.1}
VAR001:=(TYP-MA(TYP,15))/(0.016*AVEDEV(TYP,15));
VAR002:=SMA(MAX(C-LC,0),6,1)/SMA(ABS(C-LC),6,1)*100;
B001:=IF(CROSS(VAR001,-150),1,0);
S001:=IF(CROSS(80,VAR002),1,0);
{NO.2}
VAR003:=EMA(100*(C-LLV(L,31))/(HHV(H,31)-LLV(L,31)),3)/4;
B002:=IF(VAR003<1,1,0);
S002:=IF(VAR003>23,1,0);
{NO.3}
VAR004:=(C-LLV(L,18))/(HHV(H,18)-LLV(L,18))*100;
VAR005:=EMA(VAR004,3);
VAR006:=EMA(VAR005,3);
VAR007:=(3*VAR005-2*VAR006);
VAR008:=REF(COUNT(VAR007<REF(VAR007,1),5)>=3,1) AND REF(VAR007,1)<20;
VAR009:=VAR007>REF(VAR007,1);
B003:=IF(FILTER(VAR008 AND VAR009,3),1,0);
{NO.4}
VAR010:=AMOUNT/VOL/1000;
VAR011:=(3*H+L+O+2*C)/7;
VAR012:=SUM(AMOUNT,13)/VAR010/1000;
VAR013:=DMA(VAR011,VOL/VAR012);
VAR014:=(CLOSE-VAR013)/VAR013*1000;
B004:=IF(CROSS(VAR014,-166),1,0);
B005:=IF(CROSS(VAR014,-120),1,0);
B006:=IF(CROSS(VAR014,-88),1,0);
{NO.5}
VAR015:=(TYP-MA(TYP,15))/(0.015*AVEDEV(TYP,15));
VAR016:=(TYP-MA(TYP,70))/(0.015*AVEDEV(TYP,70));
VAR017:=IF(VAR015>=150 AND VAR015<200 AND VAR016>=150 AND VAR016<200,100,0);
VAR018:=0-IF(VAR016>=200,200,VAR017)+400;
S003:=IF(VAR018=300,1,0);
{NO.6}
VAR019:=DMA((3*H+L+O+2*C)/7,VOL/(SUM(AMOUNT,13)/(AMOUNT/VOL/1000)/1000));
B007:=IF(CROSS((C-VAR019)/VAR019*1000,-166),1,0);
{NO.7}
VAR020:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
VAR021:=SMA(VAR020,2,1);
B008:=IF(VAR021<10,1,0);
{NO.8}
VAR022:=SUM(IF(TYP>REF(TYP,1),TYP*VOL,0),5)/SUM(IF(TYP<REF(TYP,1),TYP*VOL,0),5);
MFI:=IF(CROSS(100-(100/(1+VAR022)),20),1,0);
RSI:=SMA(MAX(C-LC,0),5,1)/SMA(ABS(C-LC),5,1)*100;
B009:=IF(MFI,1,0);
B010:=IF(CROSS(RSI,20),1,0);
{NO.9}
VAR023:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
VAR024:=REF(C,VAR023+1)>C AND REF("RSI.RSI1"(6,12,24),VAR023+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
VAR025:=IF(VAR024>0,1,0);
B011:=IF(VAR025,1,0);
{NO.10}
VAR026:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
VAR027:=(TYP-MA(TYP,70))/(0.015*AVEDEV(TYP,70));
VAR028:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR029:=100-ABS(VAR028);
VAR030:=IF(BARSCOUNT(C)<13,100,IF(VAR029<88 AND VAR028>0,1,0));
VAR031:=IF(BARSCOUNT(C)<13,-100,0-IF(VAR029<92 AND VAR028<0,1,0));
VAR032:=IF(BARSCOUNT(C)<70,1,IF(VAR027>=200 AND VAR026>=150,1,0));
B012:=IF(VAR031,1,0);
S004:=IF(VAR030,1,0);
S005:=IF(VAR032,1,0);
{NO.11}
VAR033:=SMA(MAX(C-LC,0),4.1,1)/SMA(ABS(C-LC),4.1,1)*100;
VAR034:=3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1);
B013:=IF(CROSS(VAR033,11)*80,1,0);
B014:=IF(CROSS(VAR034,3),1,0);
B015:=IF(VAR034<=3,1,0);
B016:=IF(VAR034<5,1,0);
B017:=IF(VAR034<7,1,0);
{NO.12}
VAR035:=AMOUNT/VOL;
VAR036:=L<VAR035*0.9;
VAR037:=(C-LC)/LC*100>1.2;
VAR038:=L< MA(C,5)*0.921;
VAR039:=VOL< MA(V,5)*1.5;
B018:=IF(VAR036 AND VAR037 AND VAR038 AND VAR039,1,0);
{NO.13}
VAR040:=100-3*(SMA(((C-LLV(L,75))/(HHV(H,75)-LLV(L,75)))*100,20,1))+2*(SMA(SMA(((C-LLV(L,75))/(HHV(H,75)-LLV(L,75)))*100,20,1),15,1));
VAR041:=100-3*(SMA(((O-LLV(L,75))/(HHV(H,75)-LLV(L,75)))*100,20,1))+2*(SMA(SMA(((O-LLV(L,75))/(HHV(H,75)-LLV(L,75)))*100,20,1),15,1));
VAR042:=VAR040<REF(VAR041,1) AND VOL>REF(VOL,1) AND C>LC;
VAR043:=((HHV(H,21)-C)/(HHV(H,21)-LLV(L,21)))*100-10;
VAR044:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR045:=SMA(VAR044,13,8);
VAR046:=SMA(VAR043,21,8);
VAR047:=SMA(VAR045,13,8);
VAR048:=FILTER((COUNT((VAR047-VAR046<(-65)),3)=3),34);
VAR049:=MA(C,80)-(MA(C,13))/(3);
VAR050:=MA((C-VAR049)/(VAR049),1);
VAR051:=(EMA(VAR050,12))*0.69999998;
VAR052:=EMA(VAR050,3);
VAR053:=IF((LLV(VAR052-VAR051,12)>0),0,(-30));
VAR054:=FILTER((COUNT((VAR053<(-20)),3)=3),34);
B019:=IF(VAR048,1,0);
B020:=IF(VAR054,1,0);
{NO.14}
VAR055:=C/REF(C,1)>1.045;
VAR056:=C/HHV(H,34)<0.7;
VAR057:=MAX(FORCAST(COST(24)/L,3),SMA(COST(24)/L,3,1))>1.526 ;
VAR058:=VAR055 AND VAR056 AND VAR057;
B021:=IF(VAR058,1,0);
{NO.15}
VAR059:=LLV(L,60);
VAR060:=HHV(H,60);
VAR061:=EMA((C-VAR059)/(VAR060-VAR059)*100,5);
VAR062:=EMA(0.667*REF(VAR061,1)+0.333*VAR061,2);
VAR063:=CROSS(VAR062,VAR061) AND VAR061>85;
S006:=IF(VAR063,1,0);
{NO.16}
VAR064:=REF(L,1);
VAR065:=SMA(ABS(L-VAR064),13,1)/SMA(MAX(L-VAR064,0),13,1)*4;
VAR066:=EMA(VAR065,13);
VAR067:=LLV(L,34);
VAR068:=EMA(IF(L<=VAR067,VAR066,0),3);
B022:=IF(VAR068>REF(VAR068,1),1,0);
{NO.17}
VAR069:=IF(HHV((MA(C,1)<HHV(MA(TYP,5),10)),5),0,1);
VAR070:=IF(LLV((MA(C,1)<LLV(MA(TYP,5),10)),5),1,0);
- 上一篇公式:通达信如意筹码突破 副图/选股源码
- 下一篇公式:通达信攻击力度公式,用于抄底有奇效源码