把主力和散户指标与趋势合并一块
2020/1/22 18:46:30
公式编写说明:
请老师把主力和散户指标与趋势合到一块,谢谢主力和散户源码: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,0),COLORFFFF82;蓝空芯:STICKLINE(TOWERC>=REF(TOWERC,1) AND A6<REF(A6,1),0,VAR1,2,1),COLORFFFF82;红空芯: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);
VAR3:=SUM(VAR1A,10);
VAR4:=SUM(VAR2A,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);
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,V*10{VAR1},2,0),COLOR3434FF;
蓝实芯:STICKLINE(TOWERC<REF(TOWERC,1) AND A6<=REF(A6,1),0,V*10{VAR1},2,0),COLORFFFF82;
蓝空芯:STICKLINE(TOWERC>=REF(TOWERC,1) AND A6<REF(A6,1),0,V*10{VAR1},2,1),COLORFFFF82;
红空芯:STICKLINE(TOWERC<REF(TOWERC,1) AND A6>=REF(A6,1),0,V*10{VAR1},2,1),COLOR3434FF;
主力:VAR3+VAR7+VARB+VARF,COLORRED,LINETHICK2;
散户:VAR4+VAR8+VARC+VAR10,COLOR00FF00,LINETHICK2;
看 股吧公式 www.k anguba.com
其它股票公式列表