Plot bar in market hour.

Posted By: hanw

Plot bar in market hour. - 05/26/21 09:56

Hi,

I'm new to Zorro and experimenting with the software.

I have the following script to plot only hourly bars of a ticker within the market hour. But the figure does not look right.(see attached). There is only one bar on Jan 1, and the start market time is 15:00, instead of 9:30. Is there an example somewhere? What did I do wrong?

Code
function run()
{
	BarPeriod = 60;
	AssetMarket = EST;
	AssetZone = EST;
	BarZone = EST;
	BarMode = BR_MARKET;
	StartDate = 20210101;
	EndDate = 20210105;
	set(LOGFILE, PLOTNOW);

	plot("MarketVol", marketVol(), BARS | NEW, BLUE);
}


Attached picture Capture.PNG
Posted By: jcl

Re: Plot bar in market hour. - 05/27/21 08:30

Jan 1 is a holiday, so there are few or no bars during that day.
© 2024 lite-C Forums