资源描述:
《股票公式源码汇总》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、股票公式源码汇总:一招就够V1:=EMA(CLOSE,5);V2:=EMA(EMA(CLOSE,29)*1.01,10);CROSS(V1,V2);黑马易找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
2、(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
3、,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:=VA
4、RE;VAR15:=VAR14-VAR13;VAR16:=REF(VARD,1);VAR17:=VARD;VAR18:=VAR17-VAR16;VAR19:=OPEN;VAR1A:=CLOSE;黑马易找选股:VAR19<=VAR1ANDVAR19<=VAR2ANDVAR19<=VAR3ANDVAR1A>=VAR1ANDVAR1A>=VARCANDVAR15>0ANDVAR18>0;以逸待劳VAR1:=COST(10);VAR2:=REF(CLOSE,7)/MA(REF(CLOSE,7),3)>=1.
5、07ANDREF(CLOSE,7)=HHV(REF(CLOSE,7),3)ANDMA(REF(VOL,7),2)/MA(REF(VOL,7),40)>=3ANDMA(REF(VOL,7),2)=HHV(MA(REF(VOL,7),2),3)ANDREF(VOL,7)>REF(REF(VOL,7),1)ANDREF(CLOSE,7)>REF(REF(CLOSE,7),1);VAR3:=REF(REF(CLOSE,7),1);VAR4:=SMA(MAX(REF(CLOSE,7)-VAR3,0),5,1)
6、/SMA(ABS(REF(CLOSE,7)-VAR3),5,1)*100;VAR5:=COUNT(VAR4<20,20)>=1;VAR6:=(INDEXC-LLV(INDEXL,89))/(HHV(INDEXH,89)-LLV(INDEXL,89))*100;VAR7:=SMA(VAR6,8,1);VAR8:=SMA(VAR7,10,1);VAR9:=REF(INDEXC,1);VARA:=SMA(MAX(INDEXC-VAR9,0),6,1)/SMA(ABS(INDEXC-VAR9),6,1)*1
7、00;VARB:=VARA>=75ANDVARA<90ANDVAR7>VAR8ANDBARSLAST(CROSS(VAR7,VAR8))<=21;VAR2ANDVAR5AND VARB;资金进场A1:=DYNAINFO(6);A2:=IF(LOW>A1,0,IF(HIGH8、100*(CLOSE-A5)/(A4-A5);A7:=A2>0ORA2=1;A8:=A7ANDA3/REF(A3,3)>=3ANDA6<80;A11:=IF(FILTER(A8,3),5,0);资金进场日:A11>0,8; 条件选股公式:黑马二号(黑马一号改进) 缺省周期:日线参数描述:N(1,100,45)M1(2,40,2)M2(2,40,5)M3(1,30,5)Var1:=(HHV(CLOSE,26)-LLV(CLOSE,26))/SUM(ABS(CLOSE-