设为首页加入收藏

微信关注
官方微信号:71712643
加关注获取每日精选资讯
股票入门欢迎您加入
广告服务联系我们网站地图

大智慧股票公式源码 大智慧财神线源码

2014-12-1 14:14:45 股票入门 http://rumen.southmoney.com

  南方财富网带来大智慧股票公式源码 大智慧财神线源码:

  input:H1(158,1,300),P(20,1,100),N8(4,1,100),P1(5,1,100);

  主线:=(WMA(CLOSE,P1) * 0.98);

  VAR1:=POW((CLOSE - 主线),1);

  VAR2:=MA(VAR1,3);

  VAR3:=SQRT(VAR2);

  阻力线:=(主线 + (1.96 * VAR3));

  支撑线:=(主线 - (1.96 * VAR3));

  PARTLINE(主线,((主线 》 REF(主线,1)) AND (阻力线 《》 支撑线)),RGB(255,0,0),主线 《 REF(主线,1),RGB(0,255,0),1,RGB(0,0,255)),LINETHICK2;

  DRAWICON((主线 》 REF(主线,1)),主线,10);

  VAR1:=WINNER(CLOSE);

  VAR2:=(VOL / CAPITAL);

  VAR3:=(VAR2 / VAR1);

  财神线:=IF((VAR1 《 (12 / 100)),VAR3,0);

  DRAWICON((财神线 》 3),LOW,10);

  DRAWICON((((财神线 《 REF((财神线 》 1),1)) AND (财神线 》 0.5)) AND (财神线 《 1)),HIGH,1);

  VAR1111:=FORCAST(CLOSE,5);

  STICKLINE((CLOSE 《 OPEN),HIGH,LOW,1,0),color880000;

  STICKLINE((CLOSE 《 OPEN),HIGH,LOW,0,0),colorFF0000;

  STICKLINE((CLOSE 《 OPEN),CLOSE,OPEN,8,0),color880000;

  STICKLINE((CLOSE 《 OPEN),CLOSE,OPEN,7,0),color990000;

  STICKLINE((CLOSE 《 OPEN),CLOSE,OPEN,6,0),colorAA0000;

  STICKLINE((CLOSE 《 OPEN),CLOSE,OPEN,5,0),colorBB0000;

  STICKLINE((CLOSE 《 OPEN),CLOSE,OPEN,4,0),colorCC0000;

  STICKLINE((CLOSE 《 OPEN),CLOSE,OPEN,3,0),colorDD0000;

  STICKLINE((CLOSE 《 OPEN),CLOSE,OPEN,2,0),colorEE0000;

  STICKLINE((CLOSE 《 OPEN),CLOSE,OPEN,1,0),colorFF0000;

  STICKLINE((CLOSE 》= OPEN),HIGH,LOW,1,0),colorFF0000;

  STICKLINE((CLOSE 》= OPEN),HIGH,LOW,0,0),colorEEFF00;

  STICKLINE((CLOSE 》= OPEN),CLOSE,OPEN,8,0),colorFF0000;

  STICKLINE((CLOSE 》= OPEN),CLOSE,OPEN,7,0),color22FF00;

  STICKLINE((CLOSE 》= OPEN),CLOSE,OPEN,6,0),color44FF00;

  STICKLINE((CLOSE 》= OPEN),CLOSE,OPEN,5,0),color66FF00;

  STICKLINE((CLOSE 》= OPEN),CLOSE,OPEN,4,0),color88FF00;

  STICKLINE((CLOSE 》= OPEN),CLOSE,OPEN,3,0),colorAAFF00;

  STICKLINE((CLOSE 》= OPEN),CLOSE,OPEN,2,0),colorCCFF00;

  STICKLINE((CLOSE 》= OPEN),CLOSE,OPEN,1,0),colorEEFF00;

  STICKLINE((CLOSE 《 OPEN),HIGH,LOW,1,0),color880000;

  STICKLINE((CLOSE 《 OPEN),HIGH,LOW,0,0),colorFF0000;

  STICKLINE((CLOSE 《 OPEN),CLOSE,OPEN,8,0),color880000;

  STICKLINE((CLOSE 《 OPEN),CLOSE,OPEN,7,0),color990000;

  STICKLINE((CLOSE 《 OPEN),CLOSE,OPEN,6,0),colorAA0000;

  STICKLINE((CLOSE 《 OPEN),CLOSE,OPEN,5,0),colorBB0000;

  STICKLINE((CLOSE 《 OPEN),CLOSE,OPEN,4,0),colorCC0000;

  STICKLINE((CLOSE 《 OPEN),CLOSE,OPEN,3,0),colorDD0000;

  STICKLINE((CLOSE 《 OPEN),CLOSE,OPEN,2,0),colorEE0000;

  STICKLINE((CLOSE 《 OPEN),CLOSE,OPEN,1,0),colorFF0000;

  STICKLINE((CLOSE 》= OPEN),HIGH,LOW,1,0),colorFF0000;

  STICKLINE((CLOSE 》= OPEN),HIGH,LOW,0,0),colorEEFF00;

  STICKLINE((CLOSE 》= OPEN),CLOSE,OPEN,8,0),colorFF0000;

  STICKLINE((CLOSE 》= OPEN),CLOSE,OPEN,7,0),color22FF00;

  STICKLINE((CLOSE 》= OPEN),CLOSE,OPEN,6,0),color44FF00;

  STICKLINE((CLOSE 》= OPEN),CLOSE,OPEN,5,0),color66FF00;

  STICKLINE((CLOSE 》= OPEN),CLOSE,OPEN,4,0),color88FF00;

  STICKLINE((CLOSE 》= OPEN),CLOSE,OPEN,3,0),colorAAFF00;

  STICKLINE((CLOSE 》= OPEN),CLOSE,OPEN,2,0),colorCCFF00;

  STICKLINE((CLOSE 》= OPEN),CLOSE,OPEN,1,0),colorEEFF00;

  VAR1:=(((CLOSE + HIGH) + LOW) / 3);

  CB:=MA(VAR1,4);

  A1:=HHV(CB,18);

  A2:=HHV(CB,41);

  A3:=(HHV(HIGH,62) * 0.98);

  B1:=LLV(CB,18);

  B2:=(LLV(LOW,62) * 1.02);

  MID:=MA(CLOSE,20);

  UPPER:=(MID + (2 * STD(CLOSE,20)));

  LOWER:=(MID - (2 * STD(CLOSE,20)));

  VAR18:=((EMA(CLOSE,3) - EMA(CLOSE,6)) - ((EMA(CLOSE,6) - EMA(CLOSE,12)) * (0 - 100)));

  VAR28:=EMA(VAR18,3);

  VAR38:=((EMA(CLOSE,3) - EMA(CLOSE,6)) - ((EMA(CLOSE,24) - EMA(CLOSE,36)) * (0 - 100)));

  VAR48:=EMA(VAR38,9);

  VAR58:=CROSS(VAR18,VAR28);

  VAR36:=CROSS(VAR28,VAR18);

  STICKLINE(VAR36,OPEN,CLOSE,1.5,0),colorFFFFFF;

  STICKLINE(VAR58,OPEN,CLOSE,8,0);

  STICKLINE(VAR58,OPEN,(CLOSE - ((CLOSE - OPEN) * 0.33)),8,0),colorFFFF00;

  STICKLINE(VAR58,OPEN,(CLOSE - ((CLOSE - OPEN) * 0.66)),8,0),LINETHICK2,colorFF00FF;

  拐点:=MA(CLOSE,N8);

  拐点1:=MA(CLOSE,N8);

  GD1:=(REF((COUNT((拐点 《= REF(拐点,1)),5) = 5),1) AND (拐点 》 REF(拐点,1)));

  GD2:=(REF((COUNT((拐点1 《= REF(拐点1,1)),5) = 5),1) AND (拐点1 》 REF(拐点1,1)));

  DRAWICON(GD1,(LOW * 0.99),8);

  DRAWICON(GD1,(LOW * 0.98),1);

  MID:=MA(CLOSE,20);

  UPPER:=(MID + (2 * STD(CLOSE,20)));

  LOWER:=(MID - (2 * STD(CLOSE,20)));

  V1:=(((CLOSE - LOWER) / (UPPER - LOWER)) * 100);

  V2:=(V1 - EMA(V1,5));

  K1:=(SUM(LLV(V2,4),4) / 4);

  V3:=(EMA(V2,64) * 10);

  V4:=EMA(((0.4 * V2) * (0 - 1)),3);

  V5:=(0 - ((1 * EMA(V2,39)) * 10));

  A:=(V3 》 10);

  B:=(V2 》 V4);

  D:=(V5 》 10);

  E:=(((V3 《= 10) OR (V2 《= V4)) OR (V5 《= 10));

  KS:=(((CLOSE - SMA(CLOSE,13,1)) / SMA(CLOSE,13,1)) * (0 - 100));

  RKS:=REF(KS,1);

  MLS:=((((RKS / KS) 》 1.23) AND (RKS 》 13)) AND ((CLOSE / REF(CLOSE,1)) 》 1.03));

  开:=OPEN;

  高:=HIGH;

  低:=LOW;

  收:=CLOSE;

  超跌:STICKLINE((KS 》 13),高,低,0,1),LINETHICK2,colorFFFFFF;

  反弹:STICKLINE((MLS = 1),高,低,0,1),LINETHICK2,colorFF00FF;

  STICKLINE((KS 》 13),开,收,8,1),LINETHICK2,colorFFFFFF;

  STICKLINE((MLS = 1),开,收,8,1),LINETHICK2,colorFF00FF;

  VAR1:=((REF(HIGH,1) + REF(LOW,1)) / 2);

  VAR2:=((REF(HIGH,1) + REF(LOW,1)) / 2);

  VAR3:=(MA(CLOSE,27) + (2 * STD(CLOSE,27)));

  DRAWICON(CROSS(VAR2,VAR3),(HIGH * 1.035),3);

  DRAWTEXT(CROSS(VAR2,VAR3),(HIGH * 1.02),‘’),colorFF0000;

  上:=(MA(HIGH,30) * 1.15);

  中1:=(MA(HIGH,3) * 1.03);

  中2:=(MA(LOW,3) * 0.97);

  下:=(MA(LOW,30) * 0.85);

  上通道:=(EMA(EMA(EMA(HIGH,5),5),5) * 1.05);

  DRAWTEXT(FILTER(((HIGH 》 上通道) AND (CLOSE 《 上通道)),3),(HIGH * 1.04),‘●逃’),colorEE00FF;

  短期乖离率:=(((CLOSE - MA(CLOSE,13)) / MA(CLOSE,13)) * 100);

  趋势:=(((5 * SMA((((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 80),5,1)) - (3 * SMA(SMA((((CLOSE - LLV(LOW,7)) / (HHV(HIGH,7) - LLV(LOW,7))) * 80),5,1),3,1))) - SMA(SMA(SMA((((CLOSE - LLV(LOW,20)) / (HHV(HIGH,20) - LLV(LOW,20))) * 80),5,1),3,1),2,1));

  趋势1:=MA(MA(趋势,5),3);

  平衡线:=EMA(EMA(EMA(HIGH,3),3),1);

  回挡线:=(平衡线 * 0.92);

  DRAWICON(((CROSS(趋势,0) AND (短期乖离率 》 3)) AND ((回挡线 - REF(回挡线,1)) 》 0)),LOW,0);

  中期大底:=(LLV(LOW,30) * 1.01);

  DRAWTEXT((((LOW 《= 中期大底) AND ((回挡线 - REF(回挡线,1)) 》= (0 - 0.99999))) AND ((CLOSE / OPEN) 》 1.025)),LOW,‘买吧’),colorFFFF00;

  VAR2:=(平衡线 * 0.84);

  了结线:=(平衡线 * 1.06);

  主线:=WMA(CLOSE,8);

  VAR1:=POW((CLOSE - 主线),1);

  VAR2:=MA(VAR1,3);

  VAR3:=SQRT(VAR2);

  WX:=MA(CLOSE,0);

  M1:=(MA(CLOSE,15) * IF((20 《 5),WX,1));

  M2:=(MA(CLOSE,20) * IF((20 《 7),WX,1));

  DRAWTEXT(((((((REF(CLOSE,1)《 M2 AND (主线 - REF(主线,1)) 》 0) AND

  (了结线 - REF(了结线,1)) 》 0.01) AND LOW 《 M2) AND CLOSE 》 M2) AND ((M1 - REF(M1,1)) 》 0))

  AND ((CLOSE / OPEN) 》 1.052)),(LOW - 0.08),‘★打劫’);

  MA10:=MA(CLOSE,10);

  平均值:=((MA10 / -10) + MA10);

  MX:=((平均值 * 2) * 0.54);

  MA13:=MA(CLOSE,13);

  MA34:=MA(CLOSE,25);

  DRAWTEXT(FILTER((((((((上 - REF(上,1)) 》 0) AND (短期乖离率 《 (0 - 4))) AND (CLOSE 《 OPEN)) AND (LOW 《= MA34)) AND (CLOSE 《 MA13)) AND ((MX - REF(MX,1)) 》 0)),1),LOW,‘★破多买入’),colorFFFFFF;

  短期底:=(LLV(HIGH,30) * 0.93);

  DRAWTEXT((((LOW 《= 短期底) AND (CLOSE 《 MX)) AND (短期乖离率 》 (0 - 8))),(LOW - 0.15),‘★涨20%’);

股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。