C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 成交量:VOL,VOLSTICK;
-
- 日交易分钟数:=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*240/日交易分钟数,
- if(DATATYPE=7,vol*60/时交易分钟,
- if(DATATYPE=6,vol*30/半时交易分钟,0)));
-
- 预测成交量:IF(BARSTATUS=2,TT,0),LINETHICK0,COLORYELLOW;
- STICKLINE(BARSTATUS=2,预测成交量,VOL,7,01),COLOR00FFFF,DOTLINE,LAYER7;