同花顺股票源码公式 发一套源码公式,决策稳赚 内外盘差 抄底选股 资金博弈 趋势逃顶
2015-1-12 10:51:34 股票入门 http://rumen.southmoney.com
南方财富网带来同花顺股票源码公式 发一套源码公式,决策稳赚 内外盘差 抄底选股 资金博弈 趋势逃顶:
为感谢朋友们的支持,发一套源码指标公式,分享给朋友们,希望大家喜欢。
此为主图指标,有未来,看自己了,我是习惯了,见仁见智,配一个未来的也不会有多大影响,不过刚好可以弥补一些准确性~
决策稳赚 内外盘差 抄底选股 资金博弈 趋势逃顶
{决策稳赚}
JJ1:=MAX(MAX((H-L),ABS(REF(C,1)-H)),ABS(REF(C,1)-L));
JJ2:=MA(JJ1,13);
JJ3:=REF(C,1)-REF(JJ2,1);
重要参考线:HHV(JJ3,13),LINETHICK1,COLORGREEN;
J1:=MA(C,13);
决策关注:STICKLINE(J1》O AND C》J1 AND O《C,O,C,2,0),COLORYELLOW;
{}
ST:=(CLOSE/OPEN+1)*100;
ZF:=(C/REF(C,1)+1)*100;
SX1:=ST》3 AND ST=HHV(ST,5);
SX2:=ZF》3 AND ZF=HHV(ZF,5);
SX3:=ZF》=9 AND CLOSE=HIGH;
S:=IF(SX1 OR SX2 OR SX3,1,0),COLOR0000FF;
DYSJ:=WEEKDAY;
监测:=IF(DYSJ《=13 AND COUNT(C》REF(L,DYSJ),DYSJ)》=DYSJ+1,DYSJ,0),COLOR00FFFF;
关注:=IF(DYSJ》=5 AND COUNT(H》REF(H,DYSJ),5)》=5,REF(H,DYSJ),REF(H,DYSJ)),COLOR00FFFF;
监测②:=IF(关注=REF(L,DYSJ),REF(L,DYSJ),REF(L,DYSJ)),COLORFFFFFF;
STICKLINE(监测,监测②,监测②,3,0),COLOR00FFFF;
BF1:=LOW《关注*1.01 AND COUNT(LOW《关注*1.01,监测)=1;
BF2:=LOW《关注 AND COUNT(LOW《关注,监测)=1;
BF:=IF(BF1 OR BF2,1,0),COLOR00FF00;
支撑:STICKLINE(监测,关注,关注,6,0),COLORFF00FF;
【箱顶】:PEAK(HIGH,10,1)*0.98,COLORRED,LINETHICK1;
【箱底】:TROUGH(LOW,10,1)*1.02,COLORCYAN,LINETHICK1;
PD:=ISLASTBAR;
DRAWNUMBER(PD,【箱顶】,【箱顶】),COLORFF8080;
DRAWNUMBER(PD,【箱底】,【箱底】),COLORFF8080;
BIAS1:=MA((CLOSE-MA(CLOSE,13))/MA(CLOSE,13),3)*100,COLORWHITE;
BIAS3:=MA((CLOSE-MA(CLOSE,27))/MA(CLOSE,27),3)*100,COLORFF00FF,LINETHICK2;
操作区:=IF(BIAS3《0,BIAS3,0),COLORRED,LINETHICK3;
观望区:=IF(BIAS3》0,BIAS3,0),COLORGREEN,LINETHICK3;
VAR2K:=TROUGHBARS(3,15,1)《10;
VAR3K:=PEAKBARS(3,15,1)《10;
VAR4K:=IF(VAR2K=1,50,0);
VAR5K:=IF(VAR3K=1,50,0);
TJ1K:=观望区《REF(观望区,1) OR 观望区-REF(观望区,1)《REF(观望区,1)-REF(观望区,2);
TJ2K:=操作区》REF(操作区,1);
顶:=IF(TJ1K AND VAR5K=50,15,0),STICK,LINETHICK1,COLORGREEN;
底:=IF(TJ2K AND VAR4K=50,10,0),STICK,LINETHICK1,COLORRED;
DRAWICON(TJ1K AND VAR5K=50,HHV(H,10)+0.1,2);
DRAWICON(TJ2K AND VAR4K=50,LLV(L,10)-0.06,1);
-----------------------------------------
此指标用于排序,寻找强势股~
{内外盘差}
PJ:=(H+L+C)/3;
V1:=IF(H=L,1,H-MAX(O,C));
V2:=IF(H=L,1,MAX(C,O)-PJ);
V3:=IF(H=L,1,MIN(O,C)-L);
V4:=IF(H=L,1,PJ-MIN(C,O));
V5:=VOL/IF(H=L,4,H-L);
V6:=(V1*V5)+(V2*V5);
V7:=(V3*V5)+(V4*V5);
WP1:=DYNAINFO(23);
NP1:=DYNAINFO(22);
WP2:=IF(ISLASTBAR,V7*240/FROMOPEN,V7);
NP2:=IF(ISLASTBAR,V6*240/FROMOPEN,V6);
WP【外】:IF(ISLASTBAR AND PERIOD=5 ,WP1,WP2),NODRAW;
NP【内】:IF(ISLASTBAR AND PERIOD=5 ,NP1,NP2),NODRAW;
日差【手】:WP【外】-NP【内】,NODRAW;
周差【手】:SUM(日差【手】,5),NODRAW;
十日差【手】:SUM(日差【手】,10),LINETHICK2,COLORYELLOW,NODRAW;
月差【手】:SUM(日差【手】,22),NODRAW;
连红天:BARSLASTCOUNT(日差【手】》0),COLORRED;
STICKLINE(日差【手】》O,0,日差【手】,2,0),COLORRED;
STICKLINE(日差【手】《O,0,日差【手】,2,0),COLORFFFF00;
-----------------------------------------------------------------
此指标用于选股~
{抄底选股}
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD 》 0) AND (HD 》 LD)),HD,0),10);
DMM:=SUM(IF(((LD 》 0) AND (LD 》 HD)),LD,0),10);
PDI:=((DMP * 100) / TR1);
MDI:=((DMM * 100) / TR1);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
NEWVOL:=(RSI5 - WR10);
买入:=(AV + NEWVOL);
最佳买入:IF(CROSS(买入,0),0.5,0),COLORGREEN;
VAR1:=SMA(最佳买入,3,1);
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
抄底:IF(CROSS(VAR2,VAR3) AND (VAR2《40),1.5,0),COLORMAGENTA;
DRAWTEXT(CROSS(VAR2,VAR3) AND (VAR2《40),1.3,‘↖抄底’),COLOR0000FF,LINETHICK2;
加仓:CROSS(C,MA(C,3)) AND REF(C,2)《REF(MA(C,3),2),COLORYELLOW;
DRAWTEXT(加仓,0.8,‘↖加仓’),COLORCBC0FF,LINETHICK2;
-------------------------------------------------------
此指标用于分时,我一般用于排序
{分时指标:资金博弈}
超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
超S:=-L2_AMO(0,3)/10000.0;
大S:=-L2_AMO(1,3)/10000.0;
中S:=-L2_AMO(2,3)/10000.0;
小S:=-L2_AMO(3,3)/10000.0;
净流入:(超B+大B+中B+小B)+(超S+大S+中S+小S),NODRAW;
超大单:(超B)+(超S);
大单:(大B)+(大S);
中单:(中B)+(中S);
小单:(小B)+(小S);
--------------------------------------------------------------
此指标用于趋势逃顶~
{趋势逃顶}
VAR1:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*200;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=LLV(LOW,5);
VAR6:=HHV(HIGH,5);
VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2;
VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2);
VAR9:=3*VAR7-2*VAR8;
VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VARB:=POW(MA(LOW,5),2)+MA(LOW,5);
VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10;
VARE:=SMA(VARD,3,1)*1.5-100;
VARF:=SMA(VARE,3,1);
VAR10:=3*VARE-2*VARF;
VAR11:=(HIGH+LOW+CLOSE*2)/4;
VAR12:=EMA(VAR11,13);
VAR13:=STD(VAR11,13);
VAR14:=(VAR11-VAR12)*100/VAR13;
VAR15:=EMA(VAR14,5);
VAR16:=EMA(VAR15,13);
VAR17:=EMA(VAR15,13)+200-100;
VAR18:=EMA(VAR17,10);
VAR19:=3*VAR17-2*VAR18;
VAR1A:=VAR2+VAR7+VARE+VAR17;
VAR1B:=VAR3+VAR8+VARF+VAR18;
VAR1C:=VAR4+VAR9+VAR10+VAR19;
VAR1D:=(HIGH+LOW+CLOSE)/3;
VAR1E:=AMOUNT/VOL/100;
VAR20:=SUM(AMOUNT,5)/SUM(VOL,5)/100;
VAR21:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34));
VAR22:=(CLOSE+HIGH+LOW+OPEN)/4;
VAR23:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
VAR24:=(HIGH+LOW+CLOSE+VAR1D)/4;
VAR25:=EMA(VAR24,24);
VAR26:=STD(VAR24,24);
VAR27:=(VAR24-VAR25)/VAR26*100;
VAR28:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24));
VAR29:=EMA(VAR27,5);
VAR2A:=(VAR1E-MA(VAR1E,21))/(0.015*AVEDEV(VAR1E,21));
VAR2B:=SUMBARS(VOL,CAPITAL);
VAR2C:=(VAR20-MA(VAR20,90))/(0.015*AVEDEV(VAR20,90));
VAR2D:=((VAR2C+VAR2A+VAR29+VAR28+VAR21)/5+165)/4;
VAR2E:=(EMA(EMA(EMA(VAR2D,15),10),5)-25)*2+VAR23;
VAR2F:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;
VAR30:=EMA(VAR2F,13);
VAR31:=(VAR2D+VAR2F)/2/1.1;
VAR32:=HHV(VAR22,VAR2B);
VAR33:=LLV(VAR22,VAR2B);
VAR34:=(VAR22-VAR33)/(VAR32-VAR33);
人: IF(VAR22》=VAR32,(2*VAR22-VAR33-REF(VAR32,1))/(VAR32-VAR33),VAR34),COLORRED;
IF(VAR22《=VAR33,(2*VAR22-VAR33-REF(VAR33,1))/(VAR32-VAR33),VAR34),COLORGREEN;
AAA:=IF(VAR22》=VAR32,(2*VAR22-VAR33-REF(VAR32,1))/(VAR32-VAR33),VAR34);
DRAWICON(AAA《=0,0,23);
DRAWICON(AAA》=1,1.1,2);
地: 0;
天: 1;
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。