小白抄底副图指标 源码分享
STICKLINE("macd.MacD">REF("MACD.MACD",1) AND "MACD.MACD">0,"MACD.MACD",0,0,-1),COLORLIRED;
STICKLINE("MACD.MACD">REF("MACD.MACD",1) AND "MACD.MACD"< 0,"MACD.MACD",0,0,-1),COLORLIGRAY;
STICKLINE("MACD.MACD"< REF("MACD.MACD",1) AND "MACD.MACD">0,"MACD.MACD",0,0,-1),COLORLICYAN;
STICKLINE("MACD.MACD"< REF("MACD.MACD",1) AND "MACD.MACD"< 0,"MACD.MACD",0,0,-1),COLORLIGREEN;
抄底:Abs((crOSS("MACD.DIF","MACD.DEA") && "MACD.DEA"<=-0.07)*"MACD.DIF")*1.28,COLORLIMAGENTA,LINETHICK2,STICK;
QA:"MACD.DIF",COLORWHITE,LINETHICK2;
QB:"MACD.DEA",COLORCYAN;
上涨:IF(QA>QB,QA,DRAWNULL),COLORRED,LINETHICK2;
下跌:IF(QA< QB,QA,DRAWNULL),COLORLIGREEN,LINETHICK2;
NOTEXTWB:IF(QB< QA,QB,DRAWNULL),COLORMAGENTA,LINETHICK1;
DRAWTEXT(ABS(抄底)>0,抄底*0.97,'小白抄底'),COLORYELLOW;
DRAWICON(ABS(抄底)>0,-0.08,11);
DRAWICON(CROSS(QA,QB) AND QA< 0.6,QB*0.98,1);
DRAWICON(CROSS(QB,QA) AND QB>0.5,QB*1.02,2);
NOTEXTAAA:0,DOTLINE,COLORGRAY;
KKK:="MACD.MACD">REF("MACD.MACD",1) AND "MACD.MACD"< 0 AND REF("MACD.MACD",1)< REF("MACD.MACD",2);
激进抄底:KKK,COLORMAGENTA,NODRAW;
STICKLINE(KKK,0,"MACD.MACD",0.2,0),COLORMAGENTA;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
STICKLINE("MACD.MACD">1日前的"MACD.MACD" AND "MACD.MACD">0,"MACD.MACD",0,0,-1),COLORLIRED
STICKLINE("MACD.MACD">1日前的"MACD.MACD" AND "MACD.MACD"< 0,"MACD.MACD",0,0,-1),COLORLIGRAY
STICKLINE("MACD.MACD"< 1日前的"MACD.MACD" AND "MACD.MACD">0,"MACD.MACD",0,0,-1),COLORLICYAN
STICKLINE("MACD.MACD"< 1日前的"MACD.MACD" AND "MACD.MACD"< 0,"MACD.MACD",0,0,-1),COLORLIGREEN
输出抄底:("MACD.DIF"上穿"MACD.DEA" && "MACD.DEA"<=-0.07的绝对值*"MACD.DIF")*1.28,COLORLIMAGENTA, 线宽为2,STICK
输出QA:"MACD.DIF",画白色, 线宽为2
输出QB:"MACD.DEA",画青色
如果QA>QB返回QA否则返回DRAWNULL
如果QA< QB返回QA否则返回DRAWNULL
如果QB< QA返回QB否则返回DRAWNULL
DRAWTEXT(抄底的绝对值>0,抄底*0.97,'小白抄底'),画黄色
DRAWICON(抄底的绝对值>0,-0.08,11)
DRAWICON(QA上穿QB AND QA< 0.6,QB*0.98,1)
DRAWICON(QB上穿QA AND QB>0.5,QB*1.02,2)
输出NOTEXTAAA:0,DOTLINE,COLORGRAY
KKK赋值:"MACD.MACD">1日前的"MACD.MACD" AND "MACD.MACD"< 0 AND 1日前的"MACD.MACD"< 2日前的"MACD.MACD"
激进输出抄底:KKK,画洋红色,NODRAW
当满足条件KKK时,在0和"MACD.MACD"之间画柱状线