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: 6550
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 965 times
Been thanked: 1892 times

Re: Distinguing historical bars

Postby TJ » 12 Jan 2013

flyscalper wrote: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: 2080
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1525 times
Been thanked: 1483 times
Contact:

Re: Distinguing historical bars  [SOLVED]

Postby JoshM » 23 Jan 2013

flyscalper wrote: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)).
These users thanked the author JoshM for the post (total 2):
TJAndrew MultiCharts


Return to “MultiCharts”