{参数:
M1:5/1/10
M2:10/5/30
M3:20/10/60
}
{HSL自编}
换手率:VOL/CAPITAL*100,VOLSTICK;
MA1:MA(VOL,M1)/CAPITAL*100;
MA2:MA(VOL,M2)/CAPITAL*100;
MA3:MA(VOL,M3)/CAPITAL*100;
日交易分钟数:=if(CURRENTTIME>93000 and CURRENTTIME<150000,
if(CURRENTTIME<113000,(TIMETOT0(CURRENTTIME)-34200)/60,
if(CURRENTTIME>130000,(TIMETOT0(CURRENTTIME)-39600)/60,120)),240);
{六十分钟k线交易分钟}
时交易分钟:=if(CURRENTTIME>93000 and CURRENTTIME<150000,
if(CURRENTTIME<103000,(TIMETOT0(CURRENTTIME)-34200)/60,
if(CURRENTTIME>103000 and CURRENTTIME<113000,(TIMETOT0(CURRENTTIME)-37800)/60,
if(CURRENTTIME>130000 and CURRENTTIME<140000,(TIMETOT0(CURRENTTIME)-46800)/60,
if(CURRENTTIME>140000 and CURRENTTIME<150000,(TIMETOT0(CURRENTTIME)-50400)/60,60)))),60);
{三十分钟k线交易分钟}
半时交易分钟:=if(CURRENTTIME>93000 and CURRENTTIME<150000,
if(CURRENTTIME<100000,(TIMETOT0(CURRENTTIME)-34200)/60,
if(CURRENTTIME>100000 and CURRENTTIME<103000,(TIMETOT0(CURRENTTIME)-36000)/60,
if(CURRENTTIME>103000 and CURRENTTIME<110000,(TIMETOT0(CURRENTTIME)-37800)/60,
if(CURRENTTIME>110000 and CURRENTTIME<113000,(TIMETOT0(CURRENTTIME)-39600)/60,
if(CURRENTTIME>130000 and CURRENTTIME<133000,(TIMETOT0(CURRENTTIME)-46800)/60,
if(CURRENTTIME>133000 and CURRENTTIME<140000,(TIMETOT0(CURRENTTIME)-48600)/60,
if(CURRENTTIME>140000 and CURRENTTIME<143000,(TIMETOT0(CURRENTTIME)-50400)/60,
if(CURRENTTIME>143000 and CURRENTTIME<150000,(TIMETOT0(CURRENTTIME)-52200)/60,30)))))))),30);
TT:=if(DATATYPE=8,vol/CAPITAL*100*240/日交易分钟数,
if(DATATYPE=7,vol/CAPITAL*100*60/时交易分钟,
if(DATATYPE=6,vol/CAPITAL*100*30/半时交易分钟,0)));
预测换手率:IF(BARSTATUS=2,TT,0),LINETHICK0,COLORYELLOW;
STICKLINE(BARSTATUS=2,换手率,VOL/CAPITAL*100,7,01),COLOR00FFFF,DOTLINE,LAYER7;