股票公式源码汇总.docx
- 文档编号:7460364
- 上传时间:2023-01-24
- 格式:DOCX
- 页数:24
- 大小:23.11KB
股票公式源码汇总.docx
《股票公式源码汇总.docx》由会员分享,可在线阅读,更多相关《股票公式源码汇总.docx(24页珍藏版)》请在冰豆网上搜索。
股票公式源码汇总
股票公式源码汇总:
一招就够
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(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>0;
以逸待劳
VAR1:
=COST(10);
VAR2:
=REF(CLOSE,7)/MA(REF(CLOSE,7),3)>=1.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)/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)*100;
VARB:
=VARA>=75ANDVARA<90ANDVAR7>VAR8ANDBARSLAST(CROSS(VAR7,VAR8))<=21;
VAR2ANDVAR5AND VARB;
资金进场
A1:
=DYNAINFO(6);
A2:
=IF(LOW>A1,0,IF(HIGH A3: =VOL/WINNER(LOW); A4: =REF(HHV(CLOSE,120),1); A5: =REF(LLV(CLOSE,120),1); A6: =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-REF(CLOSE,1)),26); Var2: =MA(Var1,7); Var3: =EMA(EMA(EMA(CLOSE,12),12),12); Var4: =(Var3-REF(Var3,1))/REF(Var3,1)*100; Var5: =MA(Var4,15); Var6: =MA(CLOSE,5); Var7: =MA(CLOSE,10); Var8: =MA(CLOSE,20); Var9: =MA(VOL,10); VarA: =MA(CLOSE,60); VarB: =MA(CLOSE,30); VarC: =MA(VOL,3); VarD: =MA(VOL,5); VarE: =(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; VarF: =SMA(VarE,M1,1); Var10: =SMA(VarF,M2,1); Var11: =SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE Var12: =((ABS(Var6-Var7)/CLOSE<0.04ORABS(Var6-(Var6+Var7+Var8)/3)/(Var6+Var7+Var8)/3<0.03AND ABS(Var7-(Var6+Var7+Var8)/3)/(Var6+Var7+Var8)/3<0.03ORVar2 CLOSE>Var7ANDVar11>MAX(REF(Var11,1),REF(Var11,2))ANDVar11>MAX(REF(Var11,3),REF(Var11,4))AND (REF(MA(VOL,5),1)>REF(MA(VOL,5),2)ANDREF(MA(VOL,5),2)>REF(MA(VOL,5),3)AND REF(MA(VOL,5),3)>REF(MA(VOL,5),4)OR(CLOSE-Var6)/Var6*100<-7AND"KD.K"<8AND"KD.D"<15AND CROSS("KDJ.J"(N,M1,M2),0)ORREF(Var9,3)>MAX(REF(Var9,4),REF(Var9,5)))OR (HIGH-CLOSE)/CLOSE<=0.019ANDCLOSE>REF(CLOSE,1)AND(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.05AND (CLOSE-Var6)/Var6*100<18ANDVar5 VarA>REF(VarA,1)ANDREF(VarA,2)>REF(VarA,3)ANDREF(VarA,4)>REF(VarA,5)AND VarC>MAX(REF(VarC,1),REF(VarC,2))AND(VOL<=VarC*2OR(HIGH-CLOSE)/CLOSE<0.01)AND Var5 (CLOSE-Var6)/Var6*100<-7AND"KD.K"<8AND"KD.D"<15ANDCROSS("KDJ.J"(N,M1,M2),0))AND "ARBR.BR"<277AND(HIGH-CLOSE)/ABS(CLOSE-OPEN)<2.3ANDNOT(CROSS(Var10,VarF)ANDVar10>80)AND Var1>Var2; Var13: =VOL/CAPITAL>M3/100ANDREF(VOL/CAPITAL,1)<0.05ANDREF(VOL/CAPITAL,2)<0.05AND REF(VOL/CAPITAL,3)<0.05; Var14: =2*(COST(85)-COST(15))/(COST(85)+COST(15)); Var15: =REF(Var14,1)<=0.16; Var12ANDVar13ANDVar15; 条件选股公式: 紧追 缺省周期: 日线 Var1: =CLOSE/REF(CLOSE,1)>=1.09ANDHIGH/CLOSE<1.005ANDMA(CLOSE,90)/CLOSE>=1.1; Var1ANDCOUNT(Var1,20)=1; 技术指标公式: 1.2.3. 缺省周期: 日线 参数描述: N(10,244,10) Var1: =MA(CLOSE,5); Var2: =MA(CLOSE,10); Var3: =MA(CLOSE,60); Var4: =MA(CLOSE,35); Var5: =MA(REF(VOL,10),20); Var6: =IF(CLOSE-SMA(CLOSE,75,1)<0,CAPITAL/VOL,0); Var7: =IF(CLOSE Var8: =IF(CLOSE>Var1ANDVar3ANDCROSS(Var1,Var2)AND(VOL-Var5)/Var5>0.5AND CLOSE>MA(REF(CLOSE,1),3)ANDSMA(Var7,5,1)>0,100,50); Var9: =IF(100*VOL/CAPITAL>10AND100*VOL/CAPITAL<18ANDSMA(Var8,5,1)>50ANDVar1>Var2,150,100); 注意: Var7; 持有: Var8; 拉升: Var9; 条件选股公式: 控盘庄股(寻找高度控盘的股票,敢买吗? ) 缺省周期: 日线 AA: =C-0.23*C; CC: =WINNER(AA)*100; CC>=60 条件选股公式: LF-CDX(超短线) 缺省周期: 日线 A1: =(EMA(CLOSE,4)+MA(CLOSE,8)+MA(CLOSE,16))/3; A2: =(EMA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/3; A3: =(EMA(CLOSE,9)+MA(CLOSE,18)+MA(CLOSE,36))/3; A4: =(EMA(CLOSE,13)+MA(CLOSE,26)+MA(CLOSE,52))/3; A5: =(EMA(CLOSE,18)+MA(CLOSE,36)+MA(CLOSE,72))/3; A6: =(EMA(CLOSE,24)+MA(CLOSE,48)+MA(CLOSE,96))/3; cross(A1,A6) 条件选股公式: LF-FD(凌锋快刀) 缺省周期: 日线 参数描述: N(1,100,5)N1(1,1000,10)N2(1,1000,20)N3(2,1000,30) ar1: =IF(YEAR>=2001ANDMONTH>12,0,1); CROSS(MA(VOL,5),MA(VOL,10))ANDCROSS(MA(VOL,5),MA(VOL,20)) ANDMA(CLOSE,N)>MA(CLOSE,N1)AND MA(CLOSE,N1)>MA(CLOSE,N2) AND MA(CLOSE,N2)>MA(CLOSE,N3)AND REF(MA(CLOSE,N),1)>REF(MA(CLOSE,N1),1)AND REF(MA(CLOSE,N1),1)>REF(MA(CLOSE,N2),1)ANDREF(MA(CLOSE,N2),1)>REF(MA(CLOSE,N3),1) ANDREF(MA(CLOSE,N),2)>REF(MA(CLOSE,N1),2)ANDREF(MA(CLOSE,N1),2)>REF(MA(CLOSE,N2),2) ANDREF(MA(CLOSE,N2),2)>REF(MA(CLOSE,N3),2)*ar1 强势特征,可大胆介入,但一定要注意风险,设止损。 条件选股公式: LFFD-2(凌锋快刀之二) 缺省周期: 日线 Var1: =IF(YEAR>=2001ANDMONTH>12,0,1); Var2: =MA(VOL,40); Var3: =VOL/CAPITAL*100; Var4: =COUNT(VOL/Var2<1.3,14)>11; Var5: =CROSS(Var3,2); Var6: =CLOSE/REF(CLOSE,1)>1.025ANDCLOSE>OPEN; Var7: =Var4ANDVar5ANDVar6; Var7*Var1; 配合放量,可大胆介入,但一定要注意风险。 条件选股公式: LFMR2(短线选股) 缺省周期: 日线 ar1: =IF(YEAR>=2001ANDMONTH>12,0,1); nday: =5; down: =close/llv(low,60)<=1.2; pma1: =ma(close,5); pma2: =ma(close,10); vma1: =ma(vol,5); vma2: =ma(vol,10); diff: =ema(close,12)-ema(close,26); dea : =ema(diff,9); MACD: =DIFF-DEA; ppday: =barslast(cross(pma1,pma2)); vvday: =barslast(cross(vma1,vma2)); macdday: =barslast(cross(diff,dea)); kk: =cross(macd,0.03); sjcjd: =if((ppday<=ndayandvvday<=ndayandmacdday<=nday),1,0); sjcjdandkk*ar1; 条件选股公式: LF-QX(凌锋之强势狙击) 缺省周期: 日线 Var1: =IF(YEAR>=2001ANDMONTH>12,0,1); Var2: =REF(CLOSE,2)>REF(OPEN,2)ANDREF(CLOSE,1)OPEN; Var3: =Var2ANDREF(BARSLAST(Var2),1)<9ANDCLOSE/REF(CLOSE,10)>1.1; Var3*Var1; 条件选股公式: LFWL(无量过头) 缺省周期: 日线 nday: =hhvbars(high,120); nday1: =nday-10; nday2: =nday+10; a1: =nday>=30; a2: =ref(sum(vol,20),nday1)>finance(7)*0.4; VMA: =MA(Vol,40); A3: =COUNT(Vol A4: =Close>=hhv(high,120); A5: =COUNT(Vol<(MA(vol,10)*1.3),10)>8; A1ANDA2ANDA3ANDA4ANDA5 条 技术指标公式: LYJX06(龙源金线<六>) 缺省周期: 日线LONGYUAN Var1: =(CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100; Var2: =DATE<1020101ANDDATE<1011201ANDDATE<1011101ANDDATE<1011001ANDDATE>1000601; LY1: IF(Var2,SMA(Var1,4,1),0); LY2: IF(Var2,SMA(LY1,14,1),0); LY3: IF(Var2,3*LY1-2*LY2,0); 龙: 618.618; 源: 0.618; 金: -0.618; 线: -618.618; 技术指标公式: 买卖柱 ( ...随缘惜缘) 缺省周期: 日线 参数描述: N(1,5000,20) JS: =CLOSE; ZS: =REF(CLOSE,1); QS: =REF(CLOSE,2); SS: =JS>ZSANDJS>QSANDJS>MA(CLOSE,3); DD: =JS R: =MIN(HHV(CLOSE,N),LLV(CLOSE,N)); SS*(JS-R*0.95),VOLSTICK; DD*(JS-R*0.95),STICK; {A: =IF(CLOSE>REF(CLOSE,1),VOL,-VOL); CC: =IF(ISEQUAL,0,A); B: =SUM(CC,0)/25000; ABV: MA(B,2); M1: EMA(ABV,N1); M2: EMA(ABV,N2)} 条件选股公式: 潜力股 VOL>MA(VOL,5)AND CLOSE>MA(CLOSE,5)AND MA(CLOSE,5)>MA(CLOSE,10)AND CLOSE>0.995*OPEN 交易系统公式: 弱市卖出 参数描述: P1(6,100,10,1) 多头卖出: 次周期开盘价 Var2: =AMOUNT/10000; Var3: =IF(vol-REF(vol,1)<0,vol,0); NVI: =SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*Var3/1000,0); MNL: =MA(NVI,P1); Vara: =IF(vol-REF(vol,1)>0,vol,0)/100; PVI: =SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*Vara/100,0); MPL: =MA(PVI,P1); {多头卖出}EXITLONG: nvi>=ref(nvi,1)andref(nvi,1)>=ref(nvi,2)andpvi>ref(pvi,1)and ref(pvi,1)>ref(pvi,2)andref(pvi,2)>ref(pvi,3); ; 技术指标公式: 神光强势(神光强势股评分) 缺省周期: 日线 zy1: =close/indexc*10001: =if(zy1=hhv(zy1,3),10,0); P2: =if(zy1=hhv(zy1,5),15,0)3: =if(zy1=hhv(zy1,10),20,0); P4: =if(zy1>ref(zy1,1),10,0)5: =if(zy1>ref(zy1,1),5,0); P6: =if(ref(zy1,1)>ref(zy1,2),5,0)7: =if(ref(zy1,2)>ref(zy1,3),5,0); P8: =if(ref(zy1,3)>ref(zy1,4),5,0)9: =if(ref(zy1,4)>ref(zy1,5),5,0); P10: =if(ref(zy1,5)>ref(zy1,6),5,0)11: =if(ref(zy1,6)>ref(zy1,7),5,0); P12: =if(ref(zy1,7)>ref(zy1,8),5,0);P13: =if(ref(zy1,8)>ref(zy1,9),5,0); point: =P1+P2+p3+P4+P5+p6+P7+P8+p9+P10+P11+p12+p13; 神光评分: point; 技术指标公式: 统计(任意时段涨跌幅、换手率等指标) 缺省周期: 日线 参数描述: DATE1(900101,1991231,990519) DATE2(900101,1991231,990629) ZQ1: =SUMBARS(IF(DATE ZQ2: =SUMBARS(IF(DATE<=DATE2,CLOSE,0),0.1); JG1: =IF(ZQ1=0,CLOSE,REF(CLOSE,ZQ1)); JG2: =IF(ZQ2=0,CLOSE,REF(CLOSE,ZQ2)); 涨跌: JG2/JG1*100-100; ZJG: =SUM(IF(DATE>=DATE1ANDDATE<=DATE2,CLOSE,0),0); 均价: ZJG/(ZQ1-ZQ2); 最高: IF(ZQ2=0,HHV(HIGH,ZQ1),REF(HHV(HIGH,ZQ1-ZQ2),ZQ2)); 最低: IF(ZQ2=0,LLV(HIGH,ZQ1),REF(LLV(HIGH,ZQ1-ZQ2),ZQ2)); 震幅: (最高-最低)/均价*100; ZSS: =SUM(IF(DATE>=DATE1ANDDATE<=DATE2,VOL,0),0); 换手: ZSS/CAPITAL*100; 技术指标公式: 王者 {以上同前面的条件选股公式: 王者} BUY: CLOSE>Var40ANDVar42ANDVar48ANDVar45; 条件选股公式: 出手就赢3(一出手就赢) 缺省周期: 日线 参数描述: N(1,100,9)M1(2,40,3)M2(2,40,3)X(10,100,80) Var1: =(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; Var2: =SMA(Var1,M1,1); Var3: =SMA(Var2,M2,1); CROSS(Var2,Var3)ANDVar3 技术指标公式: @渔猎系? (强度系数) 缺省周期: 日线
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 股票 公式 源码 汇总