AAA:=(3*C+H+L+O)/6;
VAR1X:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36,LINETHICK2,COLORRED;
VAR2X:=(HHV(VAR1X,2)+HHV(VAR1X,4)+HHV(VAR1X,8))/3;
BB:=(HHV(VAR2X,2)+HHV(VAR2X,4)+HHV(5,8))/3,COLORYELLOW,LINETHICK4;
VAR6X:=(LLV(VAR1X,2)+LLV(VAR1X,4)+LLV(VAR1X,8))/3;
CCC:= MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20);
买入:IF(REF(VAR6X,1)=REF(VAR1X,1) AND VAR6X<VAR1X AND CCC,8,0),COLORRED,LINETHICK2;
DRAWTEXT(REF(VAR6X,1)=REF(VAR1X,1) AND CCC AND VAR6X<VAR1X,7,'↖买入'),COLORRED; |