把机构加仓选股公式改成2个月内连续出现3次以上选股
把机构加仓选股公式改成2个月内连续出现3次以上选股
编写条件:
编写方法:
网友求助:
恳请老师把指标里面的白线大于绿线,也就是只要白线在绿线上面为信号。不是金叉或者上叉。 如下图所示谢谢
多:EMA(C,3),COLORYELLOW,linethick0;
空:EMA(C,5),COLOR00FF00,linethick0;
均衡:EMA(空,5),COLORWHITE;
a1:=1;
a2:=(EMA(CLOSE,3)) * a1;
a3:=(EMA(CLOSE,5)) * a1;
a4:=(EMA(CLOSE,2)) * a1;
a5:=(EMA((((SLOPE(CLOSE,21)) * 20) + CLOSE),42)) * a1;
红绿黏合为强势:(HHV((MA(HIGH,13)),13)) * a1,linethick2,colorRed;
绿线下方为弱势:(LLV((MA(HIGH,13)),1)) * a1,linethick1,colorGreen;
a6:=(EMA(CLOSE,4)) * a1;
DRAWTEXT((CLOSE <= 绿线下方为弱势),LOW,'↓'),colorGreen;
DRAWTEXT(((((CROSS(a2,a3)) AND (a4 >= a5)) AND (绿线下方为弱势 = 红绿黏合为强势)) AND (CLOSE > 绿线下方为弱势)),(LOW * 0.987),'追'),colorYellow;
DRAWTEXT(((((a4 >= a5) AND (绿线下方为弱势 = 红绿黏合为强势)) AND (a4 > a6)) AND (CLOSE > 绿线下方为弱势)),LOW,'▲'),colorMagenta;
a7:=((((a4 >= a5) AND (绿线下方为弱势 = 红绿黏合为强势)) AND (a4 > a6)) AND (CLOSE > 绿线下方为弱势)) AND ((REF(绿线下方为弱势,1)) < (REF(红绿黏合为强势,1)));
DRAWTEXT(a7,(LOW * 0.987),'牛'),colorYellow;
a8:=((((HIGH + LOW) + OPEN) + (2 * CLOSE)) / 5) * a1;
a9:=(REF(a8,1)) * a1;
a10:=((SMA((MAX((a8 - a9),0)),10,1)) / (SMA(ABS((a8 - a9)),10,1))) * 100;
a11:=IF((((((COUNT((a10 < 20),5)) >= 1) AND ((COUNT((a8 = (LLV(a8,10))),10)) >= 1)) AND (CLOSE >= (OPEN * 1.038))) AND (VOL > ((MA(VOL,5)) * 1.2))),1,0);
DRAWTEXT(a11,LOW,'超跌关注'),colorRed;
DRAWTEXTREL(15,30,'出现‘▲’买'),linethick2,colorMagenta;
DRAWTEXTREL(180,30,'出现‘↓’卖'),linethick2,colorGreen;
多:EMA(C,3),COLORYELLOW,linethick0;
空:EMA(C,5),COLOR00FF00,linethick0;
均衡:EMA(空,5),COLORWHITE;
a1:=1;
a2:=(EMA(CLOSE,3)) * a1;
a3:=(EMA(CLOSE,5)) * a1;
a4:=(EMA(CLOSE,2)) * a1;
a5:=(EMA((((SLOPE(CLOSE,21)) * 20) + CLOSE),42)) * a1;
红绿黏合为强势:(HHV((MA(HIGH,13)),13)) * a1,linethick2,colorRed;
绿线下方为弱势:(LLV((MA(HIGH,13)),1)) * a1,linethick1,colorGreen;
a6:=(EMA(CLOSE,4)) * a1;
DRAWTEXT((CLOSE <= 绿线下方为弱势),LOW,'↓'),colorGreen;
DRAWTEXT(((((CROSS(a2,a3)) AND (a4 >= a5)) AND (绿线下方为弱势 = 红绿黏合为强势)) AND (CLOSE > 绿线下方为弱势)),(LOW * 0.987),'追'),colorYellow;
DRAWTEXT(((((a4 >= a5) AND (绿线下方为弱势 = 红绿黏合为强势)) AND (a4 > a6)) AND (CLOSE > 绿线下方为弱势)),LOW,'▲'),colorMagenta;
a7:=((((a4 >= a5) AND (绿线下方为弱势 = 红绿黏合为强势)) AND (a4 > a6)) AND (CLOSE > 绿线下方为弱势)) AND ((REF(绿线下方为弱势,1)) < (REF(红绿黏合为强势,1)));
DRAWTEXT(a7,(LOW * 0.987),'牛'),colorYellow;
a8:=((((HIGH + LOW) + OPEN) + (2 * CLOSE)) / 5) * a1;
a9:=(REF(a8,1)) * a1;
a10:=((SMA((MAX((a8 - a9),0)),10,1)) / (SMA(ABS((a8 - a9)),10,1))) * 100;
a11:=IF((((((COUNT((a10 < 20),5)) >= 1) AND ((COUNT((a8 = (LLV(a8,10))),10)) >= 1)) AND (CLOSE >= (OPEN * 1.038))) AND (VOL > ((MA(VOL,5)) * 1.2))),1,0);
DRAWTEXT(a11,LOW,'超跌关注'),colorRed;
DRAWTEXTREL(15,30,'出现‘▲’买'),linethick2,colorMagenta;
DRAWTEXTREL(180,30,'出现‘↓’卖'),linethick2,colorGreen;
解答如下:
空:=EMA(C,5);
均衡:=EMA(空,5);
A1:=1;
绿线下方为弱势:=(LLV((MA(HIGH,13)),1)) * A1;
均衡>绿线下方为弱势;
均衡:=EMA(空,5);
A1:=1;
绿线下方为弱势:=(LLV((MA(HIGH,13)),1)) * A1;
均衡>绿线下方为弱势;
{股票资源馆:www.lixiangluntan.com专业和谐高端炒股软件--公式编写交流--加QQ751161480--}炒股教程
加3日大9日大24日公式条件选股
加3日大9日大24日公式条件选股