detect if market is live or not  [SOLVED]

Questions about MultiCharts and user contributed studies.
kernel
Posts: 91
Joined: 19 Feb 2013
Has thanked: 21 times
Been thanked: 4 times

detect if market is live or not

Postby kernel » 12 Jan 2016

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

User avatar
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]

Postby JoshM » 13 Jan 2016

`GetAppInfo(aiRealTimeCalc)` returns 1 when the script is calculated on real-time data or on playback data, and a 0 otherwise. (wiki).

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: detect if market is live or not

Postby Henry MultiСharts » 13 Jan 2016

Hello kernel,

You may also find useful "No realtime data alert":
viewtopic.php?f=16&t=11715

kernel
Posts: 91
Joined: 19 Feb 2013
Has thanked: 21 times
Been thanked: 4 times

Re: detect if market is live or not

Postby kernel » 14 Jan 2016

Josh and Henry,

Thank you guys for your replies. They both are very helpful.

-kernel


Return to “MultiCharts”