GetAppInfo in correct parameter  [SOLVED]

Questions about MultiCharts and user contributed studies.
Pipscalper
Posts: 84
Joined: 28 Jul 2006
Been thanked: 3 times

GetAppInfo in correct parameter

Postby Pipscalper » 29 Oct 2019

The aiLeftDispDateTime does not refer to the most left bar displayed on CHART but refers to the first bar loaded in the Datarange

User avatar
Svetlana MultiCharts
Posts: 645
Joined: 19 Oct 2017
Has thanked: 3 times
Been thanked: 163 times

Re: GetAppInfo in correct parameter

Postby Svetlana MultiCharts » 30 Oct 2019

Hello, Pipscalper,

According to the Help page, aiLeftDispDateTime returns the DateTime value of the leftmost bar displayed on a chart. The integer portion of the DateTime value specifies the number of days since January 1st, 1900, and the fractional portion of the DateTime value specifies the fraction of the day since midnight.
Last edited by Svetlana MultiCharts on 31 Oct 2019, edited 1 time in total.

User avatar
ABC
Posts: 718
Joined: 16 Dec 2006
Location: www.abctradinggroup.com
Has thanked: 125 times
Been thanked: 408 times
Contact:

Re: GetAppInfo in correct parameter  [SOLVED]

Postby ABC » 30 Oct 2019

Pipscalper,

the code below returns the first bar on the visible portion of the chart for me and not the first bar of the data series in MC 12.0 Release (Build 18184).

Code: Select all

Print( DateTimeToString( GetAppInfo( aiLeftDispDateTime ) ) ) ;
The value changes when I scroll the chart and have a different bar as the left most, too (the code needs to be computed of course to see the change).

Regards,

ABC


Return to “MultiCharts”