将主力线指标红线在七天之内有两次下穿0以下做选股
2019/12/4 18:03:59
公式编写说明:
VAR1:=IF((CLOSE > OPEN),((CLOSE - OPEN) * VOL),IF((CLOSE < OPEN),((CLOSE - OPEN) * VOL),0));VAR2:=IF((CLOSE > REF(CLOSE,1)),((CLOSE - REF(CLOSE,1)) * VOL),IF((CLOSE < REF(CLOSE,1)),((CLOSE - REF(CLOSE,1)) * VOL),0));VAR3:=IF((OPEN > REF(CLOSE,1)),((OPEN - REF(CLOSE,1)) * VOL),IF((OPEN < REF(CLOSE,1)),((OPEN - REF(CLOSE,1)) * VOL),0));VAR4:=IF((CLOSE < OPEN),((OPEN - CLOSE) * VOL),IF((CLOSE > OPEN),((OPEN - CLOSE) * VOL),0));VAR5:=IF((CLOSE < REF(CLOSE,1)),((REF(CLOSE,1) - CLOSE) * VOL),IF((CLOSE > REF(CLOSE,1)),((REF(CLOSE,1) - CLOSE) * VOL),0));VAR6:=IF((OPEN < REF(CLOSE,1)),((REF(CLOSE,1)-OPEN) * VOL),IF((OPEN > REF(CLOSE,1)),((REF(CLOSE,1) - OPEN) * VOL),0));VAR7:=(CLOSE > OPEN);VAR8:=(CLOSE > REF(CLOSE,1));VAR9:=(OPEN > REF(CLOSE,1));VARA:=((VAR7 OR VAR8) OR VAR9);主力:(SUM(((((VAR1 + VAR2) + VAR3) / 3) / CAPITAL),5) * 1000),COLORRED;平衡:0,POINTDOT;VAR2L:=REF(LOW,1);VAR3L:=SMA(ABS(LOW-VAR2L),3,1)/SMA(MAX(LOW-VAR2L,0),3,1)*110;VAR4L:=EMA(IF(CLOSE*1.3,VAR3L*10,VAR3L/10),3);VAR5L:=LLV(LOW,13);VAR6L:=HHV(VAR4L,13);VAR7L:=IF(MA(CLOSE,34),1,0);VAR8L:=EMA(IF(LOW<=VAR5L,(VAR4L+VAR6L*2)/2,0),3)/618*VAR7L;VAR9LL:=IF(VAR8L>110,110,VAR8L);STICKLINE(VAR9LL<REF(VAR9LL,1),0,VAR9LL,2,0),COLORRED;请求老师将主力线的红线在七天之内有两次下穿0以下的,做一个选股出来,谢谢
公式源码示例:
VAR1:=IF((CLOSE > OPEN),((CLOSE - OPEN) * VOL),IF((CLOSE < OPEN),((CLOSE - OPEN) * VOL),0));
VAR2:=IF((CLOSE > REF(CLOSE,1)),((CLOSE - REF(CLOSE,1)) * VOL),IF((CLOSE < REF(CLOSE,1)),((CLOSE - REF(CLOSE,1)) * VOL),0));
VAR3:=IF((OPEN > REF(CLOSE,1)),((OPEN - REF(CLOSE,1)) * VOL),IF((OPEN < REF(CLOSE,1)),((OPEN - REF(CLOSE,1)) * VOL),0));
主力:=(SUM(((((VAR1 + VAR2) + VAR3) / 3) / CAPITAL),5) * 1000);
XG:COUNT(CROSS(0,主力),7)=2;
看股吧 公式 www.kangub a.com
其它股票公式列表