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
Profit targets
Collapse
X
-
Hello trader14,
Thanks for your post.
To do this you would need to submit a seperate order for each "quarter" or "third" of the position that you wanted to scale out of.
We have a relevant sample of how to scale out of a position in our help guide at the following link: https://ninjatrader.com/support/help...a_position.htmJosh G.NinjaTrader Customer Service
-
trader14,
The Profit Target is going to be the profit target for a specific order. 'Total profit target' would be something you tallied up yourself as that is not a NinjaTrader value.
I am not sure what you mean by "Can I do this within the automated strategy as I build it". You would be able to implement the concept in the above sample in your own strategy to achieve your goal.Josh G.NinjaTrader Customer Service
Comment
-
hi josh, can't get this to work. the positions aren't selling at the targets as they should. what am i doing wrong? i've labeled each contract, 1, 2, 3 for a total of three. I'm going long all three and then setting the targets specifically by name of each contract. not sure what else i need to do.
Comment
-
Hello trader14,
We would need to see what you have created so far to better understand what should be happening. Could you provide an image of the conditions you made along with the stop/targets page?
An alternative would be to compare and contrast against the sample we have of this concept to see if you can pick out differences with the order methods and targets. In the builder you can click the "View Code" button, this will just display the generated NinjaScript code. Looking in the code for "EnterLong" or "SetStopLoss" "SetProfitTarget" you should find the lines which contain the entry/target info. This could be compared against the other script to make observations of differences.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by JonesJoker, 04-22-2024, 12:23 PM
|
6 responses
32 views
0 likes
|
Last Post
by JonesJoker
Today, 05:14 AM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
12 responses
3,239 views
0 likes
|
Last Post
by Leafcutter
Today, 05:08 AM
|
||
Hi
by AveryFlynn
Started by AveryFlynn, Today, 04:57 AM
|
0 responses
5 views
0 likes
|
Last Post
by AveryFlynn
Today, 04:57 AM
|
||
Started by RubenCazorla, 08-30-2022, 06:36 AM
|
3 responses
79 views
0 likes
|
Last Post
by PaulMohn
Today, 04:44 AM
|
||
Started by f.saeidi, Yesterday, 12:14 PM
|
9 responses
25 views
0 likes
|
Last Post
by f.saeidi
Today, 04:39 AM
|
Comment