以下是同花顺公式源码和截图
同花顺主力筹码选股公式源码:
Var1:=EMA(/CAPITAL,3);
Var2:=HHV(Var1,240);
Var3:=LLV(Var1,240);
Var4:=MA(CLOSE,33);
Var5:=EMA(CLOSE,13)-EMA(CLOSE,26);
Var6:=EMA(Var5,9);
Var7:=2*(Var5-Var6);
Var8:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
Var9:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
VarA:=(CLOSE-LLV(LOW,225))/(HHV(HIGH,225)-LLV(LOW,225))*100;
VarB:=SMA(Var8,3,1);
VarC:=SMA(Var9,15,1);
VarD:=SMA(VarA,45,1);
VarE:=(VarD-REF(VarD,1))*50;
VarF:=(VarC-REF(VarC,1))*10;
Var10:=REF(VarC,1)-REF(VarD,1);
Var11:=(VarC-Var10-VarD)*30;
Var12:=VarB-REF(VarB,1);
固定筹码:EMA((Var1-Var3)/Var3*Var4,13);
移动筹码:EMA((Var2-Var1)/Var1*Var4,13);
多空对比:固定筹码-移动筹码,COLORSTICK;
Var13:=Var7 =-0.035ANDVar7 =0.045ANDCLOSE MA(CLOSE,5)
ANDCLOSE MA(CLOSE,10)AND多空对比 -100;
大:IF(Var13ANDVar12 7ANDREF(Var12,1) 0
ANDVar12-REF(Var12,1) 9,1,0),LINETHICK3,Color00FFFF;
STICKLINE(大黑马,0,固定筹码,5,0),LINETHICK3,Color00FFFF;
DRAWICON(大黑马,固定筹码*1.1,1);
A:=IF(C REF(C,1)ANDMA(C,3) REF(MA(C,3),1),1,0);
B:=IF(C REF(C,1)ANDMA(C,3) REF(MA(C,3),1),1,0);
E:=IF(C REF(C,1)ANDMA(C,3) REF(MA(C,3),1),1,0);
D:=IF(C REF(C,1)ANDMA(C,3) REF(MA(C,3),1),1,0);
DRAWTEXT(A,MA(C,6),'●'),COLORRED;
DRAWTEXT(B,MA(C,6),'●'),COLORGREEN;
DRAWTEXT(E,MA(C,6),'○'),COLORLIRED;
DRAWTEXT(D,MA(C,6),'○'),COLORLIGREEN;
VAR1:=ma(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR3:=MA(CLOSE,30);
VAR4:=MA(CLOSE,60);
VAR5:=EMA(COst(85),7);
VAR6:=EMA(COST(15),7);
VAR7:=SUM(CLOSE*vol*100,4)/SUM(VOL*100,4);
VAR8:=INTPART(VAR7*100)/100;
VAR9:=SUM(CLOSE*VOL*100,7)/SUM(VOL*100,7);
VARA:=INTPART(VAR9*100)/100;
VARB:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);
VARC:=INTPART(VARB*100)/100;
VARD:=EMA(CLOSE,5)-EMA(CLOSE,10);
VARE:=EMA(VARD,9);
VARF:=(-100)*(HHV(CLOSE,5)-CLOSE)/(HHV(CLOSE,5)-LLV(LOW,5))+100;
VAR10:=(-100)*(HHV(CLOSE,10)-CLOSE)/(HHV(CLOSE,10)-LLV(LOW,10))+100;
VAR11:=(-100)*(HHV(CLOSE,20)-CLOSE)/(HHV(CLOSE,20)-LLV(LOW,20))+100;
VAR12:=(-100)*(HHV(CLOSE,30)-CLOSE)/(HHV(CLOSE,30)-LLV(LOW,30))+100;
VAR13:=REF(VARE,1);
VAR14:=VARE;
VAR15:=VAR14-VAR13;
VAR16:=REF(VARD,1);
VAR17:=VARD;
VAR18:=VAR17-VAR16;
VAR19:=OPEN;
VAR1A:=CLOSE;
黑马选股:VAR19 =VAR1ANDVAR19 =VAR2ANDVAR19 =VAR3ANDVAR1A =VAR1ANDVAR1A =VARCANDVAR15 0ANDVAR18
HSL:=EMA(V/CAPITAL,3);
ZDL:=HHV(HSL,240);
ZXL:=LLV(HSL,240);
XS:=MA(C,33);
锁定筹码:EMA((HSL-ZXL)/ZXL*XS,13);
浮动筹码:EMA((ZDL-HSL)/HSL*XS,13);
力量对比:锁定筹码-浮动筹码,COLORSTICK;
同花顺主力筹码选股公式截图