Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
the execution is also strange, it enters as "LE" and exits as "external"
Collapse
X
-
Hello rocker84,
External means the order was either not submitted from NinjaTrader, or was submitted and then filled while NinjaTrader was disconnected.
This could be an order submitted by a broker or from another platform.
You would not be seeing this order in the Strategy Performance window.Chelsea B.NinjaTrader Customer Service
-
Originally posted by NinjaTrader_ChelseaB View PostHello rocker84,
External means the order was either not submitted from NinjaTrader, or was submitted and then filled while NinjaTrader was disconnected.
This could be an order submitted by a broker or from another platform.
You would not be seeing this order in the Strategy Performance window.
ThanksLast edited by rocker84; 08-11-2022, 12:36 PM.
Comment
-
Hello rocker84,
I'm not seeing that 2s is showing on the stop loss order in the screenshot you have posted.
I would not expect this to appear for an execution that originated or filled outside of NinjaTrader, as NinjaTrader wouldn't know the position when the order is submitted.
May I confirm that this related to the thread you are posting in?
This conversation is about the StopTargetHandling with a strategy when connected to TD Ameritrade.
Is your inquiry about the StopTargetHandling with TDA?
Be sure to make a new thread for new inquiries.Chelsea B.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_ChelseaB View PostHello rocker84,
I'm not seeing that 2s is showing on the stop loss order in the screenshot you have posted.
I would not expect this to appear for an execution that originated or filled outside of NinjaTrader, as NinjaTrader wouldn't know the position when the order is submitted.
May I confirm that this related to the thread you are posting in?
This conversation is about the StopTargetHandling with a strategy when connected to TD Ameritrade.
Is your inquiry about the StopTargetHandling with TDA?
Be sure to make a new thread for new inquiries.
Comment
-
Hello rocker84,
The orange order is stuck. A working order is not an execution. If this is a live brokerage order disconnect and re-connect to clear the order. If this is the Sim101 reset the Sim101.
This does not appear related to be related to conversation in this thread.
Moving forward, please make a new forum thread for new inquiries.Chelsea B.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_ChelseaB View PostHello rocker84,
The orange order is stuck. A working order is not an execution. If this is a live brokerage order disconnect and re-connect to clear the order. If this is the Sim101 reset the Sim101.
This does not appear related to be related to conversation in this thread.
Moving forward, please make a new forum thread for new inquiries.
This was the main error:
I am trying to make simple strategies in TDA, market entry and exit with stoploss or profit target (without scaling). In the first test that I did in TOS everything did be ok during the trade ,1lot for each order in the OCO, however in Ninjatrader the stoploss was "2S".
The stoploss was reached and there was a pending stoploss order "1S", the strategy desynchronized and did not generated a new trade after a few candles. In TOS everything ran fine. The oco, and the cancellation of the profit target.
The code is very simple:
difflong = Close[0] - MIN(Low,KA2)[0];
if (CrossAbove(MACD2.Default, MACD2.Avg, 1) && Position.Quantity == 0)
{
SetStopLoss(@"LE",CalculationMode.Price, Math.Floor((Close[0]-difflong*KA1-TickSize)/TickSize)*TickSize,false);
SetProfitTarget(@"LE",CalculationMode.Price, Math.Ceiling((Close[0]+difflong*KA3)/TickSize)*TickSize,false);
this.TimeInForce = TimeInForce.Day;
EnterLong(Convert.ToInt32(LotsSize), "LE");
}
this.TimeInForce = TimeInForce.Gtc;
So, how can I avoid this error? I want to enter with a market order, and placing a target and a stoploss on a TDA live account, a very simple strategy.
Comment
-
Hello rocker84,
Thank you for your reply.
My name is Emily and I am responding on behalf of Chelsea, who is not in the office today. I would like to review your diagnostic information in order to provide an accurate analysis of what happened with your orders. Please send me your log and trace files so that I may look into what occurred.
You can do this by going to the Control Center-> Help-> Email Support
Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.
Please include a link to this forum post and reference the following ticket number in the body of the email: ATTN: Emily 03101791
In addition, please answer all of the following questions in the body of your email (this information doesn't need to be answered publicly on the forums):- What instrument were you trading? Based on your screenshots, it was AMD, correct?
- When did this most recently occur?
- What Order ID was assigned to these orders? You can check in the Executions or Orders tab of the Control Center as well as in the Trade Performance report at Control Center > New > Trade Performance.
- Do you receive an error on the screen? Are there errors on the Log tab of the Control Center? If so, what do these errors report?
Thanks in advance; I look forward to resolving this with you.Emily C.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_Emily View PostHello rocker84,
Thank you for your reply.
My name is Emily and I am responding on behalf of Chelsea, who is not in the office today. I would like to review your diagnostic information in order to provide an accurate analysis of what happened with your orders. Please send me your log and trace files so that I may look into what occurred.
You can do this by going to the Control Center-> Help-> Email Support
Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.
Please include a link to this forum post and reference the following ticket number in the body of the email: ATTN: Emily 03101791
In addition, please answer all of the following questions in the body of your email (this information doesn't need to be answered publicly on the forums):- What instrument were you trading? Based on your screenshots, it was AMD, correct?
- When did this most recently occur?
- What Order ID was assigned to these orders? You can check in the Executions or Orders tab of the Control Center as well as in the Trade Performance report at Control Center > New > Trade Performance.
- Do you receive an error on the screen? Are there errors on the Log tab of the Control Center? If so, what do these errors report?
Thanks in advance; I look forward to resolving this with you.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ETFVoyageur, Today, 07:55 PM
|
0 responses
6 views
0 likes
|
Last Post
by ETFVoyageur
Today, 07:55 PM
|
||
Started by janio973, Today, 07:24 PM
|
1 response
7 views
0 likes
|
Last Post Today, 07:35 PM | ||
Started by aligator, 01-06-2022, 12:14 PM
|
4 responses
242 views
0 likes
|
Last Post
by john_44573
Today, 06:11 PM
|
||
Started by reynoldsn, Today, 05:56 PM
|
0 responses
13 views
0 likes
|
Last Post
by reynoldsn
Today, 05:56 PM
|
||
Started by bortz, 11-06-2023, 08:04 AM
|
51 responses
1,996 views
0 likes
|
Last Post
by aligator
Today, 05:50 PM
|
Comment