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
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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
-
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
-
-
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 jackiegils, Today, 11:05 PM
|
0 responses
5 views
0 likes
|
Last Post
by jackiegils
Today, 11:05 PM
|
||
Started by cre8able, Yesterday, 09:15 PM
|
2 responses
17 views
0 likes
|
Last Post
by cre8able
Today, 10:36 PM
|
||
Started by Trader146, Today, 09:17 PM
|
0 responses
9 views
0 likes
|
Last Post
by Trader146
Today, 09:17 PM
|
||
Started by ttrader23, 05-08-2024, 09:04 AM
|
9 responses
43 views
0 likes
|
Last Post
by ttrader23
Today, 08:29 PM
|
||
Started by ZeroKuhl, Yesterday, 04:31 PM
|
8 responses
46 views
0 likes
|
Last Post
by ZeroKuhl
Today, 07:25 PM
|
Comment