Haven't yet done much ninjatrader programming, so I was looking to get started with this idea and wondering if this was possible. If not, I'd like to be able to create my own that's similar starting with a simple form that's attached to the chart with some buttons on it. Any ideas appreciated.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Customize Chart Trader
Collapse
X
-
Customize Chart Trader
Can I customize the Chart Trading indicator? I'd like to add a few buttons to the indicator that place some specific orders.
Haven't yet done much ninjatrader programming, so I was looking to get started with this idea and wondering if this was possible. If not, I'd like to be able to create my own that's similar starting with a simple form that's attached to the chart with some buttons on it. Any ideas appreciated.Tags: None
-
Hello Bth123, and thank you for your question.
While this is beyond the support we can provide directly, I am providing a post other forums users have found helpful, which will guide you through creating Windows forms .dll files and linking them into a NinjaScript project.
Please let us know if there are any other ways we can help.Jessica P.NinjaTrader Customer Service
-
Additionally, for ChartTrader specifically, the following code sample may help.
Code:for (int i = 0; i < ChartControl.Controls.Count; i++) { Print(ChartControl.Controls[i].Name); if (ChartControl.Controls[i].Name == "pnlChartTrader") { Control ct = ChartControl.Controls[i]; ComboBox a = null; for (int x = 0; x < ct.Controls["ctrChartTraderControl"].Controls.Count; x++) { a = (ComboBox)ct.Controls["ctrChartTraderControl"].Controls["cboAccount"]; } NinjaTrader.Cbi.Account d = a.SelectedItem as NinjaTrader.Cbi.Account; Print(d.Name); } }
Jessica P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by andrewtrades, Today, 04:57 PM
|
1 response
8 views
0 likes
|
Last Post Today, 05:02 PM | ||
Started by chbruno, Today, 04:10 PM
|
0 responses
6 views
0 likes
|
Last Post
by chbruno
Today, 04:10 PM
|
||
Started by josh18955, 03-25-2023, 11:16 AM
|
6 responses
436 views
0 likes
|
Last Post
by Delerium
Today, 03:42 PM
|
||
Started by FAQtrader, Today, 03:35 PM
|
0 responses
7 views
0 likes
|
Last Post
by FAQtrader
Today, 03:35 PM
|
||
Started by rocketman7, Today, 09:41 AM
|
5 responses
19 views
0 likes
|
Last Post Today, 03:33 PM |
Comment