请老师帮忙看一下谢谢 [文华财经]
-
咨询内容:
KPW:=BARSLAST(DATE>REF(DATE,1));//TIME<=0900KPJ:=REF(O,KPW);DRAWGBK(O<KPJ,RGB(0,30,0),RGB(0,50,0),0);DRAWGBK(O>=KPJ,RGB(30,0,0),RGB(50,0,0),0);STICKLINE(C>=O,OPEN,CLOSE,RGB(120,120,120),1);STICKLINE(C< O,OPEN,CLOSE,RGB(120,120,120),0);DRAWLINE(H>L,H,H>L,MAX(C,O),RGB(120,120,120));DRAWLINE(H>L,L,H>L,MIN(C,O),RGB(120,120,120));HX:=HHV(HIGH,3);LX:=LLV(LOW,3);H1:=IFELSE(HX<REF(HX,1)&&HX<REF(HX,2)&&HX<REF(HX,4)&&LX<REF(LX,1)&&LX<REF(LX,3)&&LX<REF(LX,5)&&OPEN>CLOSE&&(HHV(OPEN,0)-CLOSE)>0,REF(HX,4),0);L1:=IFELSE(LX>REF(LX,1)&&LX>REF(LX,3)&&LX>REF(LX,5)&&HX>REF(HX,1)&&HX>REF(HX,2)&&HX>REF(HX,4)&&OPEN<CLOSE&&(CLOSE-LLV(OPEN,0))>0,REF(LX,4),0);H2:=VALUEWHEN(H1>0,H1);L2:=VALUEWHEN(L1>0,L1);K1:=IFELSE(CLOSE>H2,-3,IFELSE(CLOSE<L2,1,0));K2:=VALUEWHEN(K1<>0,K1);G:=IFELSE(K2=1,H2,L2);G1:=VALUEWHEN(ISLASTBAR,G);TMP:=K2;W1:=K2;W2:=OPEN-CLOSE;HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE);LT:=IFELSE(OPEN<CLOSE,OPEN,CLOSE);VAR3:=IF(DATE<990202,1,0);KWZ:=BARSLAST(CROSS(TMP,0));DWZ:=BARSLAST(CROSS(0,TMP));KKP:=REF(KPJ,KWZ);DKP:=REF(KPJ,DWZ);DRAWLINE(W1=1&&VAR3>0&&REF(C,KWZ)<KKP&&(REF(C,KWZ+1)<REF(KPJ,KWZ+1)||REF(C,KWZ)<REF(REF(L,KPW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Z<DWZ&&C>REF(H,1)&&(REF(H,1)>=REF(H,2)||REF(C,2)>REF(O,2)),LX,'UY_STOP',FONTSIZE12,RGB(120,120,120);DRAWTEXT(KZY>KWZ&&REF(H,1)<REF(L,KWZ)&&KWZ<DWZ&&C>REF(H,1)&&(REF(H,1)>=REF(H,2)||REF(C,2)>REF(O,2))&&REF(C,KWZ)<KKP&&(REF(C,KWZ+1)<REF(KPJ,KWZ+1)||REF(C,KWZ)<REF(REF(L,KPW),KWZ)),LX,'UY_STOP',FONTSIZE12,COLORGREEN;DZY:=BARSLAST(REF(L,2)>REF(H,DWZ)&&DWZ<KWZ&&REF(C,1)<REF(L,2)&&(REF(L,2)<=REF(L,3)||REF(C,3)<REF(O,3)));DRAWTEXT(DZY>DWZ&&REF(L,1)>REF(H,DWZ)&&DWZ<KWZ&&C<REF(L,1)&&(REF(L,1)<=REF(L,2)||REF(C,2)<REF(O,2)),H,'ELL_STOP',FONTSIZE12,RGB(120,120,120);DRAWTEXT(DZY>DWZ&&REF(L,1)>REF(H,DWZ)&&DWZ<KWZ&&C<REF(L,1)&&REF(C,DWZ)>DKP&&(REF(H,DWZ+1)>REF(KPJ,DWZ+1)||REF(KPW,DWZ)<1)&&(REF(L,1)<=REF(L,2)||REF(C,2)<REF(O,2)),H,'ELL_STOP',FONTSIZE12,COLORYELLOW;VAR3<1&&DATE>REF(DATE,1),WORD(1,'过期!微信:XIHUIGUOJI';1。老师去掉灰色开线。跌破支撑为阴。涨破压力线为阳。谢谢。。。。2。开线色为正常色。两个修改模式谢谢
来源:程序化99
-
文华技术人员:
第2种方案不要修改了老师谢谢
来源: WWW.CXH99.COM
-
文华客服:
KPW:=BARSLAST(DATE>REF(DATE,1));//TIME<=0900
KPJ:=REF(O,KPW);
DRAWGBK(O<KPJ,RGB(0,30,0),RGB(0,50,0),0);
DRAWGBK(O>=KPJ,RGB(30,0,0),RGB(50,0,0),0);
HX:=HHV(HIGH,3);
LX:=LLV(LOW,3);
H1:=IFELSE(HX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REF(L,2)>REF(H,DWZ)&&DWZ<KWZ&&REF(C,1)<REF(L,2)&&(REF(L,2)<=REF(L,3)||REF(C,3)<REF(O,3)));
DRAWTEXT(DZY>DWZ&&REF(L,1)>REF(H,DWZ)&&DWZ<KWZ&&C<REF(L,1)&&(REF(L,1)<=REF(L,2)||REF(C,2)<REF(O,2)),H,'ELL_STOP',FONTSIZE12,RGB(120,120,120);
DRAWTEXT(DZY>DWZ&&REF(L,1)>REF(H,DWZ)&&DWZ<KWZ&&C<REF(L,1)&&REF(C,DWZ)>DKP&&(REF(H,DWZ+1)>REF(KPJ,DWZ+1)||REF(KPW,DWZ)<1)&&(REF(L,1)<=REF(L,2)||REF(C,2)<REF(O,2)),H,'ELL_STOP',FONTSIZE12,COLORYELLOW;
VAR3<1&&DATE>REF(DATE,1),WORD(1,'过期!微信:XIHUIGUOJI';
DRAWCOLORKLINE(TMP>0&&C>=O,COLORCYAN,1);
DRAWCOLORKLINE(TMP>0&&C<O,COLORCYAN,1);
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容