编写要求:
请老师把主力和散户指标与趋势合到一块,谢谢 主力和散户源码: VAR1:=IF(CLOSE>=REF(CLOSE,1),VOL,0); VAR2:=IF(CLOSE<=REF(CLOSE,1),VOL,0); VAR3:=SUM(VAR1,10); VAR4:=SUM(VAR2,10); VAR5:=IF(CLOSE>=MA(CLOSE,5),VOL,0); VAR6:=IF(CLOSE<=MA(CLOSE,5),VOL,0); VAR7:=SUM(VAR5,10); VAR8:=SUM(VAR6,10); VAR9:=IF(MA(CLOSE,5)>=REF(MA(CLOSE,5),1),VOL,0); VARA:=IF(MA(CLOSE,5)<=REF(MA(CLOSE,5),1),VOL,0); VARB:=SUM(VAR9,10); VARC:=SUM(VARA,10); VARD:=IF(EMA(CLOSE,10)>=REF(EMA(CLOSE,10),1),VOL,0); VARE:=IF(EMA(CLOSE,10)<=REF(EMA(CLOSE,10),1),VOL,0); VARF:=SUM(VARD,10); VAR10:=SUM(VARE,10); 主力:VAR3+VAR7+VARB+VARF,COLORRED,LINETHICK2; 散户:VAR4+VAR8+VARC+VAR10,COLOR00FF00,LINETHICK2; 趋势源码: A1:=FORCAST(EMA(CLOSE,3),6); A2:=FORCAST(EMA(CLOSE,5),6); A3:=FORCAST(EMA(CLOSE,7),6); A4:=FORCAST(EMA(CLOSE,11),6); A5:=FORCAST(EMA(CLOSE,14),6); B:=A1+A2+A3+A4-4*A5; TOWERC:=EMA(B,2); VAR1:=ABS(TOWERC)+ABS(REF(TOWERC,1))*50; VAR2:=(3*CLOSE+2*OPEN+HIGH+LOW)/7; A6:=FORCAST(EMA(VAR2,12),6); 红实芯:STICKLINE(TOWERC>=REF(TOWERC,1) AND A6>=REF(A6,1),0,VAR1,2,0),COLOR3434FF; 蓝实芯:STICKLINE(TOWERC=REF(TOWERC,1) AND A6=REF(A6,1),0,VAR1,2,1),COLOR3434FF;
解答:
?VAR1A:=IF(CLOSE>=REF(CLOSE,1),VOL,0);?
VAR2A:=IF(CLOSE<=REF(CLOSE,1),VOL,0);?
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!