指标修改谢谢优化一下 [文华财经]
-
咨询内容:
N:=10;
SJ:=211201;//时间限制
H3:=HHV(H,0);
L4:=0;
STICKLINE1(DATE>SJ,H3,L4,1000000,0),COLORRED;
FXA:=MA(((SLOPE(C,20)*5)+C),20);
C1:=(C+O+H+L)/4;
CA:=EMA(C1,1);
CB:=EMA(C1,3);
CC:=EMA(C1,5);
CE:=EMA((VOL*CA),1)/EMA(VOL,1);
CF:=EMA((VOL*(CA+CB+CC)/3),1)/EMA(VOL,1);
DXA:=EMA(EMA(EMA(CE,3),2),1),NODRAW;
DXB:=EMA(EMA(EMA(CF,5),3),1),NODRAW;
TY1:=HIGH;
HD1:=FILTER(BACKSET(FILTER(REF(TY1,N)=HHV(TY1,2*N+1),N),N+1),N);
LD1:=FILTER(BACKSET(FILTER(REF(TY1,N)=LLV(TY1,2*N+1),N),N+1),N);
A1:=REF(TY1,BARSLAST(HD1));
B1:=REF(LOW,BARSLAST(LD1));
T1:=BARSLAST(HD1)<BARSLAST(LD1) && NOT(HD1);
T2:=BARSLAST(HD1)>BARSLAST(LD1) && NOT(LD1);
PARTLINE1(T1,A1),RGB(0,255,0),DOT;
PARTLINE1(T2,B1),RGB(255,0,255),DOT;
绿:IF(T1,A1,A1),RGB(0,255,0),NODRAW,PRECIS0;
粉:IF(T2,B1,B1),RGB(255,0,255),NODRAW,PRECIS0;
AAA:=CLOSE>REF(CLOSE,1) && REF(CLOSE,1)>REF(CLOSE,2) && REF(CLOSE,1)<REF(CLOSE,3) && IF(REF(CLOSE,3)<REF(CLOSE,4),1,IF(REF(CLOSE,4)<REF(CLOSE,5),REF(CLOSE,1)<REF(CLOSE,4) || (REF(CLOSE,2)<REF(CLOSE,4) && REF(CLOSE,3)>=REF(CLOSE,5)),IF(REF(CLOSE,5)<REF(CLOSE,6),1,REF(CLOSE,6)<REF(CLOSE,7))));
BBB:=CLOSE<REF(CLOSE,1) && REF(CLOSE,1)<REF(CLOSE,2) && REF(CLOSE,1)>REF(CLOSE,3) && IF(REF(CLOSE,3)>REF(CLOSE,4),1,IF(REF(CLOSE,4)>REF(CLOSE,5),REF(CLOSE,1)>REF(CLOSE,4) || (REF(CLOSE,2)>REF(CLOSE,4) && REF(CLOSE,3)<=REF(CLOSE,5)),IF(REF(CLOSE,5)>REF(CLOSE,6),1,REF(CLOSE,6)>REF(CLOSE,7))));
DRAWICON(AAA && CLOSE>REF(OPEN,2),LOW,'CO4',VALIGN0,FONTSIZE14;DRAWICON(BBB && CLOSE<REF(CLOSE,2),HIGH,'CO5',VALIGN2,FONTSIZE14;
上下箭头 放大 19号 上下箭头 出现的时候 有声音提示
来源:程序化99
-
文华技术人员:
参考:
N:=10;
SJ:=211201;//时间限制 H3:=HHV(H,0); L4:=0; STICKLINE1(DATE>SJ,H3,L4,1000000,0),COLORRED;
FXA:=MA(((SLOPE(C,20)*5)+C),20);
C1:=(C+O+H+L)/4; CA:=EMA(C1,1); CB:=EMA(C1,3); CC:=EMA(C1,5); CE:=EMA((VOL*CA),1)/EMA(VOL,1); CF:=EMA((VOL*(CA+CB+CC)/3),1)/EMA(VOL,1); DXA:=EMA(EMA(EMA(CE,3),2),1),NODRAW; DXB:=EMA(EMA(EMA(CF,5),3),1),NODRAW;
TY1:=HIGH; HD1:=FILTER(BACKSET(FILTER(REF(TY1,N)=HHV(TY1,2*N+1),N),N+1),N); LD1:=FILTER(BACKSET(FILTER(REF(TY1,N)=LLV(TY1,2*N+1),N),N+1),N); A1:=REF(TY1,BARSLAST(HD1)); B1:=REF(LOW,BARSLAST(LD1)); T1:=BARSLAST(HD1)<BARSLAST(LD1) && NOT(HD1); T2:=BARSLAST(HD1)>BARSLAST(LD1) && NOT(LD1); PARTLINE1(T1,A1),RGB(0,255,0),DOT; PARTLINE1(T2,B1),RGB(255,0,255),DOT; 绿:IF(T1,A1,A1),RGB(0,255,0),NODRAW,PRECIS0; 粉:IF(T2,B1,B1),RGB(255,0,255),NODRAW,PRECIS0; AAA:=CLOSE>REF(CLOSE,1) && REF(CLOSE,1)>REF(CLOSE,2) && REF(CLOSE,1)<REF(CLOSE,3) && IF(REF(CLOSE,3)<REF(CLOSE,4),1,IF(REF(CLOSE,4)<REF(CLOSE,5),REF(CLOSE,1)<REF(CLOSE,4) || (REF(CLOSE,2)<REF(CLOSE,4) && REF(CLOSE,3)>=REF(CLOSE,5)),IF(REF(CLOSE,5)<REF(CLOSE,6),1,REF(CLOSE,6)<REF(CLOSE,7)))); BBB:=CLOSE<REF(CLOSE,1) && REF(CLOSE,1)<REF(CLOSE,2) && REF(CLOSE,1)>REF(CLOSE,3) && IF(REF(CLOSE,3)>REF(CLOSE,4),1,IF(REF(CLOSE,4)>REF(CLOSE,5),REF(CLOSE,1)>REF(CLOSE,4) || (REF(CLOSE,2)>REF(CLOSE,4) && REF(CLOSE,3)<=REF(CLOSE,5)),IF(REF(CLOSE,5)>REF(CLOSE,6),1,REF(CLOSE,6)>REF(CLOSE,7))));
DRAWTEXT(AAA && CLOSE>REF(OPEN,2),LOW,'',COLORRED,VALIGN0,FONTSIZE19;
DRAWTEXT(BBB && CLOSE<REF(CLOSE,2),HIGH,'',COLORGREEN,VALIGN2,FONTSIZE19;
AAA && CLOSE>REF(OPEN,2),SOUND(''; BBB && CLOSE<REF(CLOSE,2),SOUND('';
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容