[原创]问一下这个指标 [文华财经]
-
咨询内容:
SJ:=IFELSE(DATE+20000000<20210413,1,0);//什么时间到期就写什么时间
//减3天,上面时间提前1天到期29号28号就提示
N:=15;
M1:=5;
M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K9:=SMA(RSV,M1,1),NODRAW;
D9:=SMA(K9,M2,1),NODRAW;
J:=3*K9-2*D9;
RK:=MA(K9,15),NODRAW;
RD:=MA(D9,15),NODRAW;
RJ:=MA(J,15),NODRAW;
//DRAWTEXT(CROSS(RK,RD)&&RD<20,RK*0.80,'多',COLORRED,FONTSIZE15,VALIGN0;
//DRAWTEXT(CROSS(RD,RK)&&RD>80,RK*1.05,'空',COLORGREEN,FONTSIZE15,VALIGN2;
N6:=34; M16:=9; M26:=3;//以前是9 RSV6:=(CLOSE-LLV(LOW,N6))/(HHV(HIGH,N6)-LLV(LOW,N6))*100,NODRAW; K96:=SMA(RSV,M16,1),NODRAW; D96:=SMA(K9,M26,1),NODRAW; J6:=3*K96-2*D96,NODRAW; RK6:=MA(K96,34),NODRAW; RD6:=MA(D96,34),NODRAW; RJ6:=MA(J6,34),NODRAW; //DRAWTEXT(CROSS(RK6,RD6)&&RD6<20,RK6*0.80,'多',COLORRED,FONTSIZE16,VALIGN0; //DRAWTEXT(CROSS(RD6,RK6)&&RD6>80,RK6*1.05,'空',COLORGREEN,FONTSIZE16,VALIGN2;
N8:=80; M18:=3; M28:=3; RSV8:=(CLOSE-LLV(LOW,N8))/(HHV(HIGH,N8)-LLV(LOW,N8))*100,NODRAW; K98:=SMA(RSV8,M18,1),NODRAW; D98:=SMA(K98,M28,1),NODRAW; J8:=3*K98-2*D98,NODRAW; RK8:=MA(K98,80),NODRAW; RD8:=MA(D98,80),NODRAW; RJ8:=MA(J8,80),NODRAW; DRAWTEXT(CROSS(RK8,RD8)&&RD8<20,25,'多',COLORMAGENTA,FONTSIZE18,VALIGN2; DRAWTEXT(CROSS(RD8,RK8)&&RD8>80,79,'空',COLORCYAN,FONTSIZE18,VALIGN0;
//-------- 严重超买:100*SJ,COLORRED,DOT; 超买:80,COLORRED,DOT;
超卖:20,COLOR00FF00,DOT; 严重超卖:0*SJ,COLOR00FF00,DOT;
//VAR1:=((CLOSE - LLV(LOW,15))/(HHV(HIGH,15) - LLV(LOW,15)))*(100); //VAR2:=REVERSE(VAR1); //VAR3:=SMA(VAR1,5,1); //K:=SMA(VAR3,3,1); //D:=SMA(K,3,1); //STICKLINE((K >= D),K,D,6,0),COLORRED; //STICKLINE((K <= D),K,D,6,0),COLOR008800;
REFLINE: 0, 20, 50, 80, 100; RSV886:=((CLOSE+O)/2-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100,NODRAW; K8886:=SMA(RSV886,5,1),NODRAW; D8886:SMA(K8886,3,1),COLORRED,NODRAW; //PARTLINE1(D8886<REF(D8886,1),D8886),COLORGREEN,NODRAW; X8886:=EMA(C,3),NODRAW; AX8886:=EMA(C,20),NODRAW; FILLRGN1(X8886>AX8886,0,15),COLORRED; FILLRGN1(X8886<AX8886,100,85),COLORGREEN;
//VAR18:=((CLOSE - LLV(LOW,80))/(HHV(HIGH,80) - LLV(LOW,80)))*(100),NODRAW; //VAR28:=REVERSE(VAR18),NODRAW; //VAR38:=SMA(VAR18,3,1),NODRAW; //K8:=SMA(VAR38,3,1),NODRAW; //D8:=SMA(K8,3,1),NODRAW; //STICKLINE((K8 >= D8),K8,D8,6,0),COLORMAGENTA,NODRAW; //STICKLINE((K8 <= D8),K8,D8,6,0),COLORCYAN,NODRAW;
REFLINE: 0, 20, 50, 80, 100; RSV882:=((CLOSE+O)/2-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*100,NODRAW; K8882:=SMA(RSV882,3,1),NODRAW; D8882:SMA(K8882,3,1),COLORMAGENTA,NODRAW; //PARTLINE1(D8882<REF(D8882,1),D8882),COLORCYAN,NODRAW; X8882:=EMA(C,3),NODRAW; AX8882:=EMA(C,20),NODRAW;
DRAWTEXT(CROSS(D8886,D8882)&&D8886<20,26,'',COLORRED,FONTSIZE20,VALIGN0; XA1:=D8882<D8886 AND D8886>20 AND D8882>20,NODRAW; XA2:=BARSLAST(CROSS(D8886,D8882)&&D8886<20),NODRAW; XA3:=COUNT(XA1,XA2),NODRAW; DRAWTEXT(XA3 AND REF(XA3,1)<1,24,'多',COLORRED,FONTSIZE18,VALIGN0;
DRAWTEXT(CROSS(D8882,D8886)&&D8886>80,78,'',COLORGREEN,FONTSIZE20,VALIGN2; X1:=D8882>D8886 AND D8886<80 AND D8882<80,NODRAW; X2:=BARSLAST(CROSS(D8882,D8886)&&D8886>80),NODRAW; X3:=COUNT(X1,X2),NODRAW; DRAWTEXT(X3 AND REF(X3,1)<1,77,'空',COLORGREEN,FONTSIZE18,VALIGN2;
//VAR188:=((CLOSE - LLV(LOW,34))/(HHV(HIGH,34) - LLV(LOW,34)))*(100),NODRAW; //VAR288:=REVERSE(VAR188),NODRAW; //VAR388:=SMA(VAR188,9,1),NODRAW; //K88:=SMA(VAR388,3,1),NODRAW; //D88:=SMA(K88,3,1),NODRAW; //STICKLINE((K88 >= D88),K88,D88,6,0),RGB(255,128,0),NODRAW; //STICKLINE((K88 <= D88),K88,D88,6,0),RGB(0,0,255),NODRAW;
REFLINE: 0, 20, 50, 80, 100; RSV88:=((CLOSE+O)/2-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,NODRAW; K888:=SMA(RSV88,9,1),NODRAW; D888:SMA(K888,3,1),RGB(255,128,0),NODRAW; //PARTLINE1(D888<REF(D888,1),D888),RGB(0,0,255),NODRAW; X888:=EMA(C,3),NODRAW; AX888:=EMA(C,20),NODRAW;
DRAWTEXT(CROSS(D8886,D888)&&D8886<20,23,'',COLORRED,FONTSIZE20,VALIGN2; XA18:=D888<D8886 AND D8886>20 AND D888>20,NODRAW; XA28:=BARSLAST(CROSS(D8886,D888)&&D8886<20),NODRAW; XA38:=COUNT(XA18,XA28),NODRAW; DRAWTEXT(XA38 AND REF(XA38,1)<1,26,'多',COLORRED,FONTSIZE18,VALIGN2;
DRAWTEXT(CROSS(D888,D8886)&&D8886>80,72,'',COLORGREEN,FONTSIZE20,VALIGN0; X18:=D888>D8886 AND D8886<80 AND D888<80,NODRAW; X28:=BARSLAST(CROSS(D888,D8886)&&D8886>80),NODRAW; X38:=COUNT(X18,X28),NODRAW; DRAWTEXT(X38 AND REF(X38,1)<1,74,'空',COLORGREEN,FONTSIZE18,VALIGN0;
//------- VAR15:=((CLOSE - LLV(LOW,15))/(HHV(HIGH,15) - LLV(LOW,15)))*(100),NODRAW; VAR25:=REVERSE(VAR15),NODRAW; VAR35:=SMA(VAR15,5,1),NODRAW; K5:=SMA(VAR35,3,1),NODRAW; D5:=SMA(K5,3,1),NODRAW; //STICKLINE((K5 >= D5),K5,D5,6,0),COLORRED,NODRAW; //STICKLINE((K5 <= D5),K5,D5,6,0),COLOR008800,NODRAW;
VAR185:=((CLOSE - LLV(LOW,80))/(HHV(HIGH,80) - LLV(LOW,80)))*(100),NODRAW; VAR285:=REVERSE(VAR185),NODRAW; VAR385:=SMA(VAR185,3,1),NODRAW; K85:=SMA(VAR385,3,1),NODRAW; D85:=SMA(K85,3,1),NODRAW; //STICKLINE((K85 >= D85),K85,D85,6,0),COLORMAGENTA,NODRAW; //STICKLINE((K85 <= D85),K85,D85,6,0),COLORCYAN,NODRAW;
DRAWTEXT(CROSS(D5,D85)&&D5<20,21,'',COLORRED,FONTSIZE20,VALIGN2; XA15:=D85<D5 AND D5>20 AND D85>20,NODRAW; XA25:=BARSLAST(CROSS(D5,D85)&&D5<20),NODRAW; XA35:=COUNT(XA15,XA25),NODRAW; DRAWTEXT(XA35 AND REF(XA35,1)<1,24,'多',COLORRED,FONTSIZE18,VALIGN2;
DRAWTEXT(CROSS(D85,D5)&&D5>80,77,'',COLORGREEN,FONTSIZE20,VALIGN0; X15:=D85>D5 AND D5<80 AND D85<80,NODRAW; X25:=BARSLAST(CROSS(D85,D5)&&D5>80),NODRAW; X35:=COUNT(X15,X25),NODRAW; DRAWTEXT(X35 AND REF(X35,1)<1,71,'空',COLORGREEN,FONTSIZE18,VALIGN0;
VAR1885:=((CLOSE - LLV(LOW,34))/(HHV(HIGH,34) - LLV(LOW,34)))*(100),NODRAW; VAR2885:=REVERSE(VAR1885),NODRAW; VAR3885:=SMA(VAR1885,9,1),NODRAW; K885:=SMA(VAR3885,3,1),NODRAW; D885:=SMA(K885,3,1),NODRAW; //STICKLINE((K885 >= D885),K885,D885,6,0),RGB(255,128,0); //STICKLINE((K885 <= D885),K885,D885,6,0),RGB(0,0,255);
DRAWTEXT(CROSS(D5,D885)&&D5<20,25,'',COLORRED,FONTSIZE20,VALIGN0; XA185:=D885<D5 AND D5>20 AND D885>20,NODRAW; XA285:=BARSLAST(CROSS(D5,D885)&&D5<20),NODRAW; XA385:=COUNT(XA185,XA285),NODRAW; DRAWTEXT(XA385 AND REF(XA385,1)<1,23,'多',COLORRED,FONTSIZE18,VALIGN0;
DRAWTEXT(CROSS(D885,D5)&&D5>80,70,'',COLORGREEN,FONTSIZE20,VALIGN2; X185:=D885>D5 AND D5<80 AND D885<80,NODRAW; X285:=BARSLAST(CROSS(D885,D5)&&D5>80),NODRAW; X385:=COUNT(X185,X285),NODRAW; DRAWTEXT(X385 AND REF(X385,1)<1,75,'空',COLORGREEN,FONTSIZE18,VALIGN2;
//------- VAR61:=(2*CLOSE+HIGH+LOW)/4,NODRAW; VAR8:=LLV(LOW,20),NODRAW; VARAA:=HHV(HIGH,26),NODRAW; B:=EMA((VAR61-VAR8)/(VARAA-VAR8)*100,8),NODRAW; B1:=EMA(B,5),NODRAW; K22:=B>80 AND CROSS(B1,B),NODRAW; K1:=BARSLAST(K22),NODRAW; K2:=REF(K1,1),NODRAW; K底:=B<20 AND CROSS(B,B1),NODRAW; K底1:=BARSLAST(K底),NODRAW; K底2:=REF(K底1,1),NODRAW; DRAWTEXT(REF(B,1)>80 AND CROSS(B1,B) AND REF(B,1)<REF(B,K2+2) AND REF(C,1)>REF(C,K2+2),75,'背离',COLORCYAN,VALIGN2; DRAWTEXT(B<25 AND CROSS(B,B1) AND B>REF(B,K底2) AND C<REF(C,K底2),25,'背离',COLORFF00FF,VALIGN2; 趋势:SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1),COLORYELLOW,NODRAW;
转强:IF(趋势>50,趋势,NULL),COLOR0000FF,NODRAW; 转弱:IF(趋势<50,趋势,NULL),COLORGREEN,NODRAW; RSV1:=(CLOSE-LLV(CLOSE,9))/(HHV(CLOSE,9)-LLV(CLOSE,9))*100; K:=SMA(RSV1,3,1); D:=SMA(K,3,1); TYP:=(HIGH+LOW+CLOSE)/3; CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)); DIFF:=EMA(CLOSE,2)-EMA(CLOSE,55); DEA:=EMA(DIFF,6); MACD:=2*(DIFF-DEA); 转点:=IF(K>D AND CCI>0 AND DIFF>DEA AND MACD>0,1,0); STICKLINE1(转点=1,50,60,4,0),RGB(255,0,0); STICKLINE1(转点=0,40,50,2,0),COLORCYAN; STICKLINE1(C,90,90,1,0),COLORYELLOW; STICKLINE1(C,10,10,1,0),COLORCYAN; 判断:SMA(趋势,3,1),COLORYELLOW,NODRAW; IF(判断>50 AND 趋势>判断,判断,NULL ),COLORYELLOW,LINETHICK2,NODRAW; IF(判断<50 AND 趋势>判断,判断,NULL),COLORFF00FF,NODRAW; IF(判断>50 AND 趋势<判断,判断,NULL),COLORGREEN,LINETHICK2,NODRAW; 风险区:80,COLORFF85FF,POINTDOT,NODRAW; 安全区:20,COLORYELLOW,POINTDOT,NODRAW; 顶部:90,COLORFFFF00,NODRAW; 强弱线:50,COLORGREEN,POINTDOT,NODRAW; //DRAWICON(CROSS(趋势,判断) AND 趋势<80 ,判断,1); //DRAWICON(CROSS(趋势,顶部),顶部,2); LC:= REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70; VAR2:=SMA(VAR1,9,1)+100; VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; VAR4:=SMA(VAR3,3,1); VAR5:=SMA(VAR4,3,1)+100; VAR6:=VAR5-VAR2; 趋势1: IF(VAR6>45,VAR6-45,0),COLOR00FFFF,NODRAW; VAR2Q:=REF(LOW,1); VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100; VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3); VAR5Q:=LLV(LOW,30); VAR6Q:=HHV(VAR4Q,30); VAR7Q:=IF(MA(CLOSE,58),1,0); VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/999*VAR7Q;
逃顶:=CROSS(82,RSI);
D1:=(C+L+H)/3; D2:=EMA(D1,6); D3:=EMA(D2,5); BBUY:=CROSS(D2,D3); //DRAWICON(BBUY,10,1); VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100; //DRAWICON(CROSS(82,VARR1),10,2); //DRAWTEXT(CROSS(82,VARR1),35,'',COLORYELLOW;
神奇线选股:(CROSS(趋势,判断) AND 趋势<80),LINETHICK1,NODRAW; 老师,这个指标里面有没有未来函数,来源:程序化99
-
文华技术人员:
这不是我的指标吗?有未来
来源: WWW.CXH99.COM
- 文华客服: 回复1、2楼,这个指标里是没有未来函数的。
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容