MA5:MA(C,5);

MA10:MA(C,10);

MA20:=MA(C,20);

MA60:MA(C,60);

多头排列:=CROSS(MA5,MA10) AND CROSS(MA10,MA20);

DRAWICON(多头排列,L,23);

波段微调:=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,VARCAT('【低点】',VAR2STR(L,2))),COLORGREEN;

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,L,38);