NexusFi: Find Your Edge


Home Menu

 





Setting User Parameters


Discussion in NinjaTrader

Updated
    1. trending_up 1,479 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
traderseeker
Dusseldorf Germany
 
Posts: 8 since Feb 2014
Thanks Given: 2
Thanks Received: 4

I have created an indicator that utilizes moving average envelopes (MAE). In this new indicator, I would like to be able to adjust the parameters of the MAE % without needing to go into the code - but it does not show up in the settings for the indicator.

How do I tell NinjaTrader to make certain values adjustable from the settings?

I know that it has something to do with the get/set. But I don't really understand that and how do I tell it what to get and what to set as I am referencing several indicators - but this is the only one that needs to have user defined settings?


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pakistan Mediator in Tehran as Hormuz Normalization Coll …
Prediction Markets & Event Contracts
US Prop Firms Race Inside the CFTC Perimeter -- Tradeify …
Funded Trading Evaluation Firms
$500M Riding on World Cup 2026: France/Spain Co-Favored …
Prediction Markets & Event Contracts
Post-Summit Scorecard: $36M in May 15 Bets Settle Near-Z …
Prediction Markets & Event Contracts
Penalties in Budapest, Peace Deadline in Tehran: Arsenal …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
13 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #3 (permalink)
traderseeker
Dusseldorf Germany
 
Posts: 8 since Feb 2014
Thanks Given: 2
Thanks Received: 4


I have actually now figured out how to get the setting - but it is only changing in whole numbers - even though I have it set as a double variable

Here is the code:

 
Code
 #region Properties
		
		[Description("Number of Periods")]
		[GridCategory("Parameters")]
		public double MAEPerc
		{
			get {return maEnvPerc; }
			set { maEnvPerc = Math.Max(1, value); }
		}


Reply With Quote




Last Updated on March 6, 2014


© 2026 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 - Downloads - Top
no new posts