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
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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.JesseNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Pattontje, Yesterday, 02:10 PM
|
2 responses
14 views
0 likes
|
Last Post
by Pattontje
Yesterday, 11:49 PM
|
||
Started by flybuzz, 04-21-2024, 04:07 PM
|
17 responses
229 views
0 likes
|
Last Post
by TradingLoss
Yesterday, 11:45 PM
|
||
Started by agclub, 04-21-2024, 08:57 PM
|
3 responses
17 views
0 likes
|
Last Post
by TradingLoss
Yesterday, 11:42 PM
|
||
Started by TradingLoss, 04-21-2024, 04:32 PM
|
4 responses
44 views
2 likes
|
Last Post
by TradingLoss
Yesterday, 11:40 PM
|
||
Started by cre8able, 04-17-2024, 04:16 PM
|
6 responses
56 views
0 likes
|
Last Post
by cre8able
Yesterday, 09:20 PM
|
Comment