Forum: NinjaTrader
January 9th, 2014, 10:34 AM
|
Replies: 11
Views: 3,773
Clunky solution
Well as nobody was able to help I have had to fashion a solution of my own.
It's not pretty but it works..
I simply used the following
for (int i=0;i<cclen;i++) {
//List controls with [i]...
|
Forum: NinjaTrader
January 9th, 2014, 04:40 AM
|
Replies: 11
Views: 3,773
|
Forum: NinjaTrader
January 8th, 2014, 03:37 AM
|
Replies: 11
Views: 3,773
On start up
An alternative is just to use a bool
so...
If(init)
{execute code
set init to false
end code}
|
Forum: NinjaTrader
January 7th, 2014, 06:55 AM
|
Replies: 11
Views: 3,773
Solution
My Bad
foreach(Control control in ct.Controls)
{
Print (control.Name);
}
|
Forum: NinjaTrader
January 7th, 2014, 06:31 AM
|
Replies: 11
Views: 3,773
Enumerate chart trader buttons
ktrader
Nice coding. I thought I could enumerate all the buttons in the Chart Trader Container by
Print(ct.Control[i].Name);
but this doesn't produce anything. Any ideas of how to do this?
|