指标改写 [文华财经]
-
咨询内容:
LD:=FILTER(C2,10);
前高位:REF(REF(M2,1)*(1+(O-REF(C,1))/REF(C,1)),BARSLAST(HD)),COLOR00FF00,POINTDOT;
STICKLINE(REF(M2,1)*(1+(O-REF(C,1))/REF(C,1)),前高位,前高位,2,0),COLORYELLOW;改成咱们文华做期货的
来源:程序化99
-
文华技术人员:
参考:
涨幅:=(C-REF(C,1))/REF(C,1)*100; 历史涨幅:SUM(涨幅,0),NODRAW; 一周涨幅:历史涨幅-REF(历史涨幅,5),NODRAW; 两周涨幅:历史涨幅-REF(历史涨幅,10),NODRAW; 一月涨幅:历史涨幅-REF(历史涨幅,20),NODRAW; 一季涨幅:历史涨幅-REF(历史涨幅,60),NODRAW; 半年涨幅:历史涨幅-REF(历史涨幅,120),NODRAW; 一年涨幅:历史涨幅-REF(历史涨幅,240),NODRAW; A11:=(一月涨幅)-MA(一月涨幅,12),COLORWHITE; A21:=(HHV(A11,20)+LLV(A11,20))/2; A31:=(A11+A21)/2; A41:MA((A11+A21+A31)/3,15); M12:=MA(A11,2); {WWW.cxh99.COM} M15:MA(A11,5),COLORYELLOW; //DRAWBAND(A41,RGB(100,50,205),M15,RGB(0,50,100)); FILLRGN(A41>M15,A41,M15,RGB(100,50,205)); FILLRGN(A41<M15,A41,M15,RGB(0,50,100)); A1:=(历史涨幅)-MA(历史涨幅,12),COLORWHITE; A2:=(HHV(A1,20)+LLV(A1,20))/2; A3:=(A1+A2)/2; A4:MA((A1+A2+A3)/3,15); M2:=MA(A1,2); M5:MA(A1,5),COLORYELLOW; //DRAWBAND(A4,RGB(60,0,205),M5,RGB(48,0,50)); FILLRGN(A4>M5,A4,M5,RGB(60,0,205)); FILLRGN(A4<M5,A4,M5,RGB(48,0,50)); 上影线:=(H-C)/REF(C,1); 下影线:=(O-L)/REF(C,1); DRAWKLINE1(M2*(1+上影线),REF(M2,1)*(1+(O-REF(C,1))/REF(C,1)),REF(M2,1)*(1-下影线),M2); DRAWTEXT(LONGCROSS(M2,M5,4),REF(M2,1),'拐',COLORGREEN; DRAWICON(CROSS(M5,A4),A4,25); DRAWTEXT(CROSS(M5,A4),A4,'金叉',COLORGREEN; DRAWICON(CROSS(M15,A41),A41,26); DRAWTEXT(CROSS(M15,A41),A41,'金叉',COLORGREEN; TT:=CROSS(M15,A41) AND CROSS(M5,A4) AND M2*(1+上影线)>0; DRAWTEXT(TT,-20,'爆',COLORGREEN; 0; TY:=REF(M2,1)*(1+(O-REF(C,1))/REF(C,1)); AG1:=REF(TY,10)=HHV(TY,2*10+1); BG1:=FILTER(AG1,10); C1:=BACKSET(BG1,10+1); //{这里有人说是未来,这只是用画线辅助判断} HD:=FILTER(C1,10); AG2:=REF(TY,10)=LLV(TY,2*10+1); BG2:=FILTER(AG2,10); C2:=BACKSET(BG2,10+1); //{这里有人说是未来,这只是用画线辅助判断} LD:=FILTER(C2,10); 前高位:REF(REF(M2,1)*(1+(O-REF(C,1))/REF(C,1)),BARSLAST(HD)),COLOR00FF00,POINTDOT; STICKLINE(REF(M2,1)*(1+(O-REF(C,1))/REF(C,1)),前高位,前高位,2,0),COLORYELLOW;
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 或微信号:cxh99cxh99 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,谢谢您!)
相关文章
-
没有相关内容