Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Minimum Bars Required
Collapse
X
-
Minimum Bars Required
I run a strategy that uses MA of 50 bars. If I set the minimum bars required to 20 there are no trades, if I set it to 50 or more the trades happen. Why is this so when I have continous data on my chart.Tags: None
-
Iam usind data from jan 1 2009 to august 31, 2009.
Originally posted by NinjaTrader_Bertrand View Postkassaindia, how much data are you using for the backtest period? The min bars required is merely a way to stop trades from displaying on the first x bars of the chart, so to give indicators used time to catch up with their calculated values.
Comment
-
-
Attached is the screen shot. You will see results on the screen shot with min bars required as 25 and no result on the screen shot that says 20 bars.
Originally posted by NinjaTrader_Bertrand View PostSorry don't follow you - please post a screenshot of the exact issue you see happening, thanks.
Comment
-
Iam sending you a sample code on e-mail. It is a part of my main code but it is this part that is showing problem. If you run this you will come to know the error. Attached herewith are the screen shots also for your ref.
Originally posted by NinjaTrader_Bertrand View PostThanks kassaindia, not sure why you see this discrepancy - any errors in your log as this happens? Any way I could test this on my end with your strategy?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
161 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
308 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
245 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
349 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
179 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment