Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Money Management & Back Testing
Collapse
X
-
Money Management & Back Testing
I am writing a strategy in which I want to exit daily after a certain profit target for the day. I have reviewed the example using Performance.AllTrades... This works of course but when backtesting CumProfit applies to all historical trades. Is there any way to check this daily (while back testing; I understand usring RealtimeTrades will work in real time), e.g. for each trade day in back test, trading stops after profit target is hit for day and then trading starts the next day and so on.Tags: None
-
netjms, you would need to self calculate this needed value, a related sample showing how to loop through the trades count to arrive at a daily counter for this is found here - http://www.ninjatrader.com/support/f...ad.php?t=19289
-
Unfortunately I would not have a sample for this ready, you would need to rework the logic in this case, the reset for your cumulations would then be for example the start of a new week - http://www.ninjatrader-support.com/H...DayOfWeek.html
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
648 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
369 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
572 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
573 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment