if the close is above the SMA, it will enter a bid with a limit order to get long. If it is not filled when the bar closes, it will re-evaluate the condition on the next OBU cycle and send a new order if the condition is true again?
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
EnterLongLimit does not execute
Collapse
X
-
Thank you for the note, I will give that a try. So please explain to me what the example in the documentation do https://ninjatrader.com/support/help...rlonglimit.htm
if the close is above the SMA, it will enter a bid with a limit order to get long. If it is not filled when the bar closes, it will re-evaluate the condition on the next OBU cycle and send a new order if the condition is true again?
-
Hello Boonfly8,
With the example in the documentation, once the condition is true the order is placed. Once the submission bar closes, if the condition is still true, the order would remain working and would not be cancelled. The order would not be cancelled and no new order would be sent. If the condition is not true the order would be cancelled automatically. No new order would be sent.Chelsea B.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_ChelseaB View PostHello Boonfly8,
With the example in the documentation, once the condition is true the order is placed. Once the submission bar closes, if the condition is still true, the order would remain working and would not be cancelled. The order would not be cancelled and no new order would be sent. If the condition is not true the order would be cancelled automatically. No new order would be sent.
Comment
-
Hello Boonfly8,
I would recommend you debug your script with prints.
Its likely the order is not being filled and is being cancelled after the condition is no longer true.
Print the values of all variables used in the condition that places the entry along with the time, and print the order object from OnOrderUpdate() along with the time.
This will let you know if the order is being cancelled. You can then check the price of the order and see if this is a valid price on a 1 tick chart between the time it was submitted and when it was cancelled.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Waxavi, Today, 02:10 AM
|
0 responses
6 views
0 likes
|
Last Post
by Waxavi
Today, 02:10 AM
|
||
Started by TradeForge, Today, 02:09 AM
|
0 responses
11 views
0 likes
|
Last Post
by TradeForge
Today, 02:09 AM
|
||
Started by Waxavi, Today, 02:00 AM
|
0 responses
2 views
0 likes
|
Last Post
by Waxavi
Today, 02:00 AM
|
||
Started by elirion, Today, 01:36 AM
|
0 responses
4 views
0 likes
|
Last Post
by elirion
Today, 01:36 AM
|
||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
0 responses
5 views
0 likes
|
Last Post Today, 01:30 AM |
Comment