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 > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 09-16-2010, 12:14 PM   #1
brooksrimes
Senior Member
 
Join Date: Apr 2005
Location: , ,
Posts: 114
Thanks: 0
Thanked 0 times in 0 posts
Default ATM, Auto Trail & Ninja Script

Below is from page 122 in the NT 6.5 Help Guide. Are there functions in Ninja Script for accomplishing Auto Trail (both live and backtesting)?

Thx.

"Auto Trail Example #1:
The image is saying:
"Once our trade has 4 ticks in profit, move our stop loss back 6 ticks and move it up
for every additional 2 ticks in profit."
Average Entry - 1000 Long (SP Emini contract)
The market moves up to 1001 and the auto trail is triggered (Average Entry + Profit Trigger
= 1000 + 4 ticks = 1001) and the stop loss is adjusted to 999.50 (1001 - Stop Loss = 1001
- 6 ticks = 999.50). For every additional 2 ticks (Frequency of 2 ticks) the stop loss will be
adjusted by 2 ticks."
brooksrimes is offline  
Reply With Quote
Old 09-16-2010, 12:40 PM   #2
NinjaTrader_Tim
NinjaTrader Customer Service
 
NinjaTrader_Tim's Avatar
 
Join Date: Nov 2009
Location: Denver, CO
Posts: 1,424
Thanks: 0
Thanked 3 times in 3 posts
Default

Hi brooksrimes,

You can use SetTrailStop()
http://www.ninjatrader-support.com/H...l?SetTrailStop
NinjaTrader_Tim 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
ATM in ninja script strategy lukaskuta Strategy Development 156 06-28-2011 07:31 AM
My auto trail / auto BE strategy?? pa188 ATM Strategies (Discretionary Trading) 3 03-17-2009 07:53 AM
Ninja Script Strategy executions & superdom display suitguy1 Automated Trading 2 07-25-2008 10:14 AM
Ninja Script Strategy executions & superdom display suitguy1 Automated Trading 1 07-25-2008 09:49 AM
ATM Strategy with Ninja Script suitguy1 Automated Trading 1 07-22-2008 01:34 PM


All times are GMT -6. The time now is 03:33 AM.