Reading the Parameters Window in NinjaScript (Page 2) - NinjaTrader Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming

Reading the Parameters Window in NinjaScript
Started:April 29th, 2014 (07:02 PM) by RCMT Views / Replies:1,081 / 11
Last Reply:November 1st, 2014 (09:51 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Reading the Parameters Window in NinjaScript

Old October 31st, 2014, 09:50 AM   #11 (permalink)
Elite Member
Futures Experience: Beginner
Platform: NinjaTrader 7
Favorite Futures: CL, TF
grankus's Avatar
Posts: 8 since Aug 2012
Thanks: 5 given, 0 received

For the record, and for anyone else who wants to access this information, here are the elements that I've found (many converted to strings for consistent reference). The only one that I have not yet been able to find is the "Price based on" field from the Data Series group. You need to assign these to an appropriate variable in order to actually use them:

--- Data Series
ChartControl.BarsArray[0].BarsData.Period.MarketDataType.ToString(); //Price based on (Unsupported code according to NinjaTrader_Cal)
this.BarsPeriod.Value.ToString(); //Type
this.BarsPeriod.Id; // Value
this.Instrument.ToString(); //Instrument

--- Time Frame
this.Days2Load.ToString(); // Days to load
this.SessionData.ToString(); // Session Template

--- General
this.Account.Name; //Account
this.StrategyData.Strategy.CalculateOnBarClose // Calculate on Bars Close
this.Name; //Label
this.MaximumBarsLookBack.ToString(); //Maximum bars look back
this.BarsRequired.ToString(); //Min Bars Required

--- Historical Fill Processing
this.FillType.ToString(); //Fill type
this.Slippage.ToString(); //Slippage

--- Order Handling
this.EntriesPerDirection.ToString(); //Entries per direction
this.EntryHandling.ToString(); //Entry Handling
this.ExitOnClose.ToString(); // Exit on Close
this.ExitOnCloseSeconds.ToString(); // Exit on Close Seconds
this.StopTargetHandling.ToString(); //Stop & Target Submission
this.SyncAccountPosition.ToString(); //Sync Account Position

--- Order properties
this.QuantityType.ToString(); //Set Order Quantity
this.AccountSize.ToString(); // Account Size (for Order Quantity by account size)
this.DefaultQuantity.ToString(); // Default quantity (for Order quantity by default)
this.TimeInForce.ToString(); //Time in Force

Thank you for the info RCMT

Did you finally find the solution?

Reply With Quote

Old November 1st, 2014, 09:51 PM   #12 (permalink)
Elite Member
Vancouver Canada
Futures Experience: Beginner
Platform: NinjaTrader,ThinkOrSwim
Favorite Futures: ES
Posts: 6 since Mar 2014
Thanks: 3 given, 1 received

The closest that I've been able to get for Price Based On is the unsupported


which I cited in my earlier post. Sadly, I have found that this does not work consistently.

Why NinjaTrader doesn't expose this kind of information in a documented and supported way bewilders me. NT is a great product with generally really good support but where there are holes they seem to throw up their hands and say it's impossible.

Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > Reading the Parameters Window in NinjaScript

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting User Parameters traderseeker NinjaTrader Programming 2 March 6th, 2014 05:38 AM
Passing indicator parameters hawks67 NinjaTrader Programming 7 November 29th, 2012 09:04 AM
adding column in Parameters Window ceramictilepro NinjaTrader Programming 1 November 4th, 2011 10:36 PM
Can a floating window be coded with Ninjascript ? trendisyourfriend NinjaTrader Programming 29 December 21st, 2010 04:02 AM
Save parameters from one session to another bukkan NinjaTrader Programming 7 January 4th, 2010 04:54 AM

All times are GMT -4. The time now is 10:28 AM.

Copyright © 2016 by 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.
no new posts

Page generated 2016-10-24 in 0.09 seconds with 19 queries on phoenix via your IP