设为首页加入收藏

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

大智慧股票公式 大盘仓位优化(大智慧-L2指标)副图

2014-9-18 11:20:20 股票入门 http://rumen.southmoney.com

  南方财富网带来今日大智慧股票公式:大盘仓位优化(大智慧-L2指标)副图。

  Ms5:=SMA(MA(C,2),5,3);

  Ms13:=SMA(C,13,2);

  Ms21:=SMA(C,21,1);

  RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;

  a:=SMA(RSV,3,1);

  b:=SMA(a,3,1);

  DDX:=bigorder(1,2)-bigorder(2,2);

  DIFF:=EMA(DDX,5) - EMA(DDX,13);

  DIFF2:=EMA(DDX,7) - EMA(DDX,21);

  IF(Ms5》REF(Ms5,1)) then

  m1:=10;

  ELSE IF(Ms5《REF(Ms5,1)) then

  m1:=-10;

  IF(Ms5《C) then

  m2:=5;

  ELSE IF(Ms5》C) then

  m2:=-5;

  IF(Ms13》REF(Ms13,1)) then

  m3:=5;

  ELSE IF(Ms13《REF(Ms13,1)) then

  m3:=-5;

  IF(Ms21》REF(Ms21,1)) then

  m4:=10;

  ELSE IF(Ms21《REF(Ms21,1)) then

  m4:=-10;

  IF(b》90) then

  m5:=-10;

  ELSE IF(b《90 AND b》10) then

  m5:=0;

  ELSE IF(b《10) then

  m5:=10;

  IF(diff》0 AND diff2》0) then

  m6:=10;

  ELSE IF(diff》0 OR diff2》0) then

  m6:=0;

  ELSE IF(diff《0 AND diff2《0) then

  m6:=-10;

  大盘仓位:(m1+m2+m3+m4+m5+m6+50);

  STICKLINE(大盘仓位》50,0,大盘仓位,8,1),colorF000FF;

  STICKLINE(大盘仓位《=50,0,大盘仓位,8,0),colorgreen;

  10;

  90;

  AA:CROSS(大盘仓位,10) OR 大盘仓位=10,LINETHICK0;

  STICKLINE(AA,AA,10,8,0),COLORRED;

  DRAWTEXT(AA,AA*10,‘抄’),COLOR00FFFF,LINETHICK3;

  BB:REF((CROSS(90,大盘仓位) OR 大盘仓位=90),1) AND 大盘仓位《=80 ,LINETHICK0;

  STICKLINE(BB,95,80,9,0),COLORFFFF00;

  DRAWTEXT(BB,BB*80,‘跑’),COLOR00FF00,LINETHICK3;

  更多大智慧股票公式,请关注南方财富网。

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