这主图公式是我七拼八凑起来的,觉得也蛮好看的,分享给大家玩玩
{不喜欢使用墙纸的,就把主图源码的最后一行删掉就可以;
喜欢这个背景的,就把贴图图片文件名'8888.bmp'用bmp格式存在这里:
安装盘符:\大智慧\USERDATA\BMP,也可以用同样方式自定义背景。}
M1:=3;
M2:=19;
JJ:=(CLOSE+HIGH+LOW)/3;
A:=EMA(JJ,10);
B:=REF(A,1);
STICKLINE(A>B ,A ,B ,10 ,0 ),COLOR0000FF;
STICKLINE(A<B ,B ,A ,10 ,0 ),COLOR00FF00;
VARA:=100-((90)*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21));
VARB:=100-((90)*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21));
VARC:=100-MA(((100)*(HHV(HIGH,6)-CLOSE))/(HHV(HIGH,6)-LLV(LOW,6)),34);
MA60:MA(CLOSE,60);
PARTLINE(MA60,(MA60>REF(MA60,1))-1,rgb(0,255,0),1,rgb(255,0,0) ),LINETHICK1,LAYER1;
VAR3aa:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4aa:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3aa>0),91,0);
DRAWTEXT(FILTER((VAR4aa>90),45),(LOW)*(0.94999998),'大胆搏 '),Color00FFFF,ALIGN2;
DRAWTEXT(FILTER((VAR4aa>90),35),(LOW)*(0.99000001),'★'),ALIGN2,Color00FFFF;
买线:=EMA(CLOSE,2);
卖线:=EMA((SLOPE(CLOSE,21))*(20)+CLOSE,42);
STICKLINE((买线>=卖线),LOW,HIGH,1,0),COLOR0000AA;
STICKLINE((买线>=卖线),CLOSE,OPEN,8.8,0),COLOR0000AA;
STICKLINE((买线<卖线),CLOSE,OPEN,8.8,0),COLORAAAA00;
STICKLINE((买线<卖线),LOW,HIGH,1,0),COLORAAAA00;
短期底部:=(LLV(HIGH,30))*(0.93);
长期底部:=LLV(HIGH,30);
上:=(SMA(LOW,5,2))*(0.96);
选底:=FILTER((LOW<=上) AND (HIGH>=短期底部) AND (CLOSE>=长期底部) AND ((CLOSE)/(OPEN)>1.03),3);
DRAWTEXT(IF(选底,100,0),(LOW)*(0.95),'底'),COLORFF00FF;
STICKLINE(IF(选底,100,0),LOW,HIGH,1,0),COLORF000FF;
STICKLINE(IF(选底,100,0),CLOSE,OPEN,8.8,0),COLORFF00FF;
{DRAWGBK(C>0 ,'8888');}