Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATR and StdDev upper and lower

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Originally posted by NinjaTrader_Joydeep View Post
    Hello alexstox,
    Unfortunately we do not have any specific sample code in this regard.

    I will leave the thread open for any of our forum members who can share his/her valuable input.
    Maybe we should rename Title or better to create new anchored with title "Indicator&Strategy samples for dummies" with rules:
    1. Upload indicator or strategy scripts samples
    2. Scripts must include detailed description of every row, variable
    Example:
    Code:
    --//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//
    public class LWMPind : Indicator
    	{
    		#region Variables
    		private	double		numStdDev	= 1; [COLOR="Red"][B]///this will be used in further rows to calculate "this" and "that" blah blah blah...[/B][/COLOR]
    		private int			period		= 360;
    		#endregion
    
    		/// <summary>
    		/// This method is used to configure the indicator and is called once before any bar data is loaded.
    		/// </summary>
    		protected override void Initialize()
    		{
    			Add(new Plot(Color.Green, "Upper ATR"));[COLOR="Red"][B]///this will be used in... blah blah blah... . "There" we refer to this plot using <value[0]>...[/B][/COLOR]
    			Add(new Plot(Color.Orange, "Upper band"));
    --//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//

    Comment


      #17
      Hello alexstox,
      We try to document our sample codes extensively. You can find the list of our sample codes from here
      Following are links to all available NinjaScript reference samples within this forum section: Strategy Reference Samples (NinjaTrader 8) - also applicable to NT7 Using a time filter to limit trading hours (http://www.ninjatrader.com/support/forum/showthread.php?t=3226) Using multiple entry/exit signals simultaneously


      We also have a large pool of NinjaScript codes submitted by our esteemed users and unfortunately we have no control on how they document the custom code.
      JoydeepNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      576 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      334 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      553 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X