Thanks.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Smooth of RSI can not be set to zero
Collapse
X
-
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.Tags: None
-
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:
Here is the NT8 RSI code that also sets 1 as the minimum smooth value.Code:[Description("Number of bars for smoothing")] [GridCategory("Parameters")] public int Smooth { get { return smooth; } set { smooth =[B] Math.Max(1[/B], 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?
-
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, Today, 05:17 AM
|
0 responses
53 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
130 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
70 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
44 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment