Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Scriptstrategies - reset for data?

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

    #16
    Hello tonynt,

    Thank you for your response.

    Koganam is on the right track there. Do you in fact set the IOrder objects to null once the order is filled?

    Comment


      #17
      Hello,

      thank your for your reply.

      I don´t know what or how to do. Can you please post me the line?

      Thank you!
      Tony

      Originally posted by NinjaTrader_PatrickH View Post
      Hello tonynt,

      Thank you for your response.

      Koganam is on the right track there. Do you in fact set the IOrder objects to null once the order is filled?

      Comment


        #18
        Hello tonynt,

        Thank you for your patience.

        An example taken from the following link is listed below: http://www.ninjatrader.com/support/h...rderupdate.htm
        Code:
        protected override void OnOrderUpdate(IOrder order)
        {
            if (entryOrder != null && entryOrder == order)
            {
                 Print(order.ToString());
                if (order.OrderState == OrderState.Cancelled)
                 {
                      // Do something here
                      entryOrder = null;
                 }
            }
        }

        Comment


          #19
          Thank you for your reply.

          I have examined in the meantime and let me please describe the problem more accurate:

          My strategies work fine with FDAX AND 6xx (curreny-futures) AND forex-pairs!!!

          But they don´t work with ES, YM, TF and NQ.

          I simply found out with changing backcolor when enabling the strategy. The backcoloring appears correctly with FDAX, 6E, $USD.......... but not with ES, TF.....So the strategy and its conditions will not work when not "accepted by the chart".

          (Datafeed for futures is demo CQG. datafeed forex is fxcm)

          What might be the reason for this please? (strategy is the same for all instruments mentioned!)

          Thank you
          Tony
          Last edited by tonynt; 08-05-2014, 03:01 PM. Reason: translating error and addiitonal information

          Comment


            #20
            Hello tonynt,

            Thank you for your response.

            Can you send me your log and trace files so I may look into this matter further?

            You can do this by going to the Control Center-> Help-> Mail to Support. Please reference this thread in the body of the e-mail: http://www.ninjatrader.com/support/f...ad.php?t=67836

            Comment


              #21
              Hello Patrick,

              thank you for your support. I have sent the files. (please let me know if it worked and you got it). The strategies I´m working fine are "a1L5Fn" and "a1S5Fn" but with problems for YM, TF, NQ.

              You guys are so great! Thank you for your support.
              (But please don´t answer me there are error-messages in the log. The strategies work 100% for other instruments, so the error messages of some indicators or other strategies will not be the reason)

              Thank you
              Tony
              Last edited by tonynt; 08-06-2014, 04:19 AM. Reason: Typing error

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by NullPointStrategies, Yesterday, 05:17 AM
              0 responses
              61 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              134 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              75 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              45 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              50 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X