Tks again
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Stop a strategy if profit goal reached?
Collapse
X
-
Ok, will do as indicated, but again, in the case of the SamplePnL strategy on CL 09-10 which I just added today to my instrument list (I was following CL 08-10 yestterday) it should be executing without a hiccup... but, let's see what I get with the Print() and I'll let you know.
Tks again
-
I get this...Originally posted by NinjaTrader_RyanM View PostOur replies crossed. Regarding your latest post:
The value is captured at the start of the day so that you can later subtract the total from this captured value. This tell you what has been going on for the day-in-progress.
Code:Performance.AllTrades.TradesPerformance.Currency.CumProfit - priorTradesCumProfit = Your session CumProfit.
Perfomance All Trades - Prior Trades
-20.0000000000243
All Trades Count - Prior Trades
11
where is the SamplePnL strategy getting these from ? I just started running it today???
Comment
-
pepereal4,
When you start a strategy it recalculates based off of historical data to generate historical strategy positions. When you use "Performance.AllTrades" you are accessing these historical trades. If you only want real trades please use "Performance.RealtimeTrades".Josh P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
671 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
379 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
111 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
575 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
582 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment