NexusFi: Find Your Edge


Home Menu

 





Accessing Chart Trader orders programmatically (NT8)


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one decs0057 with 1 posts (0 thanks)
    2. looks_two shaisamuel with 1 posts (0 thanks)
    3. looks_3 trendisyourfriend with 1 posts (0 thanks)
    4. looks_4 drmartell with 1 posts (0 thanks)
    1. trending_up 1,500 views
    2. thumb_up 0 thanks given
    3. group 5 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

Accessing Chart Trader orders programmatically (NT8)

  #1 (permalink)
 
drmartell's Avatar
 drmartell 
Portland, OR
 
Experience: Intermediate
Platform: NinjaTrader mostly
Broker: I've tried 'em all
Trading: ZN, ES, 6E, TF, CL
Posts: 94 since Mar 2010
Thanks Given: 176
Thanks Received: 79

Looking for hints or example scripts as to how to access the Chart Trader created orders I would like to be able to alter the quantity up/down increment for the control on the chart itself.

Thanks.

Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
Quantum physics & Trading dynamics
The Elite Circle
REcommedations for programming help
Sierra Chart
MC PL editor upgrade
MultiCharts
Cheap historycal L1 data for stocks
Stocks and ETFs
 
  #2 (permalink)
 shaisamuel 
San Diego, CA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: ES, NQ, TF, YM, FDAX, ZN, ZB, CL, GC
Posts: 4 since Sep 2013
Thanks Given: 1
Thanks Received: 0

Did you find any?

Support says there is no documented way, but...
https://forum.ninjatrader.com/forum/ninjatrader-8/strategy-development/1247217-adding-chart-trader-hidden-from-strategy-code, but

Reply With Quote
  #3 (permalink)
 decs0057 
Munich, Germany
 
Experience: Intermediate
Platform: NinjaTrader, TWS
Broker: IB, NinjaTrader Brokerage
Trading: ES,NQ,6E
Posts: 71 since Feb 2010
Thanks Given: 15
Thanks Received: 25


With this code snippet you can access ChartTrader class using ChartControl object

Chart chartWindow = Window.GetWindow(ChartControl.Parent) as Chart;

// if not added to a chart, do nothing
if (chartWindow == null)
return;

// this is the entire chart trader area grid
ChartTrader = chartWindow.FindFirst("ChartWindowChartTraderControl") as ChartTrader;

Reply With Quote
  #4 (permalink)
 TigerStripes   is a Vendor
 
Posts: 109 since Mar 2021
Thanks Given: 33
Thanks Received: 56

Any idea of a function allowing to cast orders sent by the existing chart trader buttons or Intercept an order name/ID/values.

I have a group of chart objects that are already on the chart trader but I am wanting to set something like renaming the order, or wait to send the order name it first and then place the order so I can trace when I entered at what price and what account it was made on.

Reply With Quote
  #5 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,176
Thanks Received: 6,020


TigerStripes View Post
Any idea of a function allowing to cast orders sent by the existing chart trader buttons or Intercept an order name/ID/values.

I have a group of chart objects that are already on the chart trader but I am wanting to set something like renaming the order, or wait to send the order name it first and then place the order so I can trace when I entered at what price and what account it was made on.

follow this link

Reply With Quote




Last Updated on April 26, 2023


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts