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 SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
50 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
22 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
16 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
22 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
23 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment