Counting problem

@Chupacabra,
And why don’t you say so in your first post then but rather leave much room for guessing?
Have you read here How to use this site ?

/// @link http://forum.amibroker.com/t/counting-problem/2500/5
SetBarsRequired( 10000, 10000 );

iloscBar = Param("iloscBar",14,1,100); 

dn = DateNum(); 
newDay = dn != Ref( dn, -1 ); 

spV = SparseCompress( newday, V );
	spsum = Sum( spV, iloscBar );
csum = SparseExpand( newday, spsum );

Plot( Valuewhen( newday, csum ), "Sum(Volume) at Starts of Day", colorGreen, styleHistogram, Null, Null, 0, 0, -60 );
3 Likes