大智慧只赚免套公式源码 大智慧指标公式大全(2)
2015-11-24 17:06:53 股票入门 http://rumen.southmoney.com
DIFFA:=(DIFF-FHLB)*(KHLC/FHLC)+KHLB;
DEAA:=(DEA-FHLB)*(KHLC/FHLC)+KHLB;
MACDA:=(macd-FHLB)*(KHLC/FHLC)+KHLB;
CDA:=MACD<ref(MACD,1) and MACD>0;
CDB:=MACD>=ref(MACD,1) and MACD>0;
CDC:=MACD>ref(MACD,1) and MACD<0;
CDD:=MACD<=ref(MACD,1) and MACD<0;
STICKLINE(MACD>=0,SH,macda,1,0),COLOR5050FF,LAYER3;
STICKLINE(MACD<0,SH,macda,1,0),COLORFFFF00,LAYER3;
FILLRGN(DIFFA,DEAA,DIFF>=DEA),COLOR00FFFF,LAYER7;
FILLRGN(DIFFA,DEAA,DIFF<DEA),COLORFF5500,LAYER7;
DIFFA,COLORAAAAAA,LAYER2;DEAA,COLOR00AAAA,LAYER2;
{1、叠加区域高度}
khV:=0;
klV:=-150;
rhV:=hhvall(V);
rlV:=llvall(V);
{2、叠加比}
brV:=(khV-klV)/(rhV-rlV);
{3、叠加平移量}
wkV:=(khV-klV);
wrV:=(khV+klV-(rhV+rlV)*brV)/2;
{以下画叠加线}
量线:=(V*brV+wrV);
{以下画叠加指标的横坐标线}
STICKLINE(C<O,-150,量线,7.5,0),COLORFFFF00,LAYER3;
STICKLINE(C>=O,-150,量线,7.5,1),COLOR5050FF,LAYER3;
AAA0:=量线;
VAR111:=(8*AAA0+7*REF(AAA0,1)+6*REF(AAA0,2)+5*REF(AAA0,3)+4*REF(AAA0,4)+3*REF(AAA0,5)+2*REF(AAA0,6)+REF(AAA0,7))/36;
VAR21:=(HHV(VAR111,5)+HHV(VAR111,10)+HHV(VAR111,20))/3;
主力线:(HHV(VAR21,5)+HHV(VAR21,10)+HHV(VAR21,20))/3,linethick1,color0000FF,LAYER1;
STICKLINE(量线>=主力线,-150,量线,4,1),COLORFF00FF,LAYER7;
更多大智慧指标公式请关注南方股票网 http://rumen.southmoney.com
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。