NinjaTrader Support Forum  

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 06-08-2011, 12:36 AM   #1
IISSG
Junior Member
 
Join Date: Oct 2009
Posts: 20
Thanks: 0
Thanked 0 times in 0 posts
Default Distance away from entry

Hi,
The strategy buys a postion.
If the market moves against the position i would like to place another buy order, but only after the market has gone xxx amount of points (or dollars) in the wrong direction.
How do i code that simple instruction?
IISSG is offline  
Reply With Quote
Old 06-08-2011, 03:13 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
Default

You could for example check the positions progress with GetProfitLoss() and the issue another entry if below your trigger threshold - http://www.ninjatrader.com/support/h...profitloss.htm
NinjaTrader_Bertrand 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
DrawText Fixed Distance Above x Axis dkrumholz Indicator Development 1 05-09-2011 01:44 PM
Distance between EMA and SMA sandman Strategy Development 2 12-28-2010 05:16 PM
lock distance ahead of chart frizshizzle Charting 2 09-09-2010 04:08 PM
BUG: NT7b19 The distance doesn't decrease AlexSTAL Version 7 Beta General Questions & Bug Reports 2 07-27-2010 03:43 AM
Distance to next Pivot? shm000 Strategy Development 0 10-21-2008 12:54 PM


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