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 CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
163 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
81 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
125 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
206 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
184 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment