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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      64 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      139 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      75 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      50 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X