Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Customize Chart Trader

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    #2
    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

    Comment


      #3
      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 ct, 05-07-2023, 12:31 PM
      6 responses
      202 views
      0 likes
      Last Post wisconsinpat  
      Started by kaywai, Today, 06:26 AM
      0 responses
      1 view
      0 likes
      Last Post kaywai
      by kaywai
       
      Started by kevinenergy, 02-17-2023, 12:42 PM
      118 responses
      2,778 views
      1 like
      Last Post kevinenergy  
      Started by briansaul, Today, 05:31 AM
      0 responses
      9 views
      0 likes
      Last Post briansaul  
      Started by traderqz, Yesterday, 12:06 AM
      11 responses
      28 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X