{乘风自用换手VOL}
DRAWGBK(CLOSE=CLOSE,COLORRGB(30,30,60),COLORRGB(30,30,60),1);
预测额:=IF(DATE<>CURRENTDATE OR OPENMINUTES(CURRENTTIME)=1,AMOUNT,(AMOUNT/OPENMINUTES(CURRENTTIME))*240), LINETHICK;
n:=20;
SAT:=IF((预测额/CLOSE)/(HHV(预测额,N)/HHV(CLOSE,N))*100>100,100,(预测额/CLOSE)/(HHV(预测额,N)/HHV(CLOSE,N))*100);
预测量:=IF(DATE<>CURRENTDATE OR OPENMINUTES(CURRENTTIME)=1,VOL,(VOL/OPENMINUTES(CURRENTTIME))*240), LINETHICK;
量:=VOL;
V0001:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买:IF(CLOSE>OPEN,V0001*(HIGH-LOW),IF(CLOSE<OPEN,V0001*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),Color6d0076,POINTDOT,LINETHICK0,PRECISION0;
主卖:IF(CLOSE>OPEN,0-V0001*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-V0001*(HIGH-LOW),0-VOL/2)),ColorFFD1BE,POINTDOT,LINETHICK0,PRECISION0;
净买:主买+主卖,COLORMAGENTA,LINETHICK0,PRECISION0;
换手率:=VOL/CAPITAL*100;
hs:=换手率;
量比:IF(BARPOS=DATACOUNT,DYNAINFO(17),VOL/REF(MA(VOL,5),1)),LINETHICK0,COLORYELLOW,PRECISION2;
A:=MA(换手率,2);
X:=LLV(A,20),linethick;
X1:=(A-LLV(A,20))=0;
换手最小:=IF(ALL (A>0,5) AND FILTERX(X1,5),X1,0),COLORRED;
小天:BARSLAST(换手最小),LINETHICK,color008888;
X2:=HHV(A,20);
X3:=(A-X2)=0;
换手最大:=IF(ALL(REF(A,1)<X2,5) AND FILTERX(X3,5),1,0),COLORGREEN;
STICKLINE(CLOSE<=REF(CLOSE,1) , VOL,0,8.5,0), Color808040;
STICKLINE(CLOSE>REF(CLOSE,1), VOL,0,8.5,1) {ColorFF4D80}ColorFF87FF,LINETHICK2;
STICKLINE(净买>0,0,主买,5,0),color102088;
STICKLINE(净买>0,0,主买,4,0),color1020aa;
STICKLINE(净买>0,0,主买,3,0),color1020bb;
STICKLINE(净买>0,0,主买,2,0),color1020bb;
STICKLINE(净买>0,0,主买,1,0),color1020dd;
STICKLINE(净买>0,0,主买,0.5,0),color1020ee;
STICKLINE(净买<=0,0,主买,5,0),color102088;
STICKLINE(净买<=0,0,主买,4,0),color1020aa;
STICKLINE(净买<=0,0,主买,3,0),color1020bb;
STICKLINE(净买<=0,0,主买,2,0),color1020cc;
STICKLINE(净买<=0,0,主买,1,0),color1020dd;
STICKLINE(净买<=0,0,主买,0.5,0),color1020ee;
STICKLINE(净买>0,v,主买,5,0),COLORFF7700;
STICKLINE(净买>0,v,主买,4,0),COLORFF8811;
STICKLINE(净买>0,v,主买,3,0),COLORFFAA22;
STICKLINE(净买>0,v,主买,2,0),COLORFFBB33;
STICKLINE(净买>0,v,主买,1,0),COLORFFDD44;
STICKLINE(净买>0,v,主买,0.5,0),COLORFFFF55;
STICKLINE(净买<=0,v,主买,5,0),COLORFF7700;
STICKLINE(净买<=0,v,主买,4,0),COLORFF8811;
STICKLINE(净买<=0,v,主买,3,0),COLORFFAA22;
STICKLINE(净买<=0,v,主买,2,0),COLORFFBB33;
STICKLINE(净买<=0,v,主买,1,0),COLORFFDD44;
STICKLINE(净买<=0,v,主买,0.5,0),COLORFFFF55;
STICKLINE(c,量比*15000,0,2,0),COLORYELLOW;
{线形}
h13:=HHV(MA(VOL,13),13),COLORGREEN;
l13:=LLV(MA(VOL,5),13),COLORBROWN,LINETHICK2;
PARTLINE(CLOSE,l13),COLORBROWN,LINETHICK2;
PARTLINE(CLOSE,h13),COLORGREEN;
mv5:MA(VOL,5),color8888FF,PRECISION0;
mv13:MA(VOL,13),COLORMAGENTA,PRECISION0;
mv34:MA(VOL,34),LINEDOT,COLORWHITE,PRECISION0;
{信号和文字提示}
PARTLINE(MA(SUM(主买,34),10)<SUM(主买,34),-300),COLORMAGENTA,LINETHICK2;
PARTLINE(MA(SUM(主买,34),10)>=SUM(主买,34) ,-300),COLORBLUE,LINETHICK2;
DRAWICON(MA(SUM(主买,34),10)>REF(MA(SUM(主买,34),10),1),-300,12);
DRAWICON(MA(SUM(主买,34),10)<=REF(MA(SUM(主买,34),10),1),-300,11);
天量:=VOL=HHV(VOL,0);
VERTLINE(天量),LINEDOT,COLORYELLOW;
DRAWTEXT(REF(COUNT(VOL>l13,8)=8,1) and VOL<l13,VOL,'量\n缩'),COLORWHITE,ALIGN;
DRAWTEXT(REF(COUNT(VOL<mv34,8)=8,1) and VOL>mv34,VOL,'量\n突'),COLORWHITE,ALIGN;
F:=100*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
今小昨:=IF(CLOSE<REF(OPEN,1) AND F<0,1,0);
Sa1:=今小昨;
今小前:=IF(CLOSE<REF(OPEN,2) AND F<0,1,0),LINETHICK0;
Sa2:=今小前;
STICKLINE(Sa1=0 AND REF(Sa1,1)=1 AND Sa2=0 AND REF(Sa2,1)=1 AND CROSS(ZIG(3,3),REF(ZIG(3,3),1)),VOL*2,0,0.1,0),LINEDOT,colorFF00FF;//此信号是未来函数
{二十四节气}
立春:=FILTER(MONTH=2 AND (DAY=3 OR DAY=5 ),2);
雨水:=FILTER(MONTH=2 AND (DAY=18 OR DAY=20),2);
惊蛰:=FILTER(MONTH=3 AND (DAY=5 OR DAY=7 ),2);
春分:=FILTER(MONTH=3 AND (DAY=20 OR DAY=22),2);
清明:=FILTER(MONTH=4 AND (DAY=4 OR DAY=6 ),2);
谷雨:=FILTER(MONTH=4 AND (DAY=19 OR DAY=21),2);
立夏:=FILTER(MONTH=5 AND (DAY=6 OR DAY=8 ),2);
小满:=FILTER(MONTH=5 AND (DAY=20 OR DAY=22),2);
芒种:=FILTER(MONTH=6 AND (DAY=5 OR DAY=7 ),2);
夏至:=FILTER(MONTH=6 AND (DAY=20 OR DAY=22),2);
小暑:=FILTER(MONTH=7 AND (DAY=6 OR DAY=8 ),2);
大署:=FILTER(MONTH=7 AND (DAY=22 OR DAY=24),2);
立秋:=FILTER(MONTH=8 AND (DAY=7 OR DAY=9 ),2);
处暑:=FILTER(MONTH=8 AND (DAY=22 OR DAY=24),2);
白露:=FILTER(MONTH=9 AND (DAY=7 OR DAY=9 ),2);
秋分:=FILTER(MONTH=9 AND (DAY=22 OR DAY=24),2);
寒露:=FILTER(MONTH=10 AND (DAY=7 OR DAY=9 ),2);
霜降:=FILTER(MONTH=10 AND (DAY=22 OR DAY=24),2);
立冬:=FILTER(MONTH=11 AND (DAY=7 OR DAY=9 ),2);
小雪:=FILTER(MONTH=11 AND (DAY=22 OR DAY=24),2);
大雪:=FILTER(MONTH=12 AND (DAY=6 OR DAY=8 ),2);
冬至:=FILTER(MONTH=12 AND (DAY=21 OR DAY=23),2);
小寒:=FILTER(MONTH=1 AND (DAY=5 OR DAY=7 ),2);
大寒:=FILTER(MONTH=1 AND (DAY=19 OR DAY=21),2);
DRAWTEXT(立春,100,'立春'),COLORgreen,ALIGN;
DRAWTEXT(雨水,100,'雨水'),COLORgreen,ALIGN;
DRAWTEXT(惊蛰,100,'惊蛰'),COLORgreen,ALIGN;
DRAWTEXT(春分,100,'春分'),COLORgreen,ALIGN;
DRAWTEXT(清明,100,'清明'),COLORgreen,ALIGN;
DRAWTEXT(谷雨,100,'谷雨'),COLORgreen,ALIGN;
DRAWTEXT(立夏,100,'立夏'),COLORMAGENTA,ALIGN;
DRAWTEXT(小满,100,'小满'),COLORMAGENTA,ALIGN;
DRAWTEXT(芒种,100,'芒种'),COLORMAGENTA,ALIGN;
DRAWTEXT(夏至,100,'夏至'),COLORMAGENTA,ALIGN;
DRAWTEXT(小暑,100,'小暑'),COLORMAGENTA,ALIGN;
DRAWTEXT(大署,100,'大署'),COLORMAGENTA,ALIGN;
DRAWTEXT(立秋,100,'立秋'),COLORYELLOW,ALIGN;
DRAWTEXT(处暑,100,'处暑'),COLORYELLOW,ALIGN;
DRAWTEXT(白露,100,'白露'),COLORYELLOW,ALIGN;
DRAWTEXT(秋分,100,'秋分'),COLORYELLOW,ALIGN;
DRAWTEXT(寒露,100,'寒露'),COLORYELLOW,ALIGN;
DRAWTEXT(霜降,100,'霜降'),COLORYELLOW,ALIGN;
DRAWTEXT(立冬,100,'立冬'),COLORWHITE,ALIGN;
DRAWTEXT(小雪,100,'小雪'),COLORWHITE,ALIGN;
DRAWTEXT(大雪,100,'大雪'),COLORWHITE,ALIGN;
DRAWTEXT(冬至,100,'冬至'),COLORWHITE,ALIGN;
DRAWTEXT(小寒,100,'小寒'),COLORWHITE,ALIGN;
DRAWTEXT(大寒,100,'大寒'),COLORWHITE,ALIGN;