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?
CME Launches Bitcoin Volatility Futures June 1 -- First …
Cryptocurrency
Kalshi Sets $4.13B All-Time Weekly Record as Polymarket …
Prediction Markets & Event Contracts
More Than Capable: Hegseths War Warning Validates $114M …
Prediction Markets & Event Contracts
The June 15 Resolution Trap: Irans Agreed Text Still Pri …
Prediction Markets & Event Contracts
Trump Truth Social Fires Hormuz From 10% to 59% -- Arsen …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
15 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