Distinguing historical bars  [SOLVED]

Questions about MultiCharts and user contributed studies.
flyscalper
Posts: 14
Joined: 01 Jan 2012
Has thanked: 4 times

Distinguing historical bars

Postby flyscalper » 12 Jan 2013

Hello,

I wonder if is there any way to distinguish between "historical" versus "real time" bars from within a study or function. I have a function for logging trades in a file, but I want to do it only in real time not for the historical bars.

In another plattforms there is something like if (historical) bla bla. Is there something similar in Multicharts?

Un saludo,

Pablo

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Distinguing historical bars

Postby TJ » 12 Jan 2013

Hello,

I wonder if is there any way to distinguish between "historical" versus "real time" bars from within a study or function. I have a function for logging trades in a file, but I want to do it only in real time not for the historical bars.

In another plattforms there is something like if (historical) bla bla. Is there something similar in Multicharts?

Un saludo,

Pablo
Look up LASTBARONCHART

EasyLanguage Functions & Reserved Words Reference
https://www.multicharts.com/multicharts ... mentation/

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: Distinguing historical bars  [SOLVED]

Postby JoshM » 23 Jan 2013

I wonder if is there any way to distinguish between "historical" versus "real time" bars from within a study or function. I have a function for logging trades in a file, but I want to do it only in real time not for the historical bars.

In another plattforms there is something like if (historical) bla bla. Is there something similar in Multicharts?
What TJ said, and also see the GetAppInfo reserved word (i.e., GetAppInfo(aiRealTimeCalc)).


Return to “MultiCharts”