波段买点公式、源码操盘手通用[通达信公式]
相关标签:
VR1:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
VR2:=SMA(VR1,3,1);
VR3:=SMA(VR2,3,1);
VR4:=SMA(VR3,3,1);
VR5:=CROSS(VR3,VR4) AND VR3<20;
VR8:=CROSS(VR2,VR3) AND VR3>80 AND VR3>VR4;
VR9:=CROSS(VR4,VR3) AND VR3>80;
顶:100,LINETHICK2,COLORGRAY;
弱:25,LINETHICK2;
底:10,LINETHICK2,COLORGRAY;
VAR02:=REF(LOW,1);
VAR03:=SMA(ABS(LOW-VAR02),3,1)/SMA(MAX(LOW-VAR02,0),3,1)*100;
VAR04:=EMA(IF(CLOSE*1.2,VAR03*10,VAR03/10),3);
VAR05:=LLV(LOW,38);
VAR06:=HHV(VAR04,38);
VAR07:=IF(LLV(LOW,90),1,0);
VAR08:=EMA(IF(LOW<=VAR05,(VAR04+VAR06*2)/2,0),3)/618*VAR07;
卖出线:= 99;
阶段卖:= 90;
趋势:=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);
卖出警戒: IF(趋势>=90,85,100),COLORFF00FF,LINETHICK2;
STICKLINE(卖出警戒=85,95,100,1,0),COLORFF00FF;
买:=MA(CLOSE,2);
卖:=(LOW+HIGH+CLOSE)/3;
奇:= MA(卖,5);
准:= HHV(奇,10);
{MACD背离死叉}
DIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA1:=EMA(DIF1,9);
MACD1:=2*(DIF1-DEA1);
MACD2:=EMA(MACD1,3);
A2A:=BARSLAST(REF(CROSS(DEA1,DIF1),1));
M顶背离:=REF(CLOSE,A2A+1)<CLOSE AND REF(DIF1,A2A+1)>DIF1 AND CROSS(DEA1,DIF1);
STICKLINE(M顶背离,50,100,0,1),COLORBLUE;
DRAWTEXT(FILTER(M顶背离,30),60,'M顶背离'),COLORBLUE;
二次死叉:=COUNT(CROSS(DEA1,DIF1),20)=2 AND CROSS(DEA1,DIF1);
STICKLINE(二次死叉,100,0,0,1);
DRAWTEXT(二次死叉,55,'二次死叉');
AA2A:=BARSLAST(REF(CROSS(DIF1,DEA1),1));
M底背离:=REF(CLOSE,AA2A+1)>CLOSE AND REF(DIF1,AA2A+1)<DIF1 AND CROSS(DIF1,DEA1);
STICKLINE(M底背离,0,50,0,1),COLORDD00DD;
DRAWTEXT(FILTER(M底背离,20),50,'M底背离'),COLORDD00DD;A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));
B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
KDJ底背离:STICKLINE(FILTER(B2>0,5),0,80,3,0),COLORYELLOW;{5天内B2>0的条件不被记录在内,在当前周期内出现B>0画黄色柱线}
DRAWTEXT(FILTER(B2>0,5),80,'KDJ底背离'),COLORYELLOW;
A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
RSI底背离:STICKLINE(FILTER(B3>0,5),0,25,3,0),COLORFFCC66;{5天内B3>0的条件不被记录在内,在当前周期内出现B3>0画青色柱线}
DRAWTEXT(FILTER(B3>0,5),25,'RSI底背离'),COLORFFCC66;
C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));
D2:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));
KDJ顶背离:STICKLINE(FILTER(D2>0,5),2,21,3,0),COLOR00FF00;{5天内D2>0的条件不被记录在内,在当前周期内出现D2>0画红色柱线}
DRAWTEXT(FILTER(D2>0,5),22,'KDJ顶背离'),COLOR00FF00;
C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));
RSI顶背离:STICKLINE(FILTER(D3>0,5),2,75,3,0),COLOR6A00B5;
{5天内D3>0的条件不被记录在内,在当前周期内出现D3>0画粉色柱线}
DRAWTEXT(FILTER(D3>0,5),75,'RSI顶背离'),COLOR6A00B5;
短卖奇准:IF(HHV((买<准),10),100,50),LINETHICK3;
STICKLINE(NOT(HHV((买<准),10)),90,95,1,0);
急卖奇准:IF(HHV((买<准),5),100,50),LINETHICK2;
STICKLINE(NOT(HHV((买<准),5)),85,90,1,0),COLORFF6699;
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100;
V1:=LLV(LOW,10);
V2:=HHV(H,25);
价位线:=EMA((C-V1)/(V2-V1)*4,4);
买卖线:价位线*33;
C0:=REF(C,2)*0.865;
C1:=REF(C,13)*0.772;
DSY:=100*VOL/CAPITAL;
抄底:IF((C-MIN(C0,C1))/C<0.1 AND SUM(DSY,5)/5<1.8,10, 0),LINETHICK3,COLORRED;
DRAWTEXT(FILTER(抄底=10,30),13,'抄底'),COLORRED;
金牌买:IF(CROSS(价位线,0.3),45,0),LINETHICK3,COLORRED;
DRAWTEXT(FILTER(CROSS(价位线,0.3),30),50,'金牌买'),COLORRED;
DRAWTEXT(FILTER(VR5,10)=1,21,'底'),COLORRED;
STICKLINE(FILTER(VR5,10)=1,0,20,2,0),COLORRED;
STICKLINE(FILTER(VR9,5)=1,80,100,2,0),COLORGREEN;
金牌卖:IF(CROSS(3.5,价位线),45,0),LINETHICK3,COLORGREEN;
DRAWTEXT(FILTER(CROSS(3.5,价位线),30),50,'金牌卖'),COLORGREEN;
DRAWTEXT(FILTER(VR9,5)=1,79,'顶'),COLORGREEN;
STICKLINE(VR8,85,100,2,0),COLOR0099FF;
抄底3日内:COUNT(抄底>0,3)>=1;
DRAWTEXT_FIX(C>O,0.01,0.9,0,' WWW.CXH99.COM '),COLORRED;
DRAWTEXT_FIX(C>O,1,1,0,'程序化交易模型'),COLORRED;
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容