N1:=50;
N2:=50;
N3:=50;
N4:=50;
大单买入:IF(CURRBARSCOUNT=1,V*N1/100,DRAWNULL),COLORRED;
大单卖出:IF(CURRBARSCOUNT=1,V*N2/100,DRAWNULL),COLORGREEN;
小单买:IF(CURRBARSCOUNT=1,V*N3/100,DRAWNULL),COLORMAGENTA;
小单卖:IF(CURRBARSCOUNT=1,V*N4/100,DRAWNULL),COLORCYAN;
大单买入1:IF(CURRBARSCOUNT=2,V*19/100,DRAWNULL);
大单卖出1:IF(CURRBARSCOUNT=2,V*8/100,DRAWNULL);
小单买1:IF(CURRBARSCOUNT=2,V*31/100,DRAWNULL);
小单卖1:IF(CURRBARSCOUNT=2,V*40/100,DRAWNULL);
大单买入2:IF(CURRBARSCOUNT=3,V*8/100,DRAWNULL);
大单卖出2:IF(CURRBARSCOUNT=3,V*6/100,DRAWNULL);
小单买2:IF(CURRBARSCOUNT=3,V*40/100,DRAWNULL);
小单卖2:IF(CURRBARSCOUNT=3,V*46/100,DRAWNULL);
STICKLINE(1,大单买入,1000,3,0),COLORRED;
STICKLINE(1,大单卖出,1000,2.2,1),COLORGREEN;
STICKLINE(1,小单买,大单买入,3,1),COLORMAGENTA;
STICKLINE(1,小单卖,大单买入,2.2,1),COLORCYAN;
STICKLINE(CURRBARSCOUNT=2,大单买入1,1000,3,0),COLORRED;
STICKLINE(CURRBARSCOUNT=2,大单卖出1,1000,2.2,1),COLORGREEN;
STICKLINE(CURRBARSCOUNT=2,小单买1,大单买入1,3,1),COLORMAGENTA;
STICKLINE(CURRBARSCOUNT=2,小单卖1,大单买入1,2.2,1),COLORCYAN;
STICKLINE(CURRBARSCOUNT=3,大单买入2,1000,3,0),COLORRED;
STICKLINE(CURRBARSCOUNT=3,大单卖出2,1000,2.2,1),COLORGREEN;
STICKLINE(CURRBARSCOUNT=3,小单买2,大单买入2,3,1),COLORMAGENTA;
STICKLINE(CURRBARSCOUNT=3,小单卖2,大单买入2,2.2,1),COLORCYAN;
{}
{6/16=18,17,29,34;
6/15=19,8,31,40;
6/14=8,6,40,46};