N:=27;
{LIN :=REF(CLOSE,1);
福:=SMA(MAX(CLOSE-LIN,0),12,1)/SMA(ABS(CLOSE-LIN),12,1)*100;
飞:=MA(3*福-2*SMA(MAX(CLOSE-LIN,0),16,1)/SMA(ABS(CLOSE-LIN),16,1)*100,3);
龙:=EMA(飞,3);
STICKLINE(飞<龙,飞-15,龙-15,2,0)COLORGREEN;
STICKLINE(飞>龙,飞-15,龙-15,2,0)COLORMAGENTA;};
VAR6:=(2*C+H+L)/4;
VAR7:=LLV(L,N);
VAR8:=HHV(H,N);
攀登:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13)-50;
金山:=EMA(0.618*REF(攀登,1)+0.382*攀登,3);
STICKLINE(攀登>金山,攀登+50,金山+50,1.5,0),COLORMAGENTA,LINETHICK2;
STICKLINE(攀登<金山,金山+50,攀登+50,1.5,0),COLORGREEN,LINETHICK2;
VAR11:=HHV(HIGH,9)-LLV(LOW,9);
VAR12:=HHV(HIGH,9)-C;
VAR13:=C-LLV(LOW,9);
VAR14:=VAR12/VAR11*100-70;
VAR15:=(C-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR16:=(2*C+H+L)/4;
VAR17:=SMA(VAR13/VAR11*100,3,1);
VAR18:=LLV(LOW,34);
VAR19:=SMA(VAR17 ,3 ,1 )-SMA(VAR14 ,9 ,1);
VAR110:=IF(VAR19>100 ,VAR19-100 ,0 );
VAR111:=HHV(HIGH,34);
VAR112:=EMA((VAR16- VAR18)/(VAR111-VAR18)*100,13 );
VAR113:=EMA(0.667*REF(VAR112 ,1) +0.333*VAR112,2 );
STICKLINE(VAR112-VAR113 >0,VAR112 ,VAR113 ,2,0 ),COLORRED;
STICKLINE(VAR112-VAR113 <0,VAR112 ,VAR113 ,2 ,0),COLORAAFF00;