I am wanting to program a strategy that will close all open positions as soon as my unrealized gains in my account reach a certain target or hit a certain stop. Thats it, nothing more. Can someone please advise. It would be greatly appreciated!
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
Closing positions once gain/loss target set
Collapse
X
-
Closing positions once gain/loss target set
I have desperately been trying to figure this one out. I am new to strategy trading so I still lack a good knowledge of NinjaTrader strategy creation. However, I am wanting to construct what I believe to be a very simply strategy but cant seem to figure out how:
I am wanting to program a strategy that will close all open positions as soon as my unrealized gains in my account reach a certain target or hit a certain stop. Thats it, nothing more. Can someone please advise. It would be greatly appreciated!Tags: None
-
Ben, Thanks for the response. Could you give me some more detailed info. as far as how to write a strategy that would accomplish this? I dont know where to begin as far as the structuring of an automated strategy. Thanks.
Comment
-
Please see this reference sample: http://www.ninjatrader-support2.com/...ead.php?t=4084Josh P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by junkone, 04-28-2024, 02:19 PM
|
8 responses
92 views
1 like
|
Last Post Today, 01:58 AM | ||
Started by mkouitra, 10-23-2021, 04:40 PM
|
17 responses
1,962 views
0 likes
|
Last Post Today, 12:51 AM | ||
Started by Vietanhnguyen2hotmailcom, 05-03-2024, 10:29 AM
|
4 responses
29 views
0 likes
|
Last Post Yesterday, 09:06 PM | ||
Started by PhillT, 04-19-2024, 02:16 PM
|
4 responses
37 views
0 likes
|
Last Post
by PhillT
Yesterday, 04:24 PM
|
||
Started by ageeholdings, 05-01-2024, 05:22 AM
|
5 responses
39 views
0 likes
|
Last Post
by ageeholdings
Yesterday, 03:21 PM
|
Comment