VAR1:=SUM((HHV(AMOUNT,5)*7+HHV(AMOUNT,10)*3)/10,IF(PEAKBARS(1,16,1)>REF(PEAKBARS(1,16,1),1),PEAKBARS(1,16,1),REF(PEAKBARS(1,16,1),1)>REF(PEAKBARS(1,16,1),3)));
VAR2:=SUM((HHV(vol,5)*7+HHV(VOL,10)*3)/10,IF(PEAKBARS(1,16,1)>REF(PEAKBARS(1,16,1),1),PEAKBARS(1,16,1),REF(PEAKBARS(1,16,1),1)>REF(PEAKBARS(1,16,1),3)));
杭州下流区:VAR1/VAR2/96,POINTDOT,colorFFFF00;
妓院:VAR1/VAR2/97.5,POINTDOT,LINETHICK5,colorFF0000;
见衩院:VAR1/VAR2/96.5,POINTDOT,colorFFFF;
VAR3:=SUM((LLV(AMOUNT,5)*7+LLV(AMOUNT,10)*3)/10,IF(TROUGHBARS(1,16,1)>REF(TROUGHBARS(1,16,1),1),TROUGHBARS(1,16,1),REF(TROUGHBARS(1,16,1),3)));
VAR4:=SUM((LLV(VOL,5)*7+LLV(VOL,10)*3)/10,IF(TROUGHBARS(1,16,1)>REF(TROUGHBARS(1,16,1),1),TROUGHBARS(1,16,1),REF(TROUGHBARS(1,16,1),3)));
狗安局:VAR3/VAR4/105.5,POINTDOT,LINETHICK5,color808080;
屎桥派出所:VAR3/VAR4/106.5,POINTDOT,colorFF00;
黑窝:VAR3/VAR4/107,POINTDOT,colorFFFFFF;
VAR5:=FORCAST((HHV(HIGH,SUMBARS(VOL,CAPITAL/20))+LLV(LOW,SUMBARS(VOL,CAPITAL/20)))/2,2);
STICKLINE(CLOSE>COST(0) AND CLOSE<COST(1),CLOSE,OPEN,8,1);
STICKLINE(CLOSE>COST(1) AND CLOSE<COST(5),CLOSE,OPEN,8,0);
STICKLINE(CLOSE>COST(5) AND CLOSE<COST(10),CLOSE,OPEN,8,0);
STICKLINE(CLOSE>COST(10) AND CLOSE<COST(20),CLOSE,OPEN,8,0);
STICKLINE(CLOSE>COST(20) AND CLOSE<COST(30),CLOSE,OPEN,8,0);
STICKLINE(CLOSE>COST(30) AND CLOSE<COST(45),CLOSE,OPEN,8,0);
STICKLINE(CLOSE>COST(45) AND CLOSE<COST(60),CLOSE,OPEN,8,0);
STICKLINE(CLOSE>COST(60) AND CLOSE<COST(75),CLOSE,OPEN,8,0);
STICKLINE(CLOSE>COST(75) AND CLOSE<COST(90),CLOSE,OPEN,8,0);
STICKLINE(CLOSE>COST(90) AND CLOSE<COST(99),CLOSE,OPEN,8,0);
STICKLINE(CLOSE>COST(99) AND CLOSE<COST(100),CLOSE,OPEN,8,1);
JJ:=(CLOSE+HIGH+LOW)/3;
A:=EMA(JJ,10);
B:=REF(A,1);
DRAWICON(A>B,CLOSE,11),ALIGN5;
DRAWICON(A<B,CLOSE,10),ALIGN5;