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 not working right
Collapse
X
-
EnterLongLimit not working right
EnterLongLimit is not placing the limit order at the right location and getting filled right away. Please see the screenshot. I intend to place the limit order at the drawn line. Printing to output window shows the correct limit price going in as a parameter so wondering what I'm doing wrong. Please help. Btw, the same issue is true for EnterShortLimit as well. Thank you.Tags: None
-
I had the code shown on the picture but here it is:
Code:if (_enterLong ) { limitOrderPrice = High[1] + (100 * TickSize); Print("Entry limit long: " + limitOrderPrice); Draw.HorizontalLine(this, "limitLng" + CurrentBar, false, limitOrderPrice, Brushes.Magenta, DashStyleHelper.Solid, 1); EnterLongLimit(0, true, 1, limitOrderPrice, LongPos); }
Comment
-
Hello singjay,
From the given detials it would not be clear what the problem is. I would suggest to extract that part of your code and make a simple test strategy that submits one order in realtime to see if you get the same result. If so attach that script so that we can see the total code being used and where it is being called from.
JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by geddyisodin, 04-25-2024, 05:20 AM
|
8 responses
58 views
0 likes
|
Last Post Yesterday, 10:45 AM | ||
Started by halgo_boulder, 04-20-2024, 08:44 AM
|
2 responses
21 views
0 likes
|
Last Post Today, 09:41 AM | ||
Started by mishhh, 05-25-2010, 08:54 AM
|
19 responses
6,189 views
0 likes
|
Last Post
by rene69851
Today, 09:29 AM
|
||
Started by gwenael, Today, 09:29 AM
|
0 responses
5 views
0 likes
|
Last Post
by gwenael
Today, 09:29 AM
|
||
Started by Karado58, 11-26-2012, 02:57 PM
|
8 responses
14,830 views
0 likes
|
Last Post Today, 09:09 AM |
Comment