![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Oct 2009
Posts: 20
Thanks: 0
Thanked 0 times in 0 posts
|
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? |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
|
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
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |