文华指标公式--趋势柱


A1:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,25))/3;
A2:=(MA(CLOSE,13)+MA(CLOSE,34)+MA(CLOSE,55))/3;
STICKLINE(A1>A2,A1,A2,COLORRED,1);
STICKLINE(A1<A2,A1,A2,COLORGREEN,1);
DRAWLINE(CLOSE>OPEN || (CLOSE=OPEN && CLOSE>REF(CLOSE,1)),HIGH,CLOSE>OPEN || (CLOSE=OPEN && CLOSE>REF(CLOSE,1)),LOW,COLORRED);
STICKLINE(CLOSE>OPEN || (CLOSE=OPEN && CLOSE>REF(CLOSE,1)),OPEN,CLOSE,COLORRED,1);
DRAWLINE(CLOSE<OPEN || (CLOSE=OPEN && CLOSE<=REF(CLOSE,1)),HIGH,CLOSE<OPEN || (CLOSE=OPEN && CLOSE<=REF(CLOSE,1)),LOW,COLORCYAN);
STICKLINE(CLOSE<OPEN || (CLOSE=OPEN && CLOSE<=REF(CLOSE,1)),OPEN,CLOSE,COLORCYAN,0);