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?
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); }