Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Time In Force

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

    Time In Force

    I'm using Trade Station to activate a trade. Then Ninja takes over and runs the show. The problem I'm having is with the TIF function. Under my position strategy I have it set up as 3 for 3 minutes, but it never cancels the order. If I want to buy the ER2 at a specific price and I don't get filled in 3 minutes I want the order cancelled. I'm not using a pass through command as you can see below.

    FileAppend("c:\program files\ninjatrader 4\AT\order.txt" ,"ER2 12-05,,DAY,BUY,LMT,"+numtostr(Close[0],1)+",,,,,,ER 1 Auto,SIM-101,");

    "ER 1 Auto" position strategy has TIF defined as 3.

    Hope you can help.

    thx

    Z




    #2
    imported post

    Hi Z,

    You have to set the actual order to TIF of 3. Currently you have it set to DAY.


    Ray
    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      Ah yes, silly me. I guess it overrides how you have it defined.



      Thx for your time.



      Z.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      24 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      121 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      179 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      92 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      136 views
      0 likes
      Last Post cmoran13  
      Working...
      X