NexusFi: Find Your Edge


Home Menu

 





Setting User Parameters


Discussion in NinjaTrader

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




 
Search this Thread

Setting User Parameters

  #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?
MC PL editor upgrade
MultiCharts
ZombieSqueeze
Platforms and Indicators
REcommedations for programming help
Sierra Chart
Trade idea based off three indicators.
Traders Hideout
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
17 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


© 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