同花顺大周期黄金均线公式
源码
MA$1:MA(CLOSE, N1);
MA$2:MA(CLOSE, N2);
MA$3:MA(CLOSE, N3);
MA$4:MA(CLOSE, N4);
MA$5:MA(CLOSE, N5);
MA$6:MA(CLOSE, N6);
MA$7:MA(CLOSE, N7);
MA$8:MA(CLOSE, N8);
MA$9:MA(CLOSE, N9);
中轴:EMA(CLOSE,1200),colorred;
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
前高:REF(C,BARSLAST(HD)),colorred,POINTDOT;
STICKLINE(C,前高,前高,8,0),colorred;
{高点:=(C/REF(C,BARSLAST(HD))-1)*100,NODRAW;
STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),colorblue;}