NexusFi: Find Your Edge


Home Menu

 





Setting User Parameters


Discussion in NinjaTrader

Updated
    1. trending_up 1,545 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?
Fed Hike Odds at 57% After Warsh: England Surges 12.9%, …
Prediction Markets & Event Contracts
Datafeed for Atas
Platforms and Indicators
Daytrading to swingtrading
Traders Hideout
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
Czechia Live at 52.5% as England Rides 4-2 Wave to Co-Fa …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
Afternoon-close session
1 thanks
Franks Trading Journey
1 thanks
Denied 20K payouts: Alpha Futures
1 thanks
FootPrintV2 Chart for NT8
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