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 charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          61 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          148 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          162 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          98 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          286 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X