is it possible with an indicator or other to close automatically when in gain, a previously defined gain. ex i'am short on the ES and long on the NQ, when the cumulative gains and losses are made, the indicator or software closes when the cumulative amount reaches $ 100, for example. do you know a way to do this or a website?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
close trade when predifined cumulative gains made
Collapse
X
-
close trade when predifined cumulative gains made
Hello,
is it possible with an indicator or other to close automatically when in gain, a previously defined gain. ex i'am short on the ES and long on the NQ, when the cumulative gains and losses are made, the indicator or software closes when the cumulative amount reaches $ 100, for example. do you know a way to do this or a website?
Tags: None
-
Hello gravdigaz6,
Thanks for the post.
The best automated way to do this would be to use a multi instrument strategy.
The strategy would be able to see the performance for each position it had entered to know the unrealized pnl values. You could also look at its general performance to control trading based on realized pnl values.
Based on those values you could exit orders and repeat the cycle.
When working with a strategy position you can use the Position.GetUnrealizedProfitLoss() method to get PnL information.
When working with a multi instrument strategy you can use the Positions collection to reference various instruments positions.
There is a lot of information about working with multiple series in the following link: https://ninjatrader.com/support/help...lightsub=multi
I look forward to being of further assistance.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
84 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
47 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
66 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
69 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
58 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment