Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Smooth of RSI can not be set to zero

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

    Smooth of RSI can not be set to zero

    Parameter Smooth can be set to 0 in NT7. However, it can not be set to zero in NT8. And this difference does lead to difference strategy testing result. Could you please help?

    Thanks.

    #2
    Hello wangsongyi,

    Thanks for your post and welcome to the forums!

    While the parameter can be set to 0 (or any value) in both NT7 and NT8 in both platforms it will be reset to the minimum smooth of 1. Please check the parameters in NT7 after having set the smooth to 0, click apply button and you will see that it is set to 1.

    Here is the NT7 RSI code that sets the smooth value to a minimum of 1:

    Code:
    		[Description("Number of bars for smoothing")]
    		[GridCategory("Parameters")]
    		public int Smooth
    		{
    			get { return smooth; }
    			set { smooth =[B] Math.Max(1[/B], value); }
    		}
    Here is the NT8 RSI code that also sets 1 as the minimum smooth value.

    Code:
    		[[B]Range(1[/B], int.MaxValue), NinjaScriptProperty]
    		[Display(ResourceType = typeof(Custom.Resource), Name = "Smooth", GroupName = "NinjaScriptParameters", Order = 1)]
    		public int Smooth 
    		{ get; set; }

    Are you using a custom version of the RSI indicator?

    Comment


      #3
      Thanks a lot. Paul. I checked the back testing result. it is the same between smooth 0 and 1. You are correct.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      29 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      46 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X