标题:
【Block Trades per Bar】
[打印本页]
作者:
龙听
时间:
2022-11-3 10:56
标题:
【Block Trades per Bar】
inputs:
BlockSize( 5000 ),
DataNum( 1 ) ;
variables:
intrabarpersist var0( 0 ),
intrabarpersist var1( 0 ) ;
condition1 = LastBarOnChart and BarStatus( DataNum ) <> 2 ;
if condition1 then
begin
if var1 <> CurrentBar then
begin
var0 = 0 ;
var1 = CurrentBar ;
end ;
if TradeVolume >= BlockSize then
var0 = var0 + 1 ;
Plot1( var0, "BlockTrds" ) ;
end ;
复制代码
欢迎光临 龙听期货论坛 (http://qhlt.club/)
Powered by Discuz! 7.2