Setting BarZone to Indian Standard Time(IST; +530)

Posted By: monarch

Setting BarZone to Indian Standard Time(IST; +530) - 01/27/22 14:29

Hello -
Just setting up my Zorro. I'd like to set BarZone to Indian Standard Time(IST; +530). From the code and header files available on Zorro folder, it looks like BarZone is an integer variable. Is there a workaround available to achieve this?
Thanks
Posted By: Spirit

Re: Setting BarZone to Indian Standard Time(IST; +530) - 01/28/22 14:09

If India has no daylight saving I would use no bar zone at all, but add 330 minutes on the returns of time/date functions.
Posted By: monarch

Re: Setting BarZone to Indian Standard Time(IST; +530) - 02/01/22 17:09

Hi Spirit - India doesn't have day light savings time. I tried setting the BarOffset to 330, but there is a restriction that the BarOffset needs to be less than the BarZone. Which means I cannot test anything under 51/2 hours. I think I'll ask the support team as I'm still under support period.

Thanks for the information though.
Posted By: Zheka

Re: Setting BarZone to Indian Standard Time(IST; +530) - 02/01/22 18:55

BarOffset needs to be less than the BarPeriod, not BarZone.

Try BarZone=5; BarOffset=30; + experiment w AssetMarketZone/AssetMarketStart/End
© 2024 lite-C Forums