龙听期货论坛's Archiver

龙听 发表于 2019-6-5 15:58

文华指标公式--趋势柱

[code]
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);
[/code]

页: [1]