NexusFi: Find Your Edge


Home Menu

 





ChartTrader -- How to get the selected ATM with script


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one vantojo with 3 posts (0 thanks)
    2. looks_two kandlekid with 1 posts (0 thanks)
    3. looks_3 decs0057 with 1 posts (1 thanks)
    4. looks_4 Big Mike with 1 posts (0 thanks)
    1. trending_up 1,742 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 6 posts
    2. attach_file 0 attachments




 
Search this Thread

ChartTrader -- How to get the selected ATM with script

  #1 (permalink)
 vantojo 
Vilcabamba, Ecuador
 
Experience: Intermediate
Platform: Ninja
Trading: NQ, UB
Posts: 204 since Jul 2012

Hello All,

Does anyone know how to (if it is possible) to get the current selected ATM in the ChartTrader drop down list with Ninja script?

Thanks in advance

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
REcommedations for programming help
Sierra Chart
Quant vue
Trading Reviews and Vendors
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
How to apply profiles
Traders Hideout
 
  #3 (permalink)
kandlekid
College Point, NY (Queens)
 
Posts: 63 since Nov 2009
Thanks Given: 5
Thanks Received: 20


ChartTrader is technically not allowed/supported by NT when used with a strategy (in fact when you run a strategy, ChartTrader is not available from the Control Center). In an ATM/ChartTrader you (or the ATM) enters the order, but a strategy enters it automatically ... in it's own namespace, etc. So how can a strategy possibly see an order entered outside of the strategy ?

But you can do it with the ChartControl functions. Note, you won't find any official documentation on them, but if you search for ChartControl on the futures.io (formerly BMT) forums and also the NT support forums you should find enough to run an ATM with a strategy.

Reply With Quote
  #4 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,454 since Jun 2009
Thanks Given: 33,227
Thanks Received: 101,643

Look here:


I would ask in that thread since it duplicates most of the controls available when it creates the new panel window.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
 vantojo 
Vilcabamba, Ecuador
 
Experience: Intermediate
Platform: Ninja
Trading: NQ, UB
Posts: 204 since Jul 2012

by the way, Mike, I love the photos of your dog!

I live in South America...and I don't need my own dog...there are so many loose ones (with owners, but running free) and I eventually win them over to be my buddies when I go for walks.

In my last neighborhood, I felt like a pied piper of dogs...sometimes with 6-7 of them at my side

:-)

Started this thread Reply With Quote
  #6 (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


vantojo View Post
Hello All,

Does anyone know how to (if it is possible) to get the current selected ATM in the ChartTrader drop down list with Ninja script?

Thanks in advance

Following code will give you combox of ATM strategies

if( ChartControl != null )
{
System.Windows.Forms.ComboBox cb = ChartControl.Controls["pnlChartTrader"].Controls["ctrChartTraderControl"].Controls["cboStrategy"] as System.Windows.Forms.ComboBox;
Print( "Active ATM strategy: " + cb.SelectedItem.ToString() );
}

Reply With Quote
Thanked by:
  #7 (permalink)
 vantojo 
Vilcabamba, Ecuador
 
Experience: Intermediate
Platform: Ninja
Trading: NQ, UB
Posts: 204 since Jul 2012

simple and direct code...

thank you

Started this thread Reply With Quote




Last Updated on March 14, 2013


© 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