UP狙击线(通达信公式 副图 源码 测试图)

[复制链接]
查看84 | 回复0 | 2022-6-27 14:14:21 | 显示全部楼层 |阅读模式
 
周期锁定:=1;
TIMELOCK:=(TIME>090500 AND TIME<154000);
VAR21:=(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));
抄:=IFF(CROSS(VAR21,3),100,0);
逃:=IFF(CROSS(96,VAR21),100,0);
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE-LC),0),5,1)/SMA(ABS((CLOSE-LC)),5,1))*100);
RSI10:=SMA(MAX(CLOSE-LC,0),10,1)/SMA(ABS(CLOSE-LC),10,1)*100;
TR1:=SUM(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((LOW-REF(CLOSE,1)))),10);
HD:=(HIGH-REF(HIGH,1));
LD:=(REF(LOW,1)-LOW);
DMP:=SUM(IFF(((HD>0) AND (HD>LD)),HD,0),10);
DMM:=SUM(IFF(((LD>0) AND (LD>HD)),LD,0),10);
PDI:=((DMP*100)/TR1);
MDI:=((DMM*100)/TR1);
ADX:=MA(((ABS((MDI-PDI))/(MDI+PDI))*100),5);
AV:=(RSI5+ADX);
DXR:=(((ADX+REF(ADX,5))/2)+RSI5);
WR10:=((100*(HHV(HIGH,10)-CLOSE))/(HHV(HIGH,10)-LLV(LOW,10)));
NEWVOL:=(RSI5-WR10);
 
狙击线:IFF(周期锁定,(AV+NEWVOL),DRAWNULL),COLORYELLOW;
最佳买入选股:=IFF(CROSS(狙击线,0),1,0);
最佳卖出选股:=IFF(CROSS(250,狙击线),1,0);
VAR1:=SMA(最佳买入选股,3,1);
VAR11:=SMA(最佳卖出选股,3,1);
VAR2:=SMA(VAR1,3,1),COLOR0000FF;
VAR22:=SMA(VAR11,3,1),COLOR0000FF;
VAR3:=SMA(VAR2,3,1),COLOR00FFFF;
VAR33:=SMA(VAR22,3,1),COLOR00FFFF;
建仓买点:=IFF(CROSS(VAR2,VAR3) AND (VAR2<40),5,0*10000);
出场卖点:=IFF(CROSS(VAR33,VAR22) AND (VAR33<2),5,0*10000);
 
RSV:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*50); 
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
X:=(LLV(J,2)==LLV(J,8)); 
最佳买入时机:=IFF(CROSS(J,3),1,0) ;
最佳卖出时机:=RSI10<REF(RSI10,1) AND REF(RSI10,1)>80;
底:=建仓买点 OR 最佳买入时机;
顶:=出场卖点 OR 最佳卖出时机;
 
RSVV:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*100); 
KK:=SMA(RSVV,3,1);
DD:=SMA(KK,3,1);
JJ:=3*KK-2*DD;
上拐点:=JJ>REF(JJ,1) AND REF(JJ,1)<REF(JJ,2) AND JJ<40;
底钝化:=COUNT(上拐点,7)>=2;
下拐点:=JJ<REF(JJ,1) AND REF(JJ,1)>REF(JJ,2) AND JJ>60;
顶钝化:=COUNT(下拐点,7)>=2;
 
抄底:=抄 AND 底 AND TIMELOCK AND REF(RSI10,1)<20 AND 底钝化;
逃顶:=逃 AND 顶 AND TIMELOCK AND 顶钝化 ;
 
分钟5锁定:=(PERIOD==0);
XDGD:=HHV(REF(H,1),156);
XDDD:=LLV(REF(L,1),156);
开盘狙击D:=FILTER((REF(C,1)<=REF(XDGD,1) AND CLOSE>XDGD) AND BETWEEN(TIME,90000,91500) AND 分钟5锁定,6),NODRAW;
开盘狙击K:=FILTER((REF(C,1)>=REF(XDDD,1) AND CLOSE<XDDD) AND BETWEEN(TIME,90000,91000) AND 分钟5锁定,6),NODRAW;
小周期锁定:=IFF(PERIOD==0 OR PERIOD==1 OR PERIOD==2,1,0); 
仅限5至30分钟:IFF(小周期锁定==0,1,DRAWNULL),NODRAW,COLORWHITE;
开多仓狙击:IFF((抄底 AND 周期锁定) OR 开盘狙击D,100,0),COLORRED,LINETHICK2;
开空仓狙击:IFF((逃顶 AND 周期锁定) OR 开盘狙击K,200,300),COLORFFFF00,LINETHICK2;

20226241431624475.png

20226241431624475.png
 

20226241433283970.png

20226241433283970.png
 

20226241433969494.png

20226241433969494.png

20226241425855186.rar

3.76 KB, 下载次数: 0

售价: 4 金钱  [记录]  [购买]

20226241425855186.rar

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则