这个指标代入软件,不行,望修改 [博易POBO]
咨询内容:
源码如下
{N=26,P=2}
地:ma((LOW+HIGH+CLOSE*2)/4,7),COLORgreen,linethick2;
天:hhv(地,9),COLORFF8000,linethick2;
人:if(地<天,(地-(天-地)),天),COLORyellow,linethick1;
V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);
HY:=REF(EMA(V1,3),1);
x2:=C;
x3:=HY;
stickline(x2>=x3,low,high,0.1,0),colorred;
stickline(x2>=x3,close,open,5,0),colorred;
stickline(x2
stickline(x2
RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
KK:=SMA(RSV,3,1);
DD:=SMA(KK,3,1);
JJ:=3*KK-2*DD;
RSV12:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
K12:=SMA(RSV12,3,1);
D12:=SMA(K12,3,1);
J12:=3*K12-2*D12;
RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
K24:=SMA(RSV24,3,1);
D24:=SMA(K24,3,1);
J24:=3*K24-2*D24;
顶线:IF(CROSS(j24,jJ),H,REF(H,BARSLAST(CROSS(j24,jJ)))),colorff80c9,POINTDOT;
底线:IF(CROSS(jJ,j24),L,REF(L,BARSLAST(CROSS(jJ,j24)))),colorGREEN,POINTDOT;
ZDF:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(ZDF>9.5,O,C,6,0),colorred;
STICKLINE(ZDF<-9.5,O,C,6,0),colorblue;
TY:=C;
HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);
LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10);
A:=REF(C,BARSLAST(HD));
B:=REF(C,BARSLAST(LD));
T1:=BARSLAST(HD)
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
波浪顶:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK1;
STICKLINE(T1,A,A,9,0),COLORFF00FF;
波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK1;
LC:=REF(CLOSE,1);
{RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100); }
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
YX:=((CLOSE > LC) AND ISUP);
{KK:=HHV(K,5);
DD:=HHV(D,5);}
D1:=REF(D,1);
{K1:=REF(K,1);}
DRAWTEXT((((D1 < 30) AND CROSS(K,D)) AND YX),(LOW * 1),'△'),COLORYELLOW;
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,'★卖'), COLORWHITE;
上收:=c;
VA1:=EMA(上收,8);
VA2:=EMA(上收,20);
DRAWTEXT(CROSS(VA2,VA1),VA1*1.15,'*止损'),COLORyellow;
MID : MA(CLOSE,N);
UPPER: MID + P*STD(CLOSE,N);
LOWER: MID - P*STD(CLOSE,N);
m5:=ma(c,if(BARSCOUNT( c)>5,5,0));
m15:=ma(c,if(BARSCOUNT( c)>15,15,0));
m30:=ma(c,if(BARSCOUNT( c)>30,30,0));
m60:=ma(c,if(BARSCOUNT( c)>60,60,0));
a:=if(m5>=m15,1,0)+if(m5>=m30,1,0)+if(m5>=m60,1,0)
+if(m15>=m30,1,0)+if(m15>=m60,1,0)+if(m30>=m60,1,0)
+if(m60>=ref(m60,1),1,0);
DRAWTEXT(a=0,8,'0'),COLORwhite;
DRAWTEXT(a=1,8,'1'),COLORc0c0c0;
DRAWTEXT(a=2,8,'2'),COLOR00ffff;
DRAWTEXT(a=3,8,'3'),COLOR00ff00;
DRAWTEXT(a=4,8,'4'),COLOR999900;
DRAWTEXT(a=5,8,'5'),COLORff0000;
DRAWTEXT(a=6,8,'6'),COLORff00ff;
DRAWTEXT(a=7,8,'7'),COLOR008080;
{用于定位:5 , COLOR000000,POINTDOT ;};
这个指标代入软件,不行,望修改
三才合一为买入点,三才分散为卖出(止损)点,卖字为未来函数,不用可删去,数字7为顶,0为底,拿了共同研究,源码如下
{N=26,P=2}
地:ma((LOW+HIGH+CLOSE*2)/4,7),COLORgreen,linethick2;
天:hhv(地,9),COLORFF8000,linethick2;
人:if(地<天,(地-(天-地)),天),COLORyellow,linethick1;
V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);
HY:=REF(EMA(V1,3),1);
x2:=C;
x3:=HY;
stickline(x2>=x3,low,high,0.1,0),colorred;
stickline(x2>=x3,close,open,5,0),colorred;
stickline(x2
KK:=SMA(RSV,3,1);
DD:=SMA(KK,3,1);
JJ:=3*KK-2*DD;
RSV12:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
K12:=SMA(RSV12,3,1);
D12:=SMA(K12,3,1);
J12:=3*K12-2*D12;
RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
K24:=SMA(RSV24,3,1);
D24:=SMA(K24,3,1);
J24:=3*K24-2*D24;
顶线:IF(CROSS(j24,jJ),H,REF(H,BARSLAST(CROSS(j24,jJ)))),colorff80c9,POINTDOT;
底线:IF(CROSS(jJ,j24),L,REF(L,BARSLAST(CROSS(jJ,j24)))),colorGREEN,POINTDOT;
ZDF:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(ZDF>9.5,O,C,6,0),colorred;
STICKLINE(ZDF<-9.5,O,C,6,0),colorblue;
TY:=C;
HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);
LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10);
A:=REF(C,BARSLAST(HD));
B:=REF(C,BARSLAST(LD));
T1:=BARSLAST(HD)
波浪顶:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK1;
STICKLINE(T1,A,A,9,0),COLORFF00FF;
波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK1;
LC:=REF(CLOSE,1);
{RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100); }
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
YX:=((CLOSE > LC) AND ISUP);
{KK:=HHV(K,5);
DD:=HHV(D,5);}
D1:=REF(D,1);
{K1:=REF(K,1);}
DRAWTEXT((((D1 < 30) AND CROSS(K,D)) AND YX),(LOW * 1),'△'),COLORYELLOW;
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,'★卖'), COLORWHITE;
上收:=c;
VA1:=EMA(上收,8);
VA2:=EMA(上收,20);
DRAWTEXT(CROSS(VA2,VA1),VA1*1.15,'*止损'),COLORyellow;
MID : MA(CLOSE,N);
UPPER: MID + P*STD(CLOSE,N);
LOWER: MID - P*STD(CLOSE,N);
m5:=ma(c,if(BARSCOUNT( c)>5,5,0));
m15:=ma(c,if(BARSCOUNT( c)>15,15,0));
m30:=ma(c,if(BARSCOUNT( c)>30,30,0));
m60:=ma(c,if(BARSCOUNT( c)>60,60,0));
a:=if(m5>=m15,1,0)+if(m5>=m30,1,0)+if(m5>=m60,1,0)
+if(m15>=m30,1,0)+if(m15>=m60,1,0)+if(m30>=m60,1,0)
+if(m60>=ref(m60,1),1,0);
DRAWTEXT(a=0,8,'0'),COLORwhite;
DRAWTEXT(a=1,8,'1'),COLORc0c0c0;
DRAWTEXT(a=2,8,'2'),COLOR00ffff;
DRAWTEXT(a=3,8,'3'),COLOR00ff00;
DRAWTEXT(a=4,8,'4'),COLOR999900;
DRAWTEXT(a=5,8,'5'),COLORff0000;
DRAWTEXT(a=6,8,'6'),COLORff00ff;
DRAWTEXT(a=7,8,'7'),COLOR008080;
{用于定位:5 , COLOR000000,POINTDOT ;};
博易技术人员: 这个论坛没有技术员给写指标吗
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容