老师麻烦把指再加个 [文华财经]
-
咨询内容:
N3:=BARSLAST(DATE<>REF(DATE,1))+1;
NN:=SUMBARS(DATE<>REF(DATE,1),2);
ZV3:=REF(SUM(V,N3),N3);
VV3:=SUM(V,N3);
C3:=IF(REFX1(N3=1,1)&&VV3>ZV3,1,0);
LL3:=HHV(H,N3);
HH3:=LLV(L,N3);
A1:=VALUEWHEN(C3, HH3)>REF(VALUEWHEN(C3, HH3),BARSLAST(C3)+1)&&VALUEWHEN(C3, LL3)>REF(VALUEWHEN(C3, LL3),BARSLAST(C3)+1);
A2:=VALUEWHEN(C3, HH3)<REF(VALUEWHEN(C3, HH3),BARSLAST(C3)+1)&&VALUEWHEN(C3, LL3)<REF(VALUEWHEN(C3, LL3),BARSLAST(C3)+1);
A3:=VALUEWHEN(C3, HH3)>REF(VALUEWHEN(C3, HH3),BARSLAST(C3)+1)&&VALUEWHEN(C3, LL3)<REF(VALUEWHEN(C3, LL3),BARSLAST(C3)+1)||VALUEWHEN(C3, HH3)<REF(VALUEWHEN(C3, HH3),BARSLAST(C3)+1)&&VALUEWHEN(C3, LL3)>REF(VALUEWHEN(C3, LL3),BARSLAST(C3)+1);
DRAWSL(A1&&BARSLAST(C3)<NN,VALUEWHEN(C3, HH3),0,1,0,COLORRED),LINETHICK2;
DRAWSL(A1&&BARSLAST(C3)<NN,VALUEWHEN(C3, LL3),0,1,0,COLORRED),LINETHICK2;
DRAWSL(A2&&BARSLAST(C3)<NN,VALUEWHEN(C3, HH3),0,1,0,COLORLIGHTGREEN),LINETHICK2;
DRAWSL(A2&&BARSLAST(C3)<NN,VALUEWHEN(C3, LL3),0,1,0,COLORLIGHTGREEN),LINETHICK2;
DRAWSL(A3&&BARSLAST(C3)<NN,VALUEWHEN(C3, HH3),0,1,0,COLORYELLOW),LINETHICK2;
DRAWSL(A3&&BARSLAST(C3)<NN,VALUEWHEN(C3, LL3),0,1,0,COLORYELLOW),LINETHICK2;
DRAWSL(A1&&ISLASTBAR,VALUEWHEN(C3, HH3),0,11,0,COLORRED),LINETHICK2;
DRAWSL(A1&&ISLASTBAR,VALUEWHEN(C3, LL3),0,11,0,COLORRED),LINETHICK2;
DRAWSL(A2&&ISLASTBAR,VALUEWHEN(C3, HH3),0,11,0,COLORLIGHTGREEN),LINETHICK2;
DRAWSL(A2&&ISLASTBAR,VALUEWHEN(C3, LL3),0,11,0,COLORLIGHTGREEN),LINETHICK2;
DRAWSL(A3&&ISLASTBAR,VALUEWHEN(C3, HH3),0,11,0,COLORYELLOW),LINETHICK2;
DRAWSL(A3&&ISLASTBAR,VALUEWHEN(C3, LL3),0,11,0,COLORYELLOW),LINETHICK2;
//DRAWNUMBER(ISLASTBAR,VALUEWHEN(C6, LL6),VALUEWHEN(C6, LL6),2,COLORLIGHTGREEN);//数字显示
//DRAWNUMBER(ISLASTBAR,VALUEWHEN(C6, HH6),VALUEWHEN(C6, HH6),2,COLORRED);//数字显示
DRAWKLINE1(H,O,L,C);
VERTLINE1(DATE<>REF(DATE,1)),POINTDOT,COLORGRAY;//周分隔线
30分钟,3小时,12小时谢谢老师!来源:程序化99
-
文华技术人员:
编写需要时间,预计周一17:00前为您回复
来源: WWW.CXH99.COM
-
文华客服:
老师怎么还没有回复
-
网友回复:
改前两句就行,如下
N3:=BARSLAST(MOD(TIME,100)=30||MOD(TIME,100)=0)+1; NN:=SUMBARS(MOD(TIME,100)=30||MOD(TIME,100)=0,2); //30分钟 Q:=HOUR<>REF(HOUR,1); N3:=BARSLAST(MOD(SUM(Q,DAYBARPOS),3)=1)+1; NN:=SUMBARS(MOD(SUM(Q,DAYBARPOS),3)=1,2); //3小时 Q:=HOUR<>REF(HOUR,1); N3:=BARSLAST(MOD(SUM(Q,DAYBARPOS),12)=1)+1; NN:=SUMBARS(MOD(SUM(Q,DAYBARPOS),12)=1,2); //12小时 - 网友回复: 老师麻烦看看怎么显示的3小时和12小时的线不对谢谢老师!
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,谢谢您!)
相关文章
-
没有相关内容