NexusFi: Find Your Edge


Home Menu

 





Retrieve ATM Strategy Template List


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one drmartell with 1 posts (0 thanks)
    2. looks_two DerekPhelps22 with 1 posts (1 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 Zach b with 1 posts (0 thanks)
    1. trending_up 2,038 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread

Retrieve ATM Strategy Template List

  #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

Until one of the several recent NinjaTrader updates I was able to obtain a list of ATM Strategies like so:
 
Code
//get the list of available ATM Strategies and load to Popup combobox
ComboBox cb = ChartControl.Controls["pnlChartTrader"].Controls["ctrChartTraderControl"].Controls["cboStrategy"] as System.Windows.Forms.ComboBox;

cb.Items.RemoveAt(0); cb.Items.RemoveAt(1); //remove the "<None>" and "<Custom>" entries as they don't apply
			
object[] itemHolder = new Object[cb.Items.Count];

cb.Items.CopyTo(itemHolder,0);

Any bright ideas out there about another method?

Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
How to apply profiles
Traders Hideout
 
  #3 (permalink)
 Zach b 
NV
 
Experience: Intermediate
Platform: NinjaTrader
Trading: fx
Posts: 21 since Mar 2010
Thanks Given: 18
Thanks Received: 11



drmartell View Post
Until one of the several recent NinjaTrader updates I was able to obtain a list of ATM Strategies like so:
 
Code
//get the list of available ATM Strategies and load to Popup combobox
ComboBox cb = ChartControl.Controls["pnlChartTrader"].Controls["ctrChartTraderControl"].Controls["cboStrategy"] as System.Windows.Forms.ComboBox;

cb.Items.RemoveAt(0); cb.Items.RemoveAt(1); //remove the "<None>" and "<Custom>" entries as they don't apply
			
object[] itemHolder = new Object[cb.Items.Count];

cb.Items.CopyTo(itemHolder,0);

Any bright ideas out there about another method?

Hi Doc,
you ever work this out? I am working on something similar, also need to figure out how to get the detail of that ATM (stop size, target size etc).
Please let me know when you get a chance.
Thanks!

Reply With Quote
  #4 (permalink)
 DerekPhelps22 
Lumberton
 
Experience: Intermediate
Platform: NinjaTrader
Trading: Forex
Posts: 1 since Dec 2015
Thanks Given: 0
Thanks Received: 1

Re: Retrieving a dropdown list of your Ninja ATM strategys...

I have a strategy (link below) I posted on the NinjaTrader site a while back that lets you click a dropdown on your strategy parameters list and displays all your ATM strategys and when your standard strategy logic decides to enter, passes control to your selected ATM until the ATM exits and then resumes control.
Examine the code and you can likely extract what you need for your purposes.

Links and Downloads Manager - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

Reply With Quote
Thanked by:




Last Updated on December 27, 2015


© 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