以下是红绿联盟1号源码附图(无源码的请下载附件导入)
文华指标
TB:=IFELSE(HIGH>REF(CLOSE,1),HIGH-REF(CLOSE,1)+CLOSE-LOW,CLOSE-LOW);
TS:=IFELSE(REF(CLOSE,1)>LOW,REF(CLOSE,1)-LOW+HIGH-CLOSE,HIGH-CLOSE);
VOL1:=(TB-TS)*VOL/(TB+TS)/10000;
VOL2:=DMA(VOL1,0.1);
VOL3:=DMA(VOL1,0.05);
RES1:=VOL2-VOL3;
LON:=SUM(RES1,0);
MA1:=MA(LON,10);
STICKLINE(MA1<REF(MA1,1),MA1,MA1*0.9,COLORGREEN,0);
STICKLINE(MA1>REF(MA1,1),MA1,MA1*0.9,COLORRED,0);
11611309.jpg
|