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 charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
60 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
147 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
161 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
97 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
284 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment