Announcement
Collapse
No announcement yet.
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.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
56 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
133 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
73 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment