Reading the Parameters Window in NinjaScript - NinjaTrader Programming | futures io social day trading
futures io futures trading


Reading the Parameters Window in NinjaScript
Updated: Views / Replies:1,543 / 11
Created: by RCMT Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Reading the Parameters Window in NinjaScript

  #11 (permalink)
Elite Member
Barcelona
 
Futures Experience: Beginner
Platform: NinjaTrader 7
Favorite Futures: CL, TF
 
grankus's Avatar
 
Posts: 8 since Aug 2012
Thanks: 5 given, 0 received


Quoting 
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
 
  #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

ChartControl.BarsArray[0].BarsData.Period.MarketDataType.ToString();

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 io > > > > > 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)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

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


All times are GMT -4. The time now is 06:42 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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 2017-12-15 in 0.07 seconds with 19 queries on phoenix via your IP 107.20.115.174