NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 05-01-2012, 05:37 PM   #1
Spiderbird
Member
 
Join Date: Apr 2012
Posts: 67
Thanks: 27
Thanked 8 times in 7 posts
Question Trailing Limit if Touched

Hi all,

Interactive Brokers has a feature I use often called "Trailing Limit if Touched" and "Trailing Market if Touched". The details are here:

http://www.interactivebrokers.com/en...mitTouched.php
http://www.interactivebrokers.com/en...ketTouched.php

Working with Ninjascript, I know that there are methods for trailing stops, but not for trailing buys as indicated above.

Another forum thread has suggested to put a stoplimitorder in, and just keep on adjusting the stops OnBarUpdate.

Is this the workaround for this, or is there another way to achieve a trailing buy order?

Yours,
Spider
Spiderbird is offline  
Reply With Quote
Old 05-02-2012, 03:27 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,414
Thanks: 252
Thanked 977 times in 960 posts
Default

Hi Spider, correct you would need to monitor current price and adjust your entry as needed to provide the trailing part.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 05-08-2012, 02:00 PM   #3
Spiderbird
Member
 
Join Date: Apr 2012
Posts: 67
Thanks: 27
Thanked 8 times in 7 posts
Default

Hi Bertrand,

Would you recommend particular forum threads or help files to read up on in order to achieve a "Trailing Limit When Touched" order? I have a couple in mind, but would really like to get your direction.

Thanks in advance for your time,
Spider
Spiderbird is offline  
Reply With Quote
Old 05-08-2012, 03:23 PM   #4
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hi Spiderbird,

This reference sample is good for this. It can help with technique to check last traded price compared to entry price and then dynamically adjusts the price of an order.
http://www.ninjatrader.com/support/f...ead.php?t=3222
NinjaTrader_RyanM is offline  
Reply With Quote
The following user says thank you to NinjaTrader_RyanM for this post:
Old 06-07-2012, 02:38 PM   #5
Spiderbird
Member
 
Join Date: Apr 2012
Posts: 67
Thanks: 27
Thanked 8 times in 7 posts
Default

Thanks Ryan! Didn't get a chance to reply back quickly, but appreciate the assistance.

- Spider
Spiderbird is offline  
Reply With Quote
The following user says thank you to Spiderbird for this post:
Reply

Tags
buy, order, trailing

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit Order and Trailing Stop tiger45 Strategy Development 2 11-16-2010 08:56 AM
Chase-if-Touched Radical SuperDOM and other Order Entry Windows 3 04-01-2010 04:44 PM
Trailing Stop Limit order atrader General Programming 3 09-14-2009 04:04 PM
Market If Touched tradenoob ATM Strategies (Discretionary Trading) 4 05-11-2009 05:58 PM
Market if Touched and Limit if Touched orders eminimethods_com Miscellaneous Support 7 07-18-2006 04:35 AM


All times are GMT -6. The time now is 08:06 AM.