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 sjsj2732, Yesterday, 04:31 AM
        0 responses
        24 views
        0 likes
        Last Post sjsj2732  
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        282 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        280 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        130 views
        1 like
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        90 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Working...
        X