通达信公式三天加仓
2014-11-20 12:53:10点击:
MMAA60:=MA(CLOSE,60);
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
买1:=QJ0*(MIN(OPEN,CLOSE)-LOW);
买2:=QJ0*(JJ-MIN(CLOSE,OPEN));
卖1:=QJ0*(MAX(CLOSE,OPEN)-JJ);
卖2:=QJ0*(HIGH-MAX(OPEN,CLOSE));
DT:=((买1+买2)-(卖1+卖2))/10000;
主力持仓:=SUM(DT,66),COLORWHITE,LINETHICK1;
WUYU1:=STICKLINE(DT>0,主力持仓,主力持仓+DT,1,0),COLOR0000FF;
WUYU2:=STICKLINE(DT<0,主力持仓+DT,主力持仓,1,0),COLOR00FF00;
主力三天加仓:=DT>0 AND REF(DT>0,1) AND REF(DT>0,2);
COUNT(主力三天加仓,1) AND 主力持仓>0 AND C>(MA(CLOSE,60)) AND (MA(CLOSE,5))>(MA(CLOSE,10)) ;
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
买1:=QJ0*(MIN(OPEN,CLOSE)-LOW);
买2:=QJ0*(JJ-MIN(CLOSE,OPEN));
卖1:=QJ0*(MAX(CLOSE,OPEN)-JJ);
卖2:=QJ0*(HIGH-MAX(OPEN,CLOSE));
DT:=((买1+买2)-(卖1+卖2))/10000;
主力持仓:=SUM(DT,66),COLORWHITE,LINETHICK1;
WUYU1:=STICKLINE(DT>0,主力持仓,主力持仓+DT,1,0),COLOR0000FF;
WUYU2:=STICKLINE(DT<0,主力持仓+DT,主力持仓,1,0),COLOR00FF00;
主力三天加仓:=DT>0 AND REF(DT>0,1) AND REF(DT>0,2);
COUNT(主力三天加仓,1) AND 主力持仓>0 AND C>(MA(CLOSE,60)) AND (MA(CLOSE,5))>(MA(CLOSE,10)) ;
- 上一篇:一个简单组合求优化 2014/11/20
- 下一篇:飞狐均衡趋势主图指标公式 2014/11/19