I am measuring 2 text objects and would like to do something if they get too close to each other on the chart.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Convert text size to ticksize
Collapse
X
-
Font has a GetHeight property. also have a peep at measure text http://msdn.microsoft.com/en-us/library/y4xdbe66.aspx
-
GetYByValue
When I use GetYByValue, I get numbers in the tens of thousands range. I was expecting it to return a pixel measurement of Y. The following code is generating current numbers over 60,000...
int inty = ChartControl.GetYByValue(BarsArray[0], price);
Is my understanding wrong?
Thx.
Comment
-
what is the value of "price". the returned value depends on it. replace price with say Close[0] and see if things are right or not.Originally posted by BradB View PostWhen I use GetYByValue, I get numbers in the tens of thousands range. I was expecting it to return a pixel measurement of Y. The following code is generating current numbers over 60,000...
int inty = ChartControl.GetYByValue(BarsArray[0], price);
Is my understanding wrong?
Thx.
Comment
-
-
with different resolution the real-estate only changes, the logic of the code remains the same.Originally posted by Qualitiedx View Postone question!what happens if you change the resolution?the strategy is destroyed? :\
i have the same indi running on 2 pc with different screen resolution. both works fine without code changes.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
648 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
369 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
572 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
573 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment