老师,请帮助改一下公式,谢谢。 [博易POBO]
咨询内容:
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);
ZJ:=AMOUNT/10000;
TM:=V-MA(V,10);
a:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;
STICKLINE(a,OPEN,CLOSE,2,1),COLORFF00FF;
DRAWSL(a,O,0,1,2,COLORYELLOW),DOT;
DRAWSL(a,C,0,1,2,COLORFF85FF),DOT;
N:=0.08;
N1Q:=PEAKBARS(H,N,1,1);
N2Q:=TROUGHBARS(L,N,1,1);
HHQ:=BACKSET(N2Q=0&&EXIST(N1Q=0,REF(BARSLAST(N2Q=0),1)),HHVBARS(H,REF(BARSLAST(N2Q=0),1))+1);
LLQ:=BACKSET(N1Q=0&&EXIST(N2Q=0,REF(BARSLAST(N1Q=0),1)),LLVBARS(L,REF(BARSLAST(N1Q=0),1))+1);
HDQ:=CROSS(HHQ,0.5);
LDQ:=CROSS(LLQ,0.5);
A1Q:=REF(H,BARSLAST(HDQ));
B1Q:=REF(L,BARSLAST(LDQ));
T1Q:=BARSLAST(HDQ)<BARSLAST(LDQ) ;
T2Q:=BARSLAST(HDQ)>BARSLAST(LDQ) ;
AAQ:=BACKSET(ISLASTBAR,SUMBARS(CROSS(T1Q,0.5),1));
BBQ:=BACKSET(ISLASTBAR,SUMBARS(CROSS(T2Q,0.5),1));
压力:IF(T1Q&&AAQ,A1Q,NULL),COLORCYAN,POINTDOT;
DRAWTEXT(CROSS(T1Q&&AAQ,0.5),A1Q,'压力'),VALIGN2,ALIGN0;
支撑:IF(T2Q&&BBQ,B1Q,NULL),COLORYELLOW,POINTDOT;
DRAWTEXT(CROSS(T2Q&&BBQ=1,0.5),B1Q,'支撑'),VALIGN0,ALIGN0;
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);
ZJ:=TURNOVER/10000;
TM:=V-MA(V,10);
A:=MA1>OANDMA2>OANDMA3>OANDMA1<CANDMA2<CANDMA3<CANDCLOSE>OPEN;
STICKLINE(A,OPEN,CLOSE,12,1),COLORFF00FF;
DRAWSL(A,O,0,100,2),COLORYELLOW,POINTDOT;
DRAWSL(A,C,0,100,2),COLORFF85FF,POINTDOT;
N:=0.08;
N1Q:=PEAKBARS(H,N,1,1);
N2Q:=TROUGHBARS(L,N,1,1);
HHQ:=BACKSET(N2Q=0&&COUNT(N1Q=0,REF(BARSLAST(N2Q=0),1))>=1,HHVBARS(H,REF(BARSLAST(N2Q=0),1))+1);
LLQ:=BACKSET(N1Q=0&&COUNT(N2Q=0,REF(BARSLAST(N1Q=0),1))>=1,LLVBARS(L,REF(BARSLAST(N1Q=0),1))+1);
HDQ:=CROSS(HHQ,0.5);
LDQ:=CROSS(LLQ,0.5);
A1Q:=REF(H,BARSLAST(HDQ));
B1Q:=REF(L,BARSLAST(LDQ));
T1Q:=BARSLAST(HDQ)<BARSLAST(LDQ);
T2Q:=BARSLAST(HDQ)>BARSLAST(LDQ);
AAQ:=BACKSET(ISLASTBAR,SUMBARS(CROSS(T1Q,0.5),1));
BBQ:=BACKSET(ISLASTBAR,SUMBARS(CROSS(T2Q,0.5),1));
压力:IF(T1Q&&AAQ,A1Q,DRAWNULL),COLORCYAN,POINTDOT;
DRAWTEXT(CROSS(T1Q&&AAQ,0.5),A1Q,'压力'),VALIGN2,ALIGN0;
支撑:IF(T2Q&&BBQ,B1Q,DRAWNULL),COLORYELLOW,POINTDOT;
DRAWTEXT(CROSS(T2Q&&BBQ=1,0.5),B1Q,'支撑'),VALIGN0,ALIGN0; 来源 程序化久久网
老师,请帮助改一下公式,谢谢。
AMOUNT:=AVPRICE*V;MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);
ZJ:=AMOUNT/10000;
TM:=V-MA(V,10);
a:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;
STICKLINE(a,OPEN,CLOSE,2,1),COLORFF00FF;
DRAWSL(a,O,0,1,2,COLORYELLOW),DOT;
DRAWSL(a,C,0,1,2,COLORFF85FF),DOT;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 老师,这个也一起帮助改一下吧,再次谢谢。N:=0.08;
N1Q:=PEAKBARS(H,N,1,1);
N2Q:=TROUGHBARS(L,N,1,1);
HHQ:=BACKSET(N2Q=0&&EXIST(N1Q=0,REF(BARSLAST(N2Q=0),1)),HHVBARS(H,REF(BARSLAST(N2Q=0),1))+1);
LLQ:=BACKSET(N1Q=0&&EXIST(N2Q=0,REF(BARSLAST(N1Q=0),1)),LLVBARS(L,REF(BARSLAST(N1Q=0),1))+1);
HDQ:=CROSS(HHQ,0.5);
LDQ:=CROSS(LLQ,0.5);
A1Q:=REF(H,BARSLAST(HDQ));
B1Q:=REF(L,BARSLAST(LDQ));
T1Q:=BARSLAST(HDQ)<BARSLAST(LDQ) ;
T2Q:=BARSLAST(HDQ)>BARSLAST(LDQ) ;
AAQ:=BACKSET(ISLASTBAR,SUMBARS(CROSS(T1Q,0.5),1));
BBQ:=BACKSET(ISLASTBAR,SUMBARS(CROSS(T2Q,0.5),1));
压力:IF(T1Q&&AAQ,A1Q,NULL),COLORCYAN,POINTDOT;
DRAWTEXT(CROSS(T1Q&&AAQ,0.5),A1Q,'压力'),VALIGN2,ALIGN0;
支撑:IF(T2Q&&BBQ,B1Q,NULL),COLORYELLOW,POINTDOT;
DRAWTEXT(CROSS(T2Q&&BBQ=1,0.5),B1Q,'支撑'),VALIGN0,ALIGN0;
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);
ZJ:=TURNOVER/10000;
TM:=V-MA(V,10);
A:=MA1>OANDMA2>OANDMA3>OANDMA1<CANDMA2<CANDMA3<CANDCLOSE>OPEN;
STICKLINE(A,OPEN,CLOSE,12,1),COLORFF00FF;
DRAWSL(A,O,0,100,2),COLORYELLOW,POINTDOT;
DRAWSL(A,C,0,100,2),COLORFF85FF,POINTDOT;
N:=0.08;
N1Q:=PEAKBARS(H,N,1,1);
N2Q:=TROUGHBARS(L,N,1,1);
HHQ:=BACKSET(N2Q=0&&COUNT(N1Q=0,REF(BARSLAST(N2Q=0),1))>=1,HHVBARS(H,REF(BARSLAST(N2Q=0),1))+1);
LLQ:=BACKSET(N1Q=0&&COUNT(N2Q=0,REF(BARSLAST(N1Q=0),1))>=1,LLVBARS(L,REF(BARSLAST(N1Q=0),1))+1);
HDQ:=CROSS(HHQ,0.5);
LDQ:=CROSS(LLQ,0.5);
A1Q:=REF(H,BARSLAST(HDQ));
B1Q:=REF(L,BARSLAST(LDQ));
T1Q:=BARSLAST(HDQ)<BARSLAST(LDQ);
T2Q:=BARSLAST(HDQ)>BARSLAST(LDQ);
AAQ:=BACKSET(ISLASTBAR,SUMBARS(CROSS(T1Q,0.5),1));
BBQ:=BACKSET(ISLASTBAR,SUMBARS(CROSS(T2Q,0.5),1));
压力:IF(T1Q&&AAQ,A1Q,DRAWNULL),COLORCYAN,POINTDOT;
DRAWTEXT(CROSS(T1Q&&AAQ,0.5),A1Q,'压力'),VALIGN2,ALIGN0;
支撑:IF(T2Q&&BBQ,B1Q,DRAWNULL),COLORYELLOW,POINTDOT;
DRAWTEXT(CROSS(T2Q&&BBQ=1,0.5),B1Q,'支撑'),VALIGN0,ALIGN0; 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容