All my orders are showing as Limit or Stop Market, there's no distinction between which are entries and which are profit/stoploss.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Unmanaged Stop + Target Chart Trader Colors
Collapse
X
-
Unmanaged Stop + Target Chart Trader Colors
Is there any way to make orders from an addon via Account.CreateOrder() respect the "Profit Target" and "Stop Loss" order types in the attached screenshot?
All my orders are showing as Limit or Stop Market, there's no distinction between which are entries and which are profit/stoploss.Tags: None
-
Hello frantic,
Thank you for the post.
After some review, it looks like this is currently part of the ATM system that causes this so there would not be a specific way I could suggest to cause this. It was noted this is part of the CustomOrder system which is an overload for the Create method. This is an undocumented portion of NinjaScript though so I would be unable to provide any details on this type of order creation, unfortunately.
I have put in a feature request to document CustomOrder and the overload for Create that utilizes CustomOrder. I have also put in a feature request for an overload that has a StopLoss or ProfitTarget toggle.
I look forward to being of further assistance.Last edited by NinjaTrader_Jesse; 04-27-2018, 07:48 AM.
-
Hey Jesse,
thanks for the response! I found the overload that takes a CustomOrder, and tried passing it an instance. I also inspected in the debugger orders that use CustomOrder via an ATM strategy - and I can't see any difference to the defaults.
Could you give me more of a clue? Its really hard to see which orders are for scaling-in to my position and which are for exiting.
Suzie
Comment
-
Hello frantic,
Unfortunately not, in this case, this is not currently documented and there are no samples of CustomOrder that I am aware of. This is internally used but not documented for NinjaScript at this time. Once I have confirmation of the feature requests, I will post he ID numbers here for tracking.
At this time there is no way I could suggest to have the chart trader recognize the manually created targets as ATM stopLoss or ProfitTargets automatically. The alternative would be to use the ATM system, that would color the orders correctly as those colors are for ATM's specifically.
For CreateOrder, you would need to draw your own lines in the chart using an Indicator if you need further differentiation. Using the Addon account methods, you could retrieve orders and their names to do different drawing if necessary.
I look forward to being of further assistance.
Comment
-
Hello ntbone,
I have added your votes. You can track this with ID: SFT-3180
I look forward to being of further assistance.Last edited by NinjaTrader_Jesse; 07-12-2019, 03:05 PM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
81 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
150 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
79 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
52 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
59 views
0 likes
|
Last Post
|

Comment