大智慧《秋高气爽》指标已破解
{秋高气爽}
{N:3,30,13;N1:1,100,20;N2:1,100,4;N3:1,100,2;M0:1,100,30;M1:1,100,5;M2:1,100,5;M3:1,100,3;}
紫彩:SMA(SMA(((CLOSE - LLV(LOW,M0))/(HHV(HIGH,M0) - LLV(LOW,M0)))*(100),M1,1),M2,1),ColorA5478A;
黄条:SMA(紫彩,M3,1),Color1892DD;
红彩看多:(3)*(紫彩) - (2)*(黄条),colorred;
STICKLINE(CROSS(红彩看多,紫彩) and (红彩看多 < 21),紫彩 - 5,紫彩 + 15,6,0),Linethick3,colorred;
STICKLINE(CROSS(紫彩,红彩看多) and (红彩看多 > 55),紫彩 - 5,紫彩 + 15,6,0),Linethick3,Color00FF00;
DRAWTEXT(CROSS(红彩看多,紫彩) and (红彩看多 < 18),紫彩 - 3,'买'),colorred;
DRAWTEXT(CROSS(紫彩,红彩看多) and (红彩看多 > 85),紫彩 + 15,'卖'),ColorFF0000;
短线买入预警:STICKLINE(CROSS(20,((SMA(MAX(CLOSE - REF(CLOSE,1),0),7,1))/(SMA(ABS(CLOSE - REF(CLOSE,1)),7,1)))*(100)),20,50,4,0),colorred;
短线买入:STICKLINE(CROSS(((SMA(MAX(CLOSE - REF(CLOSE,1),0),7,1))/(SMA(ABS(CLOSE - REF(CLOSE,1)),7,1)))*(100),20),0,50,8,0),Linethick2,Color800080;
短线卖出预警:STICKLINE(CROSS(((SMA(MAX(CLOSE - REF(CLOSE,1),0),7,1))/(SMA(ABS(CLOSE - REF(CLOSE,1)),7,1)))*(100),80),50,80,4,0),Color008000;
短线卖出:STICKLINE(CROSS(80,((SMA(MAX(CLOSE - REF(CLOSE,1),0),7,1))/(SMA(ABS(CLOSE - REF(CLOSE,1)),7,1)))*(100)),50,100,8,0),Linethick2,ColorFF00FF;
C0:=(HIGH + LOW + CLOSE)/(3);
A1:=HHV(C0,N);
A2:=LLV(C0,N);
A3:=A1 - A2;
A4:=(EMA((C0 - A2)/(A3),2))*(100);
B1:=HHV(C0,(4)*(N));
B2:=LLV(C0,(4)*(N));
B3:=B1 - B2;
B4:=(EMA((C0 - B2)/(B3),2))*(100);
C1:=HHV(C0,(16)*(N));
C2:=LLV(C0,(16)*(N));
C3:=C1 - C2;
C4:=(EMA((C0 - C2)/(C3),2))*(100);
短相对价:A4,Linethick1,ColorFF0000;
中相对价:B4,Linethick1,Color4499FF;
长相对价:C4,Linethick1,ColorFFFF00;
VAR2:=((CLOSE - LLV(LOW,N1))/(HHV(HIGH,N1) - LLV(LOW,N1)))*(100);
VAR3:=SMA(VAR2,N2,1);
VAR4:=SMA(VAR3,N3,1);
VAR5:=((VOL)/(CAPITAL))*(100);
VAR6:=REF(VAR5,1);
VAR7:=SMA(SMA(((CLOSE - LLV(LOW,9))/(HHV(HIGH,9) - LLV(LOW,9)))*(100),3,1),3,1);
WAR8:=SMA(VAR7,5,1);
DRAWICON((VAR4 < 14.5) and (VAR3 < 111),0,10),colorred;
DRAWICON((VAR6 > M3) and (VAR6 < 47),90,11),Color008000;
DRAWICON((VAR4 > 82) and (VAR3 > 89),90,11),ColorFF0000;
DRAWICON((VAR4 > 85) and (VAR3 > 95),90,12),Color000080;
DRAWICON(((WINNER(CLOSE))*(100) < 6) and CROSS(VAR7,WAR8),18,1),Color800080;
注:以上原码肯定没问题,若提示最大值最小值设置错误参数等,是因为参数未正确设置。
|