Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Get price
Collapse
X
-
Get price
Hello, I am looking for a way to code a long limit order where the price I want to set is a certain number of ticks (set by a variable) off the close of the previous bar. Can you direct me to any instructional material that can help me ... thank you!
Tags: None
-
hi, another question ...
I'm evaluating a specific condition set associated with the current bar and when the conditions are met, I want to paint a diamond below the bar AND place a limit order several tics above the low of that same bar. My problem is that the triangle does print on the current bar, as expected, BUT my limit order executes on the next bar. I want to order to execute on the same bar as the one the diamond was printed beneath. I'm using a 6 range chart, and I've set CalculateOnBarClose to false. Below is a section of the code that's in question ... appreciate your help!
{
DrawDiamond("My Tag" + CurrentBar, true, 0, Low[0] - (10 * TickSize), Color.Black);
EnterLongLimit(Low[0] + (5 * TickSize));
}
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
581 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
338 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
552 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment