龙听期货论坛's Archiver

C
+
+


 微信: QQ:

龙听 发表于 2018-4-27 13:54

《PP》模型[文华赢智源码]

源码如下:[code]
TB:=IF(HIGH>REF(CLOSE,1),HIGH-REF(CLOSE,1)+CLOSE-LOW,CLOSE-LOW);
TS:=IF(REF(CLOSE,1)>LOW,REF(CLOSE,1)-LOW+HIGH-CLOSE,HIGH-CLOSE);
VOL1:=(TB-TS)*VOL/(TB+TS)/10000;
VOL0:=DMA(VOL1,0.07);
VOL2:=DMA(VOL1,0.01);
SHORT:=VOL0-VOL2,COLORSTICK;
MA1:=MA(SHORT,N);
CROSS(SHORT,MA1),BPK;
CROSS(MA1,SHORT),SPK;
[/code]

页: [1]