还请老师把量能柱改成空心的 [文华财经]
- 咨询内容:
DIFF : EMA(CLOSE,26) - EMA(CLOSE,100);DEA : EMA(DIFF,9);MACD : 2*(DIFF-DEA), COLORSTICK;JC := DEA-DIFF;绿柱面积:=IF(MACD<0,SUM(MACD,BARSLAST(JC<0)),0);红柱面积:=IF(MACD>0,SUM(MACD,BARSLAST(JC>0)),0);本次最低价:=LLV(L,BARSLAST(JC<0));本次最高价:=HHV(H,BARSLAST(JC>0));X1:=IF (MACD<0,BARSLAST(CROSS(DIFF,DEA)),0);前次绿柱面积:=REF(绿柱面积,X1+1);前次最低价:=REF(本次最低价,X1+1);Y1:=IF((绿柱面积<0 AND ABS(绿柱面积)<ABS(前次绿柱面积)AND 本次最低价<前次最低价 ),1,0);RS1:= MACD<0 AND REF(MACD,1)<0 AND C<前次最低价AND ABS(绿柱面积)<ABS(前次绿柱面积) AND ABS(MACD)<ABS(REF(MACD,1));底背驰:= IF (CROSS(DIFF,DEA),REF(Y1,1),0);DRAWTEXT(底背驰,0.3,'积底背'),COLOR00FFFF;STICKLINE(底背驰,0,0.3,4,0),COLOR0000FF;DRAWICON(底背驰,0,23),COLORYELLOW;//DRAWBAND(DIFF,RGB(200,50,55),DEA,RGB(50,100,10));FILLRGN(DIFF>DEA,DIFF,DEA,RGB(200,50,55));FILLRGN(DIFF<DEA,DIFF,DEA,RGB(50,100,10));遵:IF(DIFF>=DEA,DIFF,NULL),COLORRED; 守:IF(DEA>=DIFF,DEA,NULL),COLORFF9900;纪:IF(DIFF>=DEA,DEA,NULL),COLOR00FFFF;律:IF(DEA>=DIFF,DIFF,NULL),COLOR00FF00;
X2:=IF (MACD>0,BARSLAST(CROSS(DEA,DIFF)),0);前次红柱面积:=REF(红柱面积,X2+1);前次最高价:=REF(本次最高价,X2+1);Y2:=IF((红柱面积>0 AND 红柱面积<前次红柱面积 AND 本次最高价>前次最高价 ),1,0);RS2:= MACD>0 AND REF(MACD,1)>0 AND C>前次最高价 AND ABS(红柱面积)<ABS(前次红柱面积) AND ABS(MACD)<ABS(REF(MACD,1));顶背驰:= IF (CROSS(DEA,DIFF),REF(Y2,1),0);DRAWICON(顶背驰,0,19),COLORGREEN;STICKLINE(顶背驰,0,-0.3,4,0),COLORGREEN;DRAWTEXT(顶背驰,-0.3,'积顶背'),COLORGREEN;
八十日漂红: COUNT(MACD>0,80),NODRAW;连红: BARSLASTCOUNT(MACD>0),NODRAW;连增:BARSLASTCOUNT(MACD>REF(MACD,1)),COLORRED,NODRAW;连减:BARSLASTCOUNT(MACD<REF(MACD,1)),COLORGREEN,NODRAW;0,COLORGREEN; - 文华技术人员:
参考:
DIFF : EMA(CLOSE,26) - EMA(CLOSE,100);DEA : EMA(DIFF,9);MACD : 2*(DIFF-DEA), COLORSTICK;JC := DEA-DIFF;绿柱面积:=IF(MACD<0,SUM(MACD,BARSLAST(JC<0)),0);红柱面积:=IF(MACD>0,SUM(MACD,BARSLAST(JC>0)),0);本次最低价:=LLV(L,BARSLAST(JC<0));本次最高价:=HHV(H,BARSLAST(JC>0));X1:=IF (MACD<0,BARSLAST(CROSS(DIFF,DEA)),0);前次绿柱面积:=REF(绿柱面积,X1+1);前次最低价:=REF(本次最低价,X1+1);Y1:=IF((绿柱面积<0 AND ABS(绿柱面积)<ABS(前次绿柱面积)AND 本次最低价<前次最低价 ),1,0);RS1:= MACD<0 AND REF(MACD,1)<0 AND C<前次最低价AND ABS(绿柱面积)<ABS(前次绿柱面积) AND ABS(MACD)<ABS(REF(MACD,1));底背驰:= IF (CROSS(DIFF,DEA),REF(Y1,1),0);DRAWTEXT(底背驰,0.3,'积底背'),COLOR00FFFF;STICKLINE1(底背驰,0,0.3,4,1),COLOR0000FF;DRAWICON(底背驰,0,23),COLORYELLOW;//DRAWBAND(DIFF,RGB(200,50,55),DEA,RGB(50,100,10));FILLRGN(DIFF>DEA,DIFF,DEA,RGB(200,50,55));FILLRGN(DIFF<DEA,DIFF,DEA,RGB(50,100,10));遵:IF(DIFF>=DEA,DIFF,NULL),COLORRED; 守:IF(DEA>=DIFF,DEA,NULL),COLORFF9900;纪:IF(DIFF>=DEA,DEA,NULL),COLOR00FFFF;律:IF(DEA>=DIFF,DIFF,NULL),COLOR00FF00;
X2:=IF (MACD>0,BARSLAST(CROSS(DEA,DIFF)),0);前次红柱面积:=REF(红柱面积,X2+1);前次最高价:=REF(本次最高价,X2+1);Y2:=IF((红柱面积>0 AND 红柱面积<前次红柱面积 AND 本次最高价>前次最高价 ),1,0);RS2:= MACD>0 AND REF(MACD,1)>0 AND C>前次最高价 AND ABS(红柱面积)<ABS(前次红柱面积) AND ABS(MACD)<ABS(REF(MACD,1));顶背驰:= IF (CROSS(DEA,DIFF),REF(Y2,1),0);DRAWICON(顶背驰,0,19),COLORGREEN;STICKLINE1(顶背驰,0,-0.3,4,1),COLORGREEN;DRAWTEXT(顶背驰,-0.3,'积顶背'),COLORGREEN;
八十日漂红: COUNT(MACD>0,80),NODRAW;连红: BARSLASTCOUNT(MACD>0),NODRAW;连增:BARSLASTCOUNT(MACD>REF(MACD,1)),COLORRED,NODRAW;连减:BARSLASTCOUNT(MACD<REF(MACD,1)),COLORGREEN,NODRAW;0,COLORGREEN; - 文华客服:
不是信号的,是那些红绿柱加粗
- 网友回复:
参考:
DIFF : EMA(CLOSE,26) - EMA(CLOSE,100);DEA : EMA(DIFF,9);MACD : 2*(DIFF-DEA);STICKLINE(2*(DIFF-DEA)>0,0,MACD,COLORRED,1);STICKLINE(2*(DIFF-DEA)<0,0,MACD,COLORCYAN,1);JC := DEA-DIFF;绿柱面积:=IF(MACD<0,SUM(MACD,BARSLAST(JC<0)),0);红柱面积:=IF(MACD>0,SUM(MACD,BARSLAST(JC>0)),0);本次最低价:=LLV(L,BARSLAST(JC<0));本次最高价:=HHV(H,BARSLAST(JC>0));X1:=IF (MACD<0,BARSLAST(CROSS(DIFF,DEA)),0);前次绿柱面积:=REF(绿柱面积,X1+1);前次最低价:=REF(本次最低价,X1+1);Y1:=IF((绿柱面积<0 AND ABS(绿柱面积)<ABS(前次绿柱面积)AND 本次最低价<前次最低价 ),1,0);RS1:= MACD<0 AND REF(MACD,1)<0 AND C<前次最低价AND ABS(绿柱面积)<ABS(前次绿柱面积) AND ABS(MACD)<ABS(REF(MACD,1));底背驰:= IF (CROSS(DIFF,DEA),REF(Y1,1),0);DRAWTEXT(底背驰,0.3,'积底背'),COLOR00FFFF;STICKLINE(底背驰,0,0.3,4,0),COLOR0000FF;DRAWICON(底背驰,0,23),COLORYELLOW;//DRAWBAND(DIFF,RGB(200,50,55),DEA,RGB(50,100,10));FILLRGN(DIFF>DEA,DIFF,DEA,RGB(200,50,55));FILLRGN(DIFF<DEA,DIFF,DEA,RGB(50,100,10));遵:IF(DIFF>=DEA,DIFF,NULL),COLORRED; 守:IF(DEA>=DIFF,DEA,NULL),COLORFF9900;纪:IF(DIFF>=DEA,DEA,NULL),COLOR00FFFF;律:IF(DEA>=DIFF,DIFF,NULL),COLOR00FF00;
X2:=IF (MACD>0,BARSLAST(CROSS(DEA,DIFF)),0);前次红柱面积:=REF(红柱面积,X2+1);前次最高价:=REF(本次最高价,X2+1);Y2:=IF((红柱面积>0 AND 红柱面积<前次红柱面积 AND 本次最高价>前次最高价 ),1,0);RS2:= MACD>0 AND REF(MACD,1)>0 AND C>前次最高价 AND ABS(红柱面积)<ABS(前次红柱面积) AND ABS(MACD)<ABS(REF(MACD,1));顶背驰:= IF (CROSS(DEA,DIFF),REF(Y2,1),0);DRAWICON(顶背驰,0,19),COLORGREEN;STICKLINE(顶背驰,0,-0.3,4,0),COLORGREEN;DRAWTEXT(顶背驰,-0.3,'积顶背'),COLORGREEN;
八十日漂红: COUNT(MACD>0,80),NODRAW;连红: BARSLASTCOUNT(MACD>0),NODRAW;连增:BARSLASTCOUNT(MACD>REF(MACD,1)),COLORRED,NODRAW;连减:BARSLASTCOUNT(MACD<REF(MACD,1)),COLORGREEN,NODRAW;0,COLORGREEN; - 网友回复: 很好,要是把那条MACD线做成随柱状同色就跟好了
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容