Hi,
To detect if a particular market is live or not for this moment, what I can think of is to compare current time with its session time. But is there other better approaches?....some magic reserved word I may resort to and overlooked? thanks.
-kernel
detect if market is live or not [SOLVED]
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: detect if market is live or not [SOLVED]
`GetAppInfo(aiRealTimeCalc)` returns 1 when the script is calculated on real-time data or on playback data, and a 0 otherwise. (wiki).
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times