Hello
Is there a way to know what is the BarNumber of the first bar displayed (visible) on the screen?
I want to evenly space info on an horizontal line across my chart. I can't use a date/time reference because it won't be applicable to a tick charts
Martin
How to get the barnumber of the first displayed bar on the screen [SOLVED]
- TJ
- Posts: 7740
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2221 times
Re: How to get the barnumber of the first displayed bar on the screen
Hello
Is there a way to know what is the BarNumber of the first bar displayed (visible) on the screen?
I want to evenly space info on an horizontal line across my chart. I can't use a date/time reference because it won't be applicable to a tick charts
Martin
What do you mean by "evenly space info on an horizontal line across my chart."?
Re: How to get the barnumber of the first displayed bar on the screen
Hello arjfca,
please vote for this feature request.
https://www.multicharts.com/pm/public/m ... es/MC-2218
In my opinion the possibility to draw boxes at fixed pixels is far more easier than using barnumber or datetime !!!
In next release of Multicharts it would be nice to have x and y pixels coordinates to draw in every chart.
I invite every user that draws text boxes in his signals to vote for this feature request.
Best regards.
Massimo
please vote for this feature request.
https://www.multicharts.com/pm/public/m ... es/MC-2218
In my opinion the possibility to draw boxes at fixed pixels is far more easier than using barnumber or datetime !!!
In next release of Multicharts it would be nice to have x and y pixels coordinates to draw in every chart.
I invite every user that draws text boxes in his signals to vote for this feature request.
Best regards.
Massimo
- TJ
- Posts: 7740
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2221 times
Re: How to get the barnumber of the first displayed bar on the screen [SOLVED]
Please create a Project Management request to addHello
Is there a way to know what is the BarNumber of the first bar displayed (visible) on the screen?
I want to evenly space info on an horizontal line across my chart. I can't use a date/time reference because it won't be applicable to a tick charts
Martin
aiLeftDispBarNumber
to the GetAppInfo keyword
https://www.multicharts.com/trading-sof ... GetAppInfo
Re: How to get the barnumber of the first displayed bar on the screen
DonePlease create a Project Management request to addHello
Is there a way to know what is the BarNumber of the first bar displayed (visible) on the screen?
I want to evenly space info on an horizontal line across my chart. I can't use a date/time reference because it won't be applicable to a tick charts
Martin
aiLeftDispBarNumber
to the GetAppInfo keyword
https://www.multicharts.com/trading-sof ... GetAppInfo
https://www.multicharts.com/pm/public/m ... es/MC-2220
Martin
- ABC
- Posts: 718
- Joined: 16 Dec 2006
- Location: www.abctradinggroup.com
- Has thanked: 125 times
- Been thanked: 408 times
- Contact:
Re: How to get the barnumber of the first displayed bar on the screen
Hi Martin,
you could get the bar number with a workaround. Draw a text at aiLeftDispDateTime and ask for its bar number.
Regards,
ABC
you could get the bar number with a workaround. Draw a text at aiLeftDispDateTime and ask for its bar number.
Code: Select all
txtID = Text_New_DT( getappinfo( aiLeftDispDateTime ), 0, "" ) ;
Print( DateTimeToString( getappinfo( aiLeftDispDateTime ) ), "; Bar Number = ", text_getbarnumber( txtID ), "; CurrentBar = ", CurrentBar ) ;
ABC