NexusFi: Find Your Edge


Home Menu

 





Accessing Chart Trader orders programmatically (NT8)


Discussion in NinjaTrader

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




 
Search this Thread
  #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?
CFTC Approves First US Bitcoin Perpetual Futures -- Kals …
Traders Hideout
The 50/50 Paradox: Peace and Invasion Each at 20% -- Ira …
Prediction Markets & Event Contracts
TradingView Deploys AI to Monitor SEC Filings in Real Ti …
TradingView
Asia Equities Crash Overnight -- Nikkei -5.2%, KOSPI -6. …
Traders Hideout
Cboe Launches BITVX Bitcoin Volatility Index and Unveils …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
22 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
5 thanks
  #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: 73 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: 57

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
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,580 since Oct 2009
Thanks Given: 4,266
Thanks Received: 6,199


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


© 2026 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 - Downloads - Top
no new posts