体如何使用大家自行摸索
黑马一号主图1源码
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,13);
MA3:MA(CLOSE,30);
MA4:MA(CLOSE,60);
{成交量卖点}
VAR6:=REF(CLOSE,1);
VAR7:=SMA(MAX(CLOSE-VAR6,0),6,1)/SMA(ABS(CLOSE-VAR6),6,1)*100;
STICKLINE(CROSS(84,VAR7),CLOSE,OPEN,2.8,0),COLORGREEN;
A1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
A2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),A1);
金线王:EMA(A2,200)*1.118,LINETHICK2,COLORYELLOW;
金线王2:EMA(A2,200)*1.118,LINETHICK1,COLORRED;
{金线王3:EMA(A2,20)*1.108,LINETHICK1,COLORRED;}
条件:=(C-REF(C,1))/REF(C,1)*100>7;
金K线:=CROSS(C,金线王) AND 条件;
DRAWTEXT(金K线,L*0.98,'↖金K线'),COLORRED;
DRAWTEXT(金K线,L*0.98,' K '),COLORYELLOW ;
STICKLINE(金K线,CLOSE,OPEN,3.2,0),COLOR0077FF;
STICKLINE(金K线,CLOSE,OPEN,2.5,0),COLOR0099FF;
STICKLINE(金K线,CLOSE,OPEN,1.9,0),COLOR00BBFF;
STICKLINE(金K线,CLOSE,OPEN,1.2,0),COLOR00DDFF;
STICKLINE(金K线,CLOSE,OPEN,0.3,0),COLOR00FFFF;
{黑马一号}
AHC1:=CLOSE*VOL;
AHC22:=EMA((EXPMA(AHC1,23)/EXPMA(VOL,23)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA
(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);
通道:=1.0668*AHC22,COLOR9F5F9F,LINETHICK3;
起爆:=CROSS(C,通道) AND REF(C,1)*1.07-C<0.007 AND C>O*0.5;
DRAWTEXT(起爆,L*0.97,'↖黑马一号'),COLORYELLOW;
{红}
STICKLINE(起爆,CLOSE,OPEN,3,0),COLOR000099;
STICKLINE(起爆,CLOSE,OPEN,2.2,0),COLOR0000CC;
STICKLINE(起爆,CLOSE,OPEN,1.5,0),COLOR0000FF;
STICKLINE(起爆,CLOSE,OPEN,0.5,0),COLORCC66FF;
STICKLINE(起爆,OPEN,CLOSE,0.5,0),COLORYELLOW;
{黑马二号}
金线王1:=DMA(AMOUNT/(89*VOL),VOL/CAPITAL);
横盘:=C>REF(HHV(C,100),1);
JXW:=DMA(AMOUNT/(89*VOL),VOL/CAPITAL);
金K线1:=CROSS(C,JXW) AND 横盘;
{A1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
A2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),A1);
金线王:=EMA(A2,200)*1.118;
金线王2:=EMA(A2,200)*1.118;
条件:=(C-REF(C,1))/REF(C,1)*100>7;
金K线:=CROSS(C,金线王) AND 条件;}
黑马二号:=金K线1 AND 金K线;
DRAWTEXT(黑马二号,L*0.95,'↖黑马二号'),COLORYELLOW;
{黑马启动}
DRAWTEXT(金K线,L*0.94,'↖黑马启动'),COLORRED;
STICKLINE(金K线,CLOSE,OPEN,3,0),COLOR000099;
STICKLINE(金K线,CLOSE,OPEN,2.2,0),COLOR0000CC;
STICKLINE(金K线,CLOSE,OPEN,1.5,0),COLOR0000FF;
STICKLINE(金K线,CLOSE,OPEN,0.5,0),COLORCC66FF;
STICKLINE(金K线,OPEN,CLOSE,0.5,0),COLORYELLOW;
{涨停板K线加色}
C3:=REF(C,1);
涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;
{机构持有}
AA1:=SUM(IF(CLOSE>REF(CLOSE,1),VOL/CAPITAL*100,IF(CLOSE<REF(CLOSE,1),-
VOL/CAPITAL*100,0)),0);
成交额:=V*C/100,NODRAW;{万元}
AA2:=SUM((IF(((成交额/8>20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);
AA3:=SUM((IF(((成交额/8>20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);
AA4:=SUM((IF(((成交额/8<20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);
AA5:=SUM((IF(((成交额/8<20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);
AA6:=((AA2+AA3)+AA4)+AA5;
DD1:=1;
AAA1:=STRCAT(STRCAT('机构持有',CON2STR((100*AA2)/AA6,0)),'%');
AAA2:=STRCAT(STRCAT('散户持有',CON2STR((100*AA3)/AA6,0)),'%');
DRAWTEXT_FIX(DD1=1,0.9,0.9,0,AAA1),COLORRED;
DRAWTEXT_FIX(DD1=1,0.9,0.99,0,AAA2),COLORGREEN;
{一阳线上穿五条平均线}
MA5:=MA(C,3);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
MA55:=MA(C,55);
低:=O<MA5 AND O<MA10 AND O<MA20 AND L<MA30 AND L<MA55;
高:=C>MA5 AND C>MA10 AND H>MA20 AND H>MA30 AND H>MA55;
选股:=低 AND 高;
STICKLINE(选股,CLOSE,OPEN,3,0),COLOR000099;
STICKLINE(选股,CLOSE,OPEN,2.2,0),COLOR0000CC;
STICKLINE(选股,CLOSE,OPEN,1.5,0),COLOR0000FF;
STICKLINE(选股,CLOSE,OPEN,0.5,0),COLORCC66FF;
STICKLINE(选股,OPEN,CLOSE,0.5,0),COLORYELLOW;
DRAWTEXT(选股,L*0.94,'↖一穿五'),COLORYELLOW;
启动确认源码
SS:=12;LL:=26;MM:=200;
SSS:=9;LLL:=34;VVV:=1;
SJXZ:=IF(DATE<1981128,1,0);
DRAWTEXT_FIX(1=1,0.7,0,0,' '),COLORRED;
DIF:=EMA(CLOSE,SS)-EMA(CLOSE,LL);
DEA:=EMA(DIF,MM);
A:=(DIF-DEA)*2*SJXZ;
黄金钻信号:IF(A<0,0,A*A),LINETHICK1,COLORYELLOW;
DIF1:=EMA(CLOSE,SSS)-EMA(CLOSE,LLL);
DEA1:=EMA(DIF1,MM);
AA:=(DIF1-DEA1)*2*SJXZ;
启动引导线:IF(A<0,0,AA*AA),LINETHICK1,COLORWHITE;
MID:=MA(CLOSE,30);
红码:=MID+2*STD(CLOSE,30),LINETHICK2,COLOR0055FF;
XX:=EMA(C,5),LINETHICK2,COLORGREEN;
DRAWICON(C>红码 AND C>=O ,黄金钻信号,26);