超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
超S:=-L2_AMO(0,3)/10000.0;
大S:=-L2_AMO(1,3)/10000.0;
中S:=-L2_AMO(2,3)/10000.0;
小S:=-L2_AMO(3,3)/10000.0;
净流入:=(超B+大B+中B+小B)+(超S+大S+中S+小S);
超大:=(超B)+(超S);
大单:=(大B)+(大S);
中单:=(中B)+(中S);
小单:=(小B)+(小S);
均量:=(超大+大单+中单+小单)/4;
超大能量:=(超大-均量);
大单能量:=(大单-均量);
中单能量:=(中单-均量);
小单能量:=(小单-均量);
当日意愿:(ABS(超大能量)+ABS(大单能量)+ABS(中单能量)+ABS(小单能量))*10,COLORWHITE,NODRAW;
超大意愿:超大能量,COLOR000099,NODRAW;
大单意愿:大单能量,COLORFF00FF,NODRAW;
中单意愿:中单能量,COLORCC66FF,NODRAW;
小单意愿:小单能量,COLOR008800,NODRAW;
STICKLINE(CLOSE,65,100.25,4,1),COLOR7F52AF;
STICKLINE(CLOSE,45,75,4,1),COLOR7F52AF;
STICKLINE(CLOSE,25,50,4,1),COLOR7F52AF;
STICKLINE(CLOSE,0,25,4,1),COLOR7F52AF;
STICKLINE(C 0,5,20,3,0),COLOR008800;
STICKLINE(小单能量 =0,5,20,3,0),COLOR0000AA;
STICKLINE(小单能量 0,5,20,3,0),COLOR008800;
DRAWTEXT(ISLASTBAR=1,12.5,' 小'),COLOR008800;
STICKLINE(C 0,30,45,3,0),COLOR008800;
STICKLINE(中单能量 =0,30,45,3,0),COLOR0000AA;
STICKLINE(中单能量 0,30,45,3,0),COLOR008800;
DRAWTEXT(ISLASTBAR=1,37.5,' 中'),COLORCC66FF;
STICKLINE(C 0,55,70,3,0),COLOR008800;
STICKLINE(大单能量 =0,55,70,3,0),COLOR0000AA;
STICKLINE(大单能量 0,55,70,3,0),COLOR008800;
DRAWTEXT(ISLASTBAR=1,62.5,' 大'),COLORFF00FF;
STICKLINE(C 0,80,95,3,0),COLOR008800;
STICKLINE(超大能量 =0,80,95,3,0),COLOR0000AA;
STICKLINE(超大能量 0,80,95,3,0),COLOR008800;
DRAWTEXT(ISLASTBAR=1,87.5,' 超'),COLOR0000FF;
EMA9:=EMA(C,9);
EMA13:=EMA(C,13);
EMA21:=EMA(C,21);
EMA34:=EMA(C,34);
EMA55:=EMA(C,55);
EMA120:=EMA(C,120);
A1:=EMA9 =REF(EMA9,1);
A2:=EMA9 REF(EMA9,1);
B1:=EMA13 =REF(EMA13,1);
B2:=EMA13 REF(EMA13,1);
C1:=EMA21 =REF(EMA21,1);
C2:=EMA21 REF(EMA21,1);
D1:=EMA34 =REF(EMA34,1);
D2:=EMA34 REF(EMA34,1);
E1:=EMA55 =REF(EMA55,1);
E2:=EMA55 REF(EMA55,1);
F1:=EMA120 =REF(EMA120,1);
F2:=EMA120 REF(EMA120,1);
STICKLINE(CLOSE,-5 ,-30,4,1),COLOR7F52AF;
STICKLINE(CLOSE,-30,-55,4,1),COLOR7F52AF;
STICKLINE(CLOSE,-55,-80,4,1),COLOR7F52AF;
STICKLINE(CLOSE,-80,-105,4,1),COLOR7F52AF;
STICKLINE(CLOSE,-105,-130,4,1),COLOR7F52AF;
STICKLINE(CLOSE,-130,-157.5,4,1),COLOR7F52AF;
STICKLINE(A1,-10,-25,3,0),COLOR0000FF;
STICKLINE(A2,-10,-25,3,0),COLORFF55AA;
DRAWTEXT(ISLASTBAR=1,-17.5,' 9'),COLORCYAN;
STICKLINE(B1,-35,-50,3,0),COLOR0000FF;
STICKLINE(B2,-35,-50,3,0),COLORFF55AA;
DRAWTEXT(ISLASTBAR=1,-42.5,' 13'),COLORCC66FF;
STICKLINE(C1,-60,-75,3,0),COLOR0000FF;
STICKLINE(C2,-60,-75,3,0),COLORFF55AA;
DRAWTEXT(ISLASTBAR=1,-67.5,' 21'),COLORFF00FF;
STICKLINE(D1,-85,-100,3,0),COLOR0000FF;
STICKLINE(D2,-85,-100,3,0),COLORFF55AA;
DRAWTEXT(ISLASTBAR=1,-92.5,' 34'),COLOR0000FF;
STICKLINE(E1,-110,-125,3,0),COLOR0000FF;
STICKLINE(E2,-110,-125,3,0),COLORFF55AA;
DRAWTEXT(ISLASTBAR=1,-117.5,' 55'),COLOR7F52AF;
STICKLINE(F1,-135,-150,3,0),COLOR0000FF;
STICKLINE(F2,-135,-150,3,0),COLORFF55AA;
DRAWTEXT(ISLASTBAR=1,-142.5,' 120'),COLORYELLOW;