Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
need support
Collapse
X
-
Hello Jakub,
Thank you for your post.
You mentioned you have level 1 and level 2 as pre-set values. Correct me if I am wrong, but my understanding is if the current bar's price only touches level 1 you do not want anything to happen. It sounds like you are looking to set up a condition that checks if the price touches level 2, and then level 1, and you want the code inside of the condition to be executed at that point.
This could be done using a bool variable to check first if level 2 has been touched, and then setting that bool to true. Next, you can set a new condition that checks if the bool is true and if level 1 has been touched. I would be glad to create a code snippet to demonstrate this, but would like some clarification; by "touched" do you mean if the price has crossed above or crossed below the pre-set levels? If you are able to provide an example that would be helpful.
I look forward to your clarification.
-
Hello Jakub,
Thank you for your reply.
Certainly; please feel free to email support[AT]ninjatrader[DOT]com. Please include "ATTN Emily" in the subject line along with a link to this forum thread in the body of the email so your request is routed to me.
I look forward to assisting you further.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
558 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 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
545 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment