![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Mar 2008
Posts: 51
Thanks: 0
Thanked 0 times in 0 posts
|
Hi,
Lets say i have a ATM strategy defined with 1 stop/ 1 target, attached there is a stop strategy ( see screenshot, per example) Now, this ATM is triggered by a Strategy, within this strategy I have a few conditions that call the "AtmStrategyChangeStopTarget" syntax so Stops are modified Can you please tell me how NT handles the Stop orders, does one Stop strategy have priority over the other ? If both strategies work independent of each other, can show me how to make sure a stop loss order will never be increased ( in case the AtmStrategyChangeStopTarget price would be worse then the existing stoploss) |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Both would work in parallel thus if you want to control the price via your NinjaScript strategy, do not attach a stop strategy to the ATM strategy.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Mar 2008
Posts: 51
Thanks: 0
Thanked 0 times in 0 posts
|
Ray,
Thanks for the quick reply, as always I can see not attaching the stoploss order to the ATM Strategy would make thing easier, but 1 of the main reasons I choose to use the ATM option to submit stop/target orders is that my strategy would stay alive after a connection loss, so not attaching the stop/target orders to the ATM strategy is not an option for me therefore i need a logic in my strategy that prevents the stoploss to be modified worse then the existing one Is there a way to accomplish this ? Nico |
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
An ATM strategy will always require a stop loss...That is different than a stop strategy which is basically a trailing stop/auto breakeven.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Member
Join Date: Mar 2008
Posts: 51
Thanks: 0
Thanked 0 times in 0 posts
|
yes I know, sorry, my typo, I put it wrong in my previous post
Should have said stop strategy instead of ......"not attaching the stoploss order " anyway, I need this Strategy attached, as I want the strategy to pick up and adjust orders after a connection loss Nico |
|
|
|
|
|
#6 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
I think you can try using GetAtmStrategyStopTargetOrderStatus(). The array it returns may have the average fill price be your stop price when it is in a working state. I have not confirmed this, but I think it is worth a shot.
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Going from a Stop Loss to a Trailing Stop within a strategy | Sidhartha | Strategy Development | 28 | 03-24-2009 03:11 PM |
| Stop strategy from running | jlm0@infionline.net | Strategy Development | 1 | 03-13-2008 10:58 AM |
| How to Remove Stop Strategy? | momentom | ATM Strategies (Discretionary Trading) | 13 | 03-04-2008 06:19 AM |
| Setting processor priority higher for NT | JangoFolly | Strategy Analyzer | 4 | 10-31-2007 02:18 PM |
| Stop strategy | gdargento | Miscellaneous Support | 1 | 01-07-2005 07:10 AM |