通达信买卖决策副图源码
VAR071:=IF(LLV((MA(C,1)<LLV(MA(TYP,5),10)),10),1,0);
S007:=IF(VAR069,1,0);
B023:=IF(VAR070,1,0);
B024:=IF(VAR071,1,0);
{NO.18}
VAR072:=SUM(MAX(MAX((H-L),ABS((H-LC))),ABS((LOW-LC))),5);
VAR073:=H-REF(H,1);
VAR074:=REF(L,1)-L;
VAR075:=SUM(IF(((VAR073>0)AND(VAR073>VAR074)),VAR073,0),5);
VAR076:=SUM(IF(((VAR074>0)AND(VAR074>VAR073)),VAR074,0),5);
VAR077:=(VAR075*100)/VAR072;
VAR078:=(VAR076*100)/VAR072;
VAR079:=MA(((ABS((VAR078-VAR077))/(VAR078+VAR077))*100),3);
VAR080:=IF(((VAR079>88)AND(VAR077<5.8)),80,0);
B025:=IF(VAR080,1,0);
{NO.19}
VAR081:=INDEXV*INDEXC;
VAR082:=EMA(VAR081,5)/EMA(INDEXV,5);
VAR083:=(INDEXC-VAR082)/VAR082*100;
VAR084:=VAR083<=-1.5 AND VAR083>-100;
VAR085:=SUM(VAR084>0,11)/SUM(VAR084=0,11);
VAR086:=VAR085<5 AND VAR085>=0.25;
VAR087:=(TYP-MA(TYP,13))/(0.015*AVEDEV(TYP,13));
VAR088:=EMA(VAR087,3);
VAR089:=SUM(MAX(0,H-REF(TYP,1)),21)/SUM(MAX(0,REF(TYP,1)-L),21)*100;
VAR090:=REF(MA(VAR089,3),2.2);
VAR091:=CROSS(VAR090,VAR089) AND VAR089>150;
VAR092:=IF(VAR086 AND CROSS(VAR087,VAR088),1,0),,COLORRED;
VAR093:=IF(VAR091,1,0),,COLORGREEN;
S008:=IF(VAR093,1,0);
B026:=IF(VAR092,1,0);
{NO.20}
VAR094:="RSI.RSI1"(3,14,24);
VAR095:="RSI.RSI2"(3,14,24);
VAR096:=IF((VAR095-VAR094)/VAR094>5,50,0);
B027:=IF(VAR096,1,0);
{NO.21}
VAR097:=REF(L,1);
VAR098:=SMA(ABS(L-VAR097),3,1)/SMA(MAX(LOW-VAR097,0),3,1)*100;
VAR099:=EMA(IF(C*1.2,VAR098*10,VAR098/10),3);
VAR100:=LLV(L,38);
VAR101:=HHV(VAR099,38);
VAR102:=IF(LLV(L,90),1,0);
VAR103:=EMA(IF(L<=VAR100,(VAR099+VAR101*2)/2,0),3)/618*VAR102;
VAR104:=VAR103>5;
VAR105:=REF((L+O+C+H)/4,1);
VAR106:=SMA(ABS(L-VAR105),13,1)/SMA(MAX(L-VAR105,0),10,1);
VAR107:=EMA(VAR106,10);
VAR108:=LLV(L,33);
VAR109:=EMA(IF(L<=VAR108,VAR107,0),3);
B028:=IF(COUNT(VAR104,2)=2 AND VAR109>REF(VAR109,1),1,0);
{NO.22}
VAR110:=SMA(MAX(C-LC,0),5,1)/SMA(ABS(C-LC),5,1)*100;
VAR111:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
VAR112:=SMA(VAR111,3,1);
VAR113:=SMA(VAR112,3,1);
VAR114:=(VAR113/2+40)*1.1;
VAR115:=SMA(VAR114,3,1);
VAR116:=IF(CROSS(VAR115,VAR110),1,0);
VAR117:=IF(CROSS(80,VAR110),1,0);
S009:=IF(VAR116,1,0);
S010:=IF(VAR117,1,0);
{NO.23}
VAR118:=(2*C+H+L)/4;
VAR119:=EMA((VAR118-LLV(L,34))/(HHV(H,34)-LLV(L,34))*100,6);
VAR120:=EMA(0.667*REF(VAR119,1)+0.333*VAR119,4);
VAR121:=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);
VAR122:=SMA(MAX(C-LC,0),6,1)/SMA(ABS(C-LC),6,1)*100;
VAR123:=100*VOL/CAPITAL;
VAR124:=IF(IF(COUNT(C<LC,8)/8>0.3 AND COUNT(VAR119>VAR120,3) AND REF(L,1)=LLV(L,120) AND C>O,1,0),52,0);
VAR125:=IF(CROSS(VAR121,3),52,0);
VAR126:=IF(CROSS(84,VAR122),(-1)*VAR122,0);
VAR127:=IF(REF(0.34*VAR123,1)>4 AND REF(0.34*VAR123,1)<4.2,-60,0);
B029:=IF(VAR124,1,0);
B030:=IF(VAR125,1,0);
S011:=IF(VAR126,1,0);
S012:=IF(VAR127,1,0);
{NO.24}
VAR128:=SMA(MAX(C-LC,0),18,1)/SMA(ABS(C-LC),18,1)*100;
VAR129:=SMA(MAX(C-LC,0),5,1)/SMA(ABS(C-LC),5,1)*100;
S013:=IF(CROSS(68,VAR128),1,0);
S014:=IF(CROSS(84,VAR129),1,0);
{NO.25}
VAR130:=IF(C/O>1.02 AND "BIAS.BIAS3"<-13,1,0);
B031:=IF(VAR130,1,0);
{NO.26}
VAR131:=SUM(MAX(MAX(H-L,ABS(H-LC)),ABS(L-LC)),7);
VAR132:=H-REF(H,1);
VAR133:=REF(L,1)-L;
VAR134:=SUM(IF(VAR132>0 AND VAR132>VAR133,VAR132,0),7);
VAR135:=SUM(IF(VAR133>0 AND VAR133>VAR132,VAR133,0),7);
VAR136:=VAR134*100/VAR131;
VAR137:=VAR135*100/VAR131;
VAR138:=MA(ABS(VAR137-VAR136)/(VAR137+VAR136)*100,3);
B032:=IF(VAR138>90 AND VAR136=0,1,0);
【买点】:B001+B002+B003+B004+B005+B006+B007+B008+B009+B010+B011+B012+B013+B014+B015+B016+B017+B018+
B019+B020+B021+B022+B023+B024+B025+B026+B027+B028+B029+B030+B031+B032,COLOR0000FF,NODRAW;
【风险】:S001+S002+S003+S004+S005+S006+S007+S008+S009+S010+S011+S012+S013+S014,COLOR00EE00,NODRAW;
STICKLINE(【买点】,0,【买点】*5,0,0),COLORGREEN;
STICKLINE(【风险】,0,【风险】*8,0,0),COLORFF00FF;
ZZ:=VAR121>REF(VAR121,1) AND REF(VAR121,1)<12;
买点累和:SUM(【买点】,21),COLOR880088,NODRAW;
STICKLINE(FILTER(买点累和>50&&ZZ,5),66,0,3,0),COLORRED;
VV:=SMA(VAR121,5,4);
RR:=SUM(CROSS(VAR121,VV),2)>0;
FF:=VAR121<REF(VAR121,1) AND REF(VAR121,1)>80;
MM:=REF(【买点】,1)>=6 AND 【买点】<REF(【买点】,1);
SS:=REF(【风险】,1)>=4 AND 【风险】<REF(【风险】,1);
STICKLINE(FILTER(ZZ&&MM,3),0,66,3,0),COLOR00FFFF;
STICKLINE(FILTER(RR&&MM,3),0,36,3,0),COLORFF66FF;
STICKLINE(SS&&FF,0,66,3,0),COLORFF8800;
趋势:VAR121,COLOR00AAFF,LINETHICK1,NODRAW;
DRAWBAND(趋势,RGB(255,155,0),VV,RGB(0,0,155));
DRAWICON(【风险】>=3,90,2);
DRAWICON(【买点】>=6,90,1);
DRAWNUMBER(【风险】>=3,100,(【风险】)),COLOR00FF00;
DRAWNUMBER(【买点】>=6,100,(【买点】)),COLOR00FFFF;
- 上一篇公式:通达信如意筹码突破 副图/选股源码
- 下一篇公式:通达信攻击力度公式,用于抄底有奇效源码