2024资金短买 切莫恋战《通达信+指标+公式+副图+源码》
副图公式源码支持 手机/电脑
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=DMA((((G4+G2)+(G1*2))/4),0.9);
GUP2:=REF(EMA(GUP1,3),1);
GUP3:=(VOL/(((G4-G2)*2)-ABS((G1-G3))));
GUP4:=(IF((G1>G3),(GUP3*(G4-G2)),IF((G1 < G3),(GUP3*((G4-G3)+(G1-G2))),(VOL/2)))+IF((G1>G3),(0-(GUP3*((G4-G1)+(G3-G2)))),IF((G1 < G3),(0-(GUP3*(G4-G2))),(0-(VOL/2)))));
GUP5:=(VOL/CAPITAL);
GUP6:=IF((GUP5>10),10,GUP5);
GUP7:=((GUP4/20)/1.15);
GUP8:=(((GUP7*0.55)+(REF(GUP7,1)*0.33))+(REF(GUP7,2)*0.22));
GUP9:=EMA(GUP8,8);
GUP10:=EMA(GUP8,3);
GUP11:=(GUP7*0.4+GUP10);
进1:REF(GUP11,1)<0 AND GUP11>REF(GUP11,1) AND C/REF(C,1)<1.04 AND GUP11>0,COLORRED,LINETHICK2 ;
进2:REF(GUP11,1)>0 AND GUP11+REF(GUP11,1) >0 AND REF(C,1)/C>1.04 AND GUP11<0 AND GUP11>-5000,COLORRED,LINETHICK2 ;
卖:GUP11>0 AND REF(GUP11,1)<0 AND C/REF(C,1)>1.04,COLORGREEN,LINETHICK2;
DRAWTEXT(进1,0.85,' 抄1'), COLORRED;
DRAWTEXT(进2,0.85,' 抄2'), COLORRED;
DRAWTEXT(卖,0.85,' 逃'), COLORGREEN;
选股公式源码
{选股公式一:抄1}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=DMA((((G4+G2)+(G1*2))/4),0.9);
GUP2:=REF(EMA(GUP1,3),1);
GUP3:=(VOL/(((G4-G2)*2)-ABS((G1-G3))));
GUP4:=(IF((G1>G3),(GUP3*(G4-G2)),IF((G1 < G3),(GUP3*((G4-G3)+(G1-G2))),(VOL/2)))+IF((G1>G3),(0-(GUP3*((G4-G1)+(G3-G2)))),IF((G1 < G3),(0-(GUP3*(G4-G2))),(0-(VOL/2)))));
GUP5:=(VOL/CAPITAL);
GUP6:=IF((GUP5>10),10,GUP5);
GUP7:=((GUP4/20)/1.15);
GUP8:=(((GUP7*0.55)+(REF(GUP7,1)*0.33))+(REF(GUP7,2)*0.22));
GUP9:=EMA(GUP8,8);
GUP10:=EMA(GUP8,3);
GUP11:=(GUP7*0.4+GUP10);
进1:=REF(GUP11,1)<0 AND GUP11>REF(GUP11,1) AND C/REF(C,1)<1.04 AND GUP11>0,COLORRED,LINETHICK2 ;
抄1:进1;
{选股公式二:抄2}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=DMA((((G4+G2)+(G1*2))/4),0.9);
GUP2:=REF(EMA(GUP1,3),1);
GUP3:=(VOL/(((G4-G2)*2)-ABS((G1-G3))));
GUP4:=(IF((G1>G3),(GUP3*(G4-G2)),IF((G1 < G3),(GUP3*((G4-G3)+(G1-G2))),(VOL/2)))+IF((G1>G3),(0-(GUP3*((G4-G1)+(G3-G2)))),IF((G1 < G3),(0-(GUP3*(G4-G2))),(0-(VOL/2)))));
GUP5:=(VOL/CAPITAL);
GUP6:=IF((GUP5>10),10,GUP5);
GUP7:=((GUP4/20)/1.15);
GUP8:=(((GUP7*0.55)+(REF(GUP7,1)*0.33))+(REF(GUP7,2)*0.22));
GUP9:=EMA(GUP8,8);
GUP10:=EMA(GUP8,3);
GUP11:=(GUP7*0.4+GUP10);
进2:=REF(GUP11,1)>0 AND GUP11+REF(GUP11,1) >0 AND REF(C,1)/C>1.04 AND GUP11<0 AND GUP11>-5000,COLORRED,LINETHICK2 ;
抄2:进2;
{卖出公式:逃}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=DMA((((G4+G2)+(G1*2))/4),0.9);
GUP2:=REF(EMA(GUP1,3),1);
GUP3:=(VOL/(((G4-G2)*2)-ABS((G1-G3))));
GUP4:=(IF((G1>G3),(GUP3*(G4-G2)),IF((G1 < G3),(GUP3*((G4-G3)+(G1-G2))),(VOL/2)))+IF((G1>G3),(0-(GUP3*((G4-G1)+(G3-G2)))),IF((G1 < G3),(0-(GUP3*(G4-G2))),(0-(VOL/2)))));
GUP5:=(VOL/CAPITAL);
GUP6:=IF((GUP5>10),10,GUP5);
GUP7:=((GUP4/20)/1.15);
GUP8:=(((GUP7*0.55)+(REF(GUP7,1)*0.33))+(REF(GUP7,2)*0.22));
GUP9:=EMA(GUP8,8);
GUP10:=EMA(GUP8,3);
GUP11:=(GUP7*0.4+GUP10);
卖:=GUP11>0 AND REF(GUP11,1)<0 AND C/REF(C,1)>1.04,COLORGREEN,LINETHICK2;
逃:卖;