NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 12-05-2005, 03:35 AM   #1
Zardoz
Junior Member
 
Join Date: Mar 2005
Location: , ,
Posts: 20
Thanks: 0
Thanked 0 times in 0 posts
Post imported post

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



Zardoz is offline  
Reply With Quote
Old 12-05-2005, 03:46 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Post imported post

Hi Z,

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


Ray
NinjaTrader_Ray is offline  
Reply With Quote
Old 12-05-2005, 06:48 AM   #3
Zardoz
Junior Member
 
Join Date: Mar 2005
Location: , ,
Posts: 20
Thanks: 0
Thanked 0 times in 0 posts
Post imported post

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



Thx for your time.



Z.
Zardoz is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 07:27 PM.