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 linkcou, Today, 07:01 AM
|
2 responses
16 views
0 likes
|
Last Post
by bltdavid
Today, 08:25 AM
|
||
Started by jaypelle3, Today, 08:25 AM
|
0 responses
1 view
0 likes
|
Last Post
by jaypelle3
Today, 08:25 AM
|
||
Started by jaypelle3, Today, 08:22 AM
|
0 responses
2 views
0 likes
|
Last Post
by jaypelle3
Today, 08:22 AM
|
||
Started by Atticus20, Today, 07:27 AM
|
1 response
14 views
0 likes
|
Last Post
by balltrader
Today, 08:15 AM
|
||
Started by ninza33, Today, 07:16 AM
|
2 responses
9 views
0 likes
|
Last Post Today, 08:05 AM |
Comment