NexusFi: Find Your Edge


Home Menu

 





Setting User Parameters


Discussion in NinjaTrader

Updated
    1. trending_up 988 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?
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Futures True Range Report
The Elite Circle
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
ZombieSqueeze
Platforms and Indicators
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
38 thanks
NexusFi site changelog and issues/problem reporting
27 thanks
GFIs1 1 DAX trade per day journal
19 thanks
The Program
18 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