通达信简单实用的通达信主图公式
{三线开花原码}
线A1:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,25))/3;
线A2:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,20)+MA(CLOSE,30)+MA(CLOSE,60)+MA(CLOSE,120))/6;
线A3:=(MA(CLOSE,20)+MA(CLOSE,60)+MA(CLOSE,120))/3;
线A4:=(MA(CLOSE,13)+MA(CLOSE,34)+MA(CLOSE,55))/3;
DRAWICON(CROSS(线A1,线A4),线A1,1);
线1:IF(线A1<线A3,线A1,线A1),COLOR00FF00;
IF(线A1<线A3,线A1,线A1),COLORRED;
IF(线1>REF(线1,1),线1,DRAWNULL),COLORRED,LINETHICK1;
IF(线1<REF(线1,1),线1,DRAWNULL),COLOR00FF00,LINETHICK1;
线2:IF(线A2<线A3,线A2,线A2),COLOR00FF00;
IF(线A2<线A3,线A2,线A2),COLORRED;
IF(线2>REF(线2,1),线2,DRAWNULL),COLORRED,LINETHICK2;
IF(线2<REF(线2,1),线2,DRAWNULL),COLOR00FF00,LINETHICK1;
线3:IF(线A3<线A1,线A3,线A3),COLOR00FF00,LINETHICK1;
IF(线A1<线A3,线A3,线A3),COLORRED,LINETHICK2;
IF(线3>REF(线3,1),线3,DRAWNULL),COLORRED,LINETHICK3;
IF(线3<REF(线3,1),线3,DRAWNULL),COLOR00FF00,LINETHICK2;
823400287.jpg
|