Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Wizard

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

    #16
    For Patrick and Koganam (and michi08)

    Hi all....

    Isn't there a way, using the wizard, to set Variable0 upon execution of the order, which will remain true after the exit of that order?

    Like:

    If:
    MA1 > MA2;
    && Variable0 = 0; //which it does by default

    EnterLong;
    Variable0=1;

    Now the conditions necessary to execute another order are no longer valid.

    Wouldn't that work?

    -V

    Comment


      #17
      Originally posted by Aurum View Post
      Hi all....

      Isn't there a way, using the wizard, to set Variable0 upon execution of the order, which will remain true after the exit of that order?

      Like:

      If:
      MA1 > MA2;
      && Variable0 = 0; //which it does by default

      EnterLong;
      Variable0=1;

      Now the conditions necessary to execute another order are no longer valid.

      Wouldn't that work?

      -V
      Can someone from NinjaTrader respond of that question.

      Thank you

      Comment


        #18
        Originally posted by Aurum View Post
        Hi all....

        Isn't there a way, using the wizard, to set Variable0 upon execution of the order, which will remain true after the exit of that order?

        Like:

        If:
        MA1 > MA2;
        && Variable0 = 0; //which it does by default

        EnterLong;
        Variable0=1;

        Now the conditions necessary to execute another order are no longer valid.

        Wouldn't that work?

        -V
        Certainly a workable approach to give you exactly one trade for the duration of the chart.

        You now then have to figure out how to reset your variable, so that new trades may be taken. I suppose some kind of time filter might be viable.

        As I said, I do not really wish to explore the convolutions that might be necessary to use the wizard to perform this particular scenario: there is just so much better control by manually coding the specifications, especially when one starts to enter with LimitOrders, which one really should.

        Comment


          #19
          Hello Aurum and michi08,

          Thank you for your posts.

          There is no option to perform actions on executions in the Strategy Wizard. This would need to be developed after unlocking the code. You can look into OnExecution for more information: http://www.ninjatrader.com/support/h...nexecution.htm

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          646 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          367 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          107 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          569 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          573 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X