NexusFi: Find Your Edge


Home Menu

 





Reading the Parameters Window in NinjaScript


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one RCMT with 6 posts (4 thanks)
    2. looks_two Big Mike with 3 posts (1 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 ratfink with 1 posts (0 thanks)
    1. trending_up 4,431 views
    2. thumb_up 5 thanks given
    3. group 3 followers
    1. forum 11 posts
    2. attach_file 0 attachments




 
Search this Thread

Reading the Parameters Window in NinjaScript

  #11 (permalink)
 
grankus's Avatar
 grankus 
Barcelona
 
Experience: Beginner
Platform: NinjaTrader 7
Trading: CL, TF
Posts: 8 since Aug 2012
Thanks Given: 5
Thanks Received: 0


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

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
Cheap historycal L1 data for stocks
Stocks and ETFs
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
What broker to use for trading palladium futures
Commodities
 
  #12 (permalink)
 RCMT 
Vancouver Canada
 
Experience: Beginner
Platform: NinjaTrader,ThinkOrSwim
Trading: ES
Posts: 6 since Mar 2014
Thanks Given: 3
Thanks Received: 1

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.

Started this thread Reply With Quote




Last Updated on November 1, 2014


© 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