| | | | 以下是通达信鱼身战法副图指标
通达信鱼身战法副图指标
源码
{山水先生鱼身战法通达信}
子1:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;
子2:=SMA(MAX(C-REF(C,1),0),10,1)/SMA(ABS(C-REF(C,1)),10,1)*100;
山水1:=EMA(子1,2);
山水2:=EMA(子2,2);
山水3:(山水1-山水2),COLOR00FF00,LINETHICK2;
IF1:IF(山水3>REF(山水3,1),山水3,DRAWNULL),COLORFF00FF,LINETHICK2;
山水4:-山水3,COLOR00FF00,LINETHICK2;
IF2:IF(山水3>0,山水4,DRAWNULL),COLORYELLOW,LINETHICK4;
IF3:IF(山水3>0,山水3,DRAWNULL),COLORYELLOW,LINETHICK4;
IF4:DRAWBAND(IF3,RGB(141,22,47),IF2,RGB(0,0,0));
| | | | |
|