红1:=SMA(MAX((C+L)/2-REF(C,1),0),3,1)*50;
RS1:=SMA(MAX((C+H)/2-REF(C,1),0),3,1)*50;
RS2:=SMA(ABS(C-REF(C,1)),3,1)*50;
RS3:=SMA(MAX(C-REF(C,1),0),3,1)*50;
红A:(红1*4)-(RS2),colorred;
红B:(RS3*4)-(RS2),coloryellow;
红C:IF((RS2/4)-(RS1)>红A,(RS2/4)-(RS1),DRAWNULL),COLOR0055FF;
红D:(RS2/4)-(RS1),COLORFFFF00;