CJL1:=IF(DYNAINFO(10)>99999999,STRCAT(CON2STR(DYNAINFO(10)/100000000,2)<10,'亿'),STRCAT(CON2STR(DYNAINFO(10)/10000,0),'万'));
CJL:=IF(DYNAINFO(10)>99999999,STRCAT(CON2STR(DYNAINFO(10)/100000000,2),'亿'),STRCAT(CON2STR(DYNAINFO(10)/10000,0),'万'));
{DRAWTEXT_FIX(01,0.01,0.01.0,0,CJL),COLOR0099FF; }
DRAWTEXT_FIX(01,0.01,0.25.0,0,CJL1),COLORYELLOW;
LC:=REF(CLOSE,1);
WRSI:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;
活跃:=(WRSI-WR10);
活跃度比:=IF(活跃>=0,(活跃+100)/2,100-ABS((活跃-100)/2))>99;
DRAWTEXT_FIX(1,0.20,0.25,1,STRCAT(STRCAT('活跃:',CON2STR(活跃度比,2)),'%')),COLORCYAN;
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA60:MA(C,60),COLORMAGENTA;
{DRAWICON(CROSS(C,MA60) AND TIME<=0935 AND L,L*99999999,1);}
{STICKLINE(CROSS(C,MA60)AND TIME<=0935,L,L*999999999,3,0),COLORGREEN;}
波段微调:=2;
显示开关:=1;
QS:=ZIG(1,波段微调);
低点:=TROUGHBARS(2,波段微调,1);
高点:=PEAKBARS(1,波段微调,1);
L低:=IF(低点=0,L,IF(高点<低点,TROUGH(2,波段微调,1),REF(TROUGH(2,波段微调,1),1)));
H高:=IF(高点=0,H,IF(低点<高点,PEAK(1,波段微调,1),REF(PEAK(1,波段微调,1),1)));
L低A:=IF(高点<低点 AND 显示开关=1 OR 显示开关=2,L低,DRAWNULL);
H高A:=IF(高点<低点 AND 显示开关=1 OR 显示开关=2,H高,DRAWNULL);
{DRAWTEXT(低点=0,L*99999999 ,VARCAT('【低点】',VAR2STR(L,2))),COLORYELLOW;}
{DRAWTEXT(高点=0,H,VARCAT('【高点】',VAR2STR(H,2))),COLORRED;}
{DRAWLINE(低点=0,L,高点=0,H,0)COLORRED,LINETHICK2;}
DRAWLINE(高点=0,H,低点=0,L,0)COLORGREEN,LINETHICK2;
VAR1:=SQRT(H高A/L低A);
VAR2:=SQRT(VAR1);
A:=H高A/SQRT(VAR1);
B:=H高A/VAR1;
D:=H高A/(VAR1+VAR2-1);
E:=POW(L低A,0.875)*POW(H高A,0.125);
I:=H高A-(H高A-L低A)*1.236,NODRAW;
U:=H高A-(H高A-L低A)*1.618,NODRAW;
{DRAWICON(高点=0,H,39);}
DRAWICON(低点=0 AND TIME<=0935,L*99999999,5);