Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
EasyLanguage to NinjaScript
Collapse
X
-
Hello RobinT,
I would take a look at the information at the following link at StackOverflow: http://stackoverflow.com/questions/2...nal-array-in-cLast edited by NinjaTrader_PatrickH; 02-16-2016, 08:32 AM.
Leave a comment:
-
Array
I use a multi dimensional array, 50 rows each 6 columns. I only need to sort descending on the first column so I have a sorted array on the first column with all the other data still related to column1. Does anyone know how to sort a decimal array like this or should I use another ninjascript data structure.
.private decimal [,] Htargets = new decimal [depth , arrsize ] ;
arrsize = 50 ;
depth = 6 ;
I only want to sort descending on depth = 1 ;
Leave a comment:
-
RobinT,
It is up to you. NinjaTrader 8 is still in beta. I just wanted to provide you with both options.
Leave a comment:
-
I am using NT7 as I thought writing for NT8 might be premature. Is that right? Should I use NT8 now
Leave a comment:
-
Hello RobinT,
Thank you for your post and welcome to the NinjaTrader Support Forum!
Are you building in NinjaTrader 7 or 8? In NinjaTrader 7 most of the items you are asking about are unsupported. In NinjaTrader 8, these items would be supported though.
For NinjaTrader 7 you would use GetMinMaxValues for the chart scale. For example:
You can find an example on creating and disposing a custom form at the following link: http://www.ninjatrader.com/support/f...d=4&linkid=475Code:public override void GetMinMaxValues(Gui.Chart.ChartControl chartControl, ref double min, ref double max) { base.GetMinMaxValues(chartControl, ref min, ref max); min = -20; max = 120; }
Keep in mind these items are unsupported in NinjaTrader 7.
In NinjaTrader 8 you would use the AddOns class for the window: http://ninjatrader.com/support/helpG...-us/add_on.htm
For the chart scale you would use chart scale, literally: http://ninjatrader.com/support/helpG...chartscale.htm
Leave a comment:
-
EasyLanguage to NinjaScript
I am converting a large app from EL to c# for NT. So far so good, but I have questions I would like help with:
Where can I find environment variables for the whole NT system and the chart the indicator is applied to. I would like things like chart resolution so I can work out spacing for my lines, and license key details for security purposes.
I use the Forms class to create new windows output screens. How do I get rid of old windows when the software restarts or when the NT app closes. I keep building up a number of windows, one each time I run the indicator. I think dispose or destroy might do it but I don't know how to call on NT close.Tags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by kinfxhk, 07-14-2026, 09:39 AM
|
0 responses
128 views
0 likes
|
Last Post
by kinfxhk
07-14-2026, 09:39 AM
|
||
|
Started by kinfxhk, 07-13-2026, 10:18 AM
|
0 responses
105 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 10:18 AM
|
||
|
Started by kinfxhk, 07-13-2026, 09:50 AM
|
0 responses
86 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 09:50 AM
|
||
|
Started by kinfxhk, 07-13-2026, 07:21 AM
|
0 responses
105 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 07:21 AM
|
||
|
Started by kinfxhk, 07-11-2026, 02:11 AM
|
0 responses
86 views
0 likes
|
Last Post
by kinfxhk
07-11-2026, 02:11 AM
|

Leave a comment: