股民提问:请老师帮我把下面主图公式改为选股公式,当出现“出击”时就预警,谢谢
请老师帮我把下面主图公式改为选股公式,当出现“出击”时就预警,谢谢 MA8:MA(CLOSE,8),COLORWHITE,LINETHICK1;
MA21:MA (CLOSE,21),COLORMAGENTA,LINETHICK1;
MA60:MA(CLOSE,60),COLORGREEN,LINETHICK1;
买线:=EMA (C,2);
卖线:=EMA(SLOPE(C,8)*1+C,8);
BUY1:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);DRAWTEXT(BUY1,LOW*0.95,'出击'),COLORWHITE,LINETHICK5;
DRAWTEXT (SEL,HIGH*1.05,'回营'),COLORWHITE,LINETHICK5;
STICKLINE(买线>=卖线,LOW,HIGH,0.1,0),COLORRED ;
STICKLINE(买线>=卖线,CLOSE,OPE贰迹弛舅佾矫崇蝎搐莽N,3,3),COLORRED ;
STICKLINE(买线<卖线,CLOSE,OPEN,3,3),COLORCYAN;
STICKLINE(买线<卖线,LOW,HIGH,0.1,0),COLORCYAN;
STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,2.5,0),COLORWHITE;
1、公式源码如下:
买线:=EMA(CLOSE,2);
卖线:=EMA(SLOPE(CLOSE,8)*1+CLOSE,8);
BUY1:CROSS(买线,卖线);
2、公式效果如下图:
望采纳
听说168炒股学习网有股票专家在线解答,来请教一下:请老师帮我把下面主图公式改为选股公式,当出现“出击”时就预警,谢谢,请各位股神帮忙解答,谢谢