通达信辉煌之星副图公式
{辉煌之星}
INPUT: P1(5,0,100),P2(10,0,100),P3(3,0,100);
VAR0:=(BIGORDER(1,3) - BIGORDER(2,3)) * VOL/CAPITAL * 100;
VAR1:=(BIGORDER(1,2) - BIGORDER(2,2)) * VOL/CAPITAL * 100;
VAR2:=VAR1 - VAR0;
短期:MA(VAR1,P1);
中期:MA(VAR1,P2);
VAR3:=(CLOSE - REF(CLOSE,5))/REF(CLOSE,5) * 100;
VAR4:=CROSS(短期,中期) AND REF(VAR3,1) < 5 AND REF(LAST(中期 > 短期),1) > P3 AND COUNT(VAR2 > 0,10) > 2;
FILLRGN(短期,中期,短期 > 中期,RGB(255,0,0),短期 < 中期,RGB(0,0,255));
DRAWICON(VAR4,中期,6),ALIGN1;
0,DOTLINE;