Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

need support

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    need support

    Hi NT,aaaaaa
    Last edited by Jakub; 07-19-2024, 11:08 AM.

    #2
    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.

    Comment


      #3
      Hi Emily, can I send you an email with chart example? Thank you

      Comment


        #4
        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
        577 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        334 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        553 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X