马上注册,享用更多功能,让你轻松玩转本论坛。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
AAA原公式如下:(适用大智慧新一代软件)
CV:=CLOSE;
BBIBOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;
UPR:=BBIBOLL+6*STD(BBIBOLL,11);
DWN:=BBIBOLL-6*STD(BBIBOLL,11);
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2)));
HSL:=(XVL/20)/1.15;
攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
LLJX:=EMA(攻击,3);0,POINTDOT,COLORWHITE;
B1:SUM(LLJX,1),COLORCYAN;
B2:SUM(LLJX,2),COLORCYAN;
B3:SUM(LLJX,3),COLORCYAN;
B4:SUM(LLJX,4),COLORCYAN;
B5:SUM(LLJX,5),COLORCYAN;
B6:SUM(LLJX,6),COLORCYAN;
B7:SUM(LLJX,7),COLORCYAN;
B8:SUM(LLJX,8),COLORCYAN;
B9:SUM(LLJX,9),COLORCYAN;
B10:SUM(LLJX,10),COLORCYAN;
partline(B1,B1>REF(B1,1),rgb(255,0,0));
partline(B2,B2>REF(B2,1),rgb(255,0,0));
partline(B3,B3>REF(B3,1),rgb(255,0,0));;
partline(B4,B4>REF(B4,1),rgb(255,0,0));
partline(B5,B5>REF(B5,1),rgb(255,0,0));
partline(B6,B6>REF(B6,1),rgb(255,0,0));
partline(B7,B7>REF(B7,1),rgb(255,0,0));
partline(B8,B8>REF(B8,1),rgb(255,0,0));
partline(B9,B9>REF(B9,1),rgb(255,0,0));
partline(B10,B10>REF(B10,1),rgb(255,0,0));
红色部分可以去掉,与指标没关系;蓝色部分计算复杂,其中的道理无法理解;绿色部分是将计算结果进行1-10天的累加,分别以指标线呈现。修改公式如下,指标形态与原指标一样,但是计算的道理一目了然。
QJJ:=VOL/(HIGH-LOW);
XVL:=QJJ*(c-o);
HSL:=XVL;
攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
LLJX:=EMA(攻击,3);0,POINTDOT,COLORWHITE;
B1:SUM(LLJX,1),COLORCYAN;
B2:SUM(LLJX,2),COLORCYAN;
B3:SUM(LLJX,3),COLORCYAN;
B4:SUM(LLJX,4),COLORCYAN;
B5:SUM(LLJX,5),COLORCYAN;
B6:SUM(LLJX,6),COLORCYAN;
B7:SUM(LLJX,7),COLORCYAN;
B8:SUM(LLJX,8),COLORCYAN;
B9:SUM(LLJX,9),COLORCYAN;
B10:SUM(LLJX,10),COLORCYAN;
partline(B1,B1>REF(B1,1),rgb(255,0,0));
partline(B2,B2>REF(B2,1),rgb(255,0,0));
partline(B3,B3>REF(B3,1),rgb(255,0,0));;
partline(B4,B4>REF(B4,1),rgb(255,0,0));
partline(B5,B5>REF(B5,1),rgb(255,0,0));
partline(B6,B6>REF(B6,1),rgb(255,0,0));
partline(B7,B7>REF(B7,1),rgb(255,0,0));
partline(B8,B8>REF(B8,1),rgb(255,0,0));
partline(B9,B9>REF(B9,1),rgb(255,0,0));
partline(B10,B10>REF(B10,1),rgb(255,0,0));
如果上面这个还是不好理解的话,下面是用MFI指标做的,形态与AAA也是一致的
TYP := (HIGH + LOW + CLOSE)/3;
HSL:=IF(TYP>REF(TYP,1),TYP*VOL,-TYP*VOL);
攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
LLJX:=EMA(攻击,3);0,POINTDOT,COLORWHITE;
B1:SUM(LLJX,1),COLORCYAN;
B2:SUM(LLJX,2),COLORCYAN;
B3:SUM(LLJX,3),COLORCYAN;
B4:SUM(LLJX,4),COLORCYAN;
B5:SUM(LLJX,5),COLORCYAN;
B6:SUM(LLJX,6),COLORCYAN;
B7:SUM(LLJX,7),COLORCYAN;
B8:SUM(LLJX,8),COLORCYAN;
B9:SUM(LLJX,9),COLORCYAN;
B10:SUM(LLJX,10),COLORCYAN;
partline(B1,B1>REF(B1,1),rgb(255,0,0));
partline(B2,B2>REF(B2,1),rgb(255,0,0));
partline(B3,B3>REF(B3,1),rgb(255,0,0));;
partline(B4,B4>REF(B4,1),rgb(255,0,0));
partline(B5,B5>REF(B5,1),rgb(255,0,0));
partline(B6,B6>REF(B6,1),rgb(255,0,0));
partline(B7,B7>REF(B7,1),rgb(255,0,0));
partline(B8,B8>REF(B8,1),rgb(255,0,0));
partline(B9,B9>REF(B9,1),rgb(255,0,0));
partline(B10,B10>REF(B10,1),rgb(255,0,0));
其实最本质的仍然是成交量,下面这个就是成交量阴阳柱的5日均线的1-10周期的加和,形态与AAA指标还是一致的
HSL:=v*(C-O)/ABS(C-O);
攻击:=HSL;
LLJX:=EMA(攻击,5);0,POINTDOT,COLORWHITE;
B1:SUM(LLJX,1),COLORCYAN;
B2:SUM(LLJX,2),COLORCYAN;
B3:SUM(LLJX,3),COLORCYAN;
B4:SUM(LLJX,4),COLORCYAN;
B5:SUM(LLJX,5),COLORCYAN;
B6:SUM(LLJX,6),COLORCYAN;
B7:SUM(LLJX,7),COLORCYAN;
B8:SUM(LLJX,8),COLORCYAN;
B9:SUM(LLJX,9),COLORCYAN;
B10:SUM(LLJX,10),COLORCYAN;
partline(B1,B1>REF(B1,1),rgb(255,0,0));
partline(B2,B2>REF(B2,1),rgb(255,0,0));
partline(B3,B3>REF(B3,1),rgb(255,0,0));;
partline(B4,B4>REF(B4,1),rgb(255,0,0));
partline(B5,B5>REF(B5,1),rgb(255,0,0));
partline(B6,B6>REF(B6,1),rgb(255,0,0));
partline(B7,B7>REF(B7,1),rgb(255,0,0));
partline(B8,B8>REF(B8,1),rgb(255,0,0));
partline(B9,B9>REF(B9,1),rgb(255,0,0));
partline(B10,B10>REF(B10,1),rgb(255,0,0));
结论:很多指标究其本质其实很简单,往往让人陷入其中不能自拔。其实关键的问题并不是指标本身,而是指标所表达的观点和理念。一切加密的或者不能了解其内涵的指标公式,我认为都应该从你的软件当中删除。
|