飛狐股票公式之山水先生魚身戰(zhàn)法
DRAWGBK(1,colorrgb(0,0,100),colorrgb(0,0,0),1);
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),10,1)/SMA(ABS(CLOSE-LC),10,1)*100;
山水1:=ema(rsi1,2);
山水2:=ema(rsi2,2);
山水3:(山水1-山水2),COLOR00ff00,LINETHICK2;
partline(山水3>ref(山水3,1),山水3),Linethick2,colorff00ff;
山水4:-山水3,COLOR00ff00,LINETHICK2;
PARTLINE(山水3>0,山水4),COLORyellow,LINETHICK2;
PARTLINE(山水3>0,山水3),COLORyellow,LINETHICK2;
FILLRGN(山水3>0,山水3,山水4),COLOR005700;
FILLRGN(山水3>0,山水4,山水3),COLOR211B7A;
(南方財富網SOUTHMONEY.COM)