仿通金魔方十三个指标源码
通金魔方最近很火,指标好坏不说完全加密,故仿作一下它的源码方便大家使用和判断。每天上两个指标。也望高手在做优化更加接近原指标!
仿兵临城下
主持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORMAGENTA LINETHICK2;
散持仓:=EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),COLORFFAA66,LINETHICK3;
强分界: 80,COLORYELLOW;
庄筹度:WINNER(C)*100 COLORRED LINETHICK2;
散筹度:(WINNER(C*1.1)-WINNER(C*0.9))*100 COLORGREEN LINETHICK2;
弱分界: 0,COLORYELLOW;
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW =VAR4,VAR3,0),3);
主力进场:IF(VAR5 REF(VAR5,1),VAR5,0),COLORRED,NODRAW;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,3,0 ),COLOR000055;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,2.6,0 ),COLOR000077;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,2.1,0 ),COLOR000099;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,1.5,0 ),COLOR0000BB;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,0.9,0 ),COLOR0000DD;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,0.3,0 ),COLOR0000FF;
洗盘:IF(VAR5 REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,3,0),COLOR005500;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,2.6,0),COLOR007700;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,2.1,0),COLOR009900;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,1.5,0),COLOR00BB00;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,0.9,0),COLOR00DD00;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,0.3,0),COLOR00FF00;
仿庖丁解牛
快线:EMA(EMA(EMA(EMA(CLOSE,3),3),3),3),LINETHICK2,COLORRED;
慢线:EMA(REF(快线,1),3),LINETHICK2,COLOR00FFFF;
总趋势:EMA(EMA(EMA(EMA(EMA(CLOSE,65),3),3),3),3),LINETHICK2,COLORBLUE;
HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;
AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
DRAWICON(CC,H*1.02,2);
DDD:=BARSLAST(CC);
GDTS:=IF(CC,CURRBARSCOUNT,0);
DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DINGBU1:=REF(DINGBU,DDD+1);
GDCS1:=CONST(DINGBUTS);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=CONST(DINGBUTS1);
DINGBU2:=REF(DINGBU1,DDD+1);
MM:=IF(CURRBARSCOUNT GDCS2,0,1);
高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORGREEN,LINETHICK2;
DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF,POINTDOT;
DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW,POINTDOT;
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY1:=BACKSET(AA1,LOWN+1);
CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
DRAWICON(CC1,L*0.98,1);
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
YDB:=IF(DD1,REF(L,DD1),L);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=CONST(DDTS1);
ZDB:=REF(YDB,DD1+1);
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=CONST(DDTS2);
低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,LINETHICK2;
ZGSTAR:=(高点压力+低点支撑)/2;
ZGEND:=CONST((高点压力+低点支撑)/2);
STARDAY:=IF(DDCS2 GDCS2,DDCS2,GDCS2);
中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORFF55BB,LINETHICK2;
{股海网提供www.9m8.cn}
DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAGENTA,POINTDOT,;
DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCYAN,POINTDOT;
道破天机
CG:MA(C,21),COLOR00FF00,LINETHICK2;
FL:HHV(CG,3),COLORFF0000,LINETHICK2;
FS:CG-(FL-CG),COLORRED,LINETHICK2;
上收:=C; 上开:=O;上高:=H; 上低:=L;
上轨:MA(REF(HHV(上收,21),1),21),CIRCLEDOT,COLOR00FFFF,LINETHICK0;
下轨:MA(REF(LLV(上收,30),1),21),CIRCLEDOT,COLORRED ,LINETHICK0 ;
STICKLINE(OPEN =CLOSE ,O,C,3,0 ),COLOR00FF00;
STICKLINE(OPEN =CLOSE ,O,C,1.75,0 ),COLOR00FF00;
STICKLINE(OPEN =CLOSE ,O,C,0.5,0 ),COLOR00FF00;
STICKLINE(CLOSE OPEN,O,C,3,0 ),COLORRED;
STICKLINE(CLOSE OPEN,O,C,1.75,0 ),COLORRED;
STICKLINE(CLOSE OPEN,O,C,0.5,0 ),COLORRED;
STICKLINE(CLOSE OPEN,OPEN,LOW,0,0),COLORRED;
STICKLINE(CLOSE OPEN,CLOSE,HIGH,0,0 ),COLORRED;
STICKLINE(OPEN =CLOSE,CLOSE,LOW,0,0 ),COLOR00FF00;
STICKLINE(OPEN =CLOSE,OPEN,HIGH,0,0),COLOR00FF00;
仿V型反转.txt (141 Bytes) 预览附件
仿龙虎看盘.txt (134 Bytes) 预览附件
仿守株待兔.txt (1.36 KB) 预览附件
仿好当家.txt (3.28 KB) 预览附件
仿独步天下.txt (877 Bytes) 预览附件
仿顶天立地.txt (256 Bytes) 预览附件
跟多请下载附件