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 04-17-2008, 02:10 PM   #1
nico_p
Member
 
Join Date: Mar 2008
Posts: 51
Thanks: 0
Thanked 0 times in 0 posts
Default Atm strategy/ stop priority

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)
Attached Images
File Type: png AtmStrategy.png (39.5 KB, 14 views)
nico_p is offline  
Reply With Quote
Old 04-17-2008, 03:02 PM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

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.
NinjaTrader_Ray is offline  
Reply With Quote
Old 04-17-2008, 03:23 PM   #3
nico_p
Member
 
Join Date: Mar 2008
Posts: 51
Thanks: 0
Thanked 0 times in 0 posts
Default

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
nico_p is offline  
Reply With Quote
Old 04-17-2008, 03:35 PM   #4
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

An ATM strategy will always require a stop loss...That is different than a stop strategy which is basically a trailing stop/auto breakeven.
NinjaTrader_Ray is offline  
Reply With Quote
Old 04-17-2008, 03:52 PM   #5
nico_p
Member
 
Join Date: Mar 2008
Posts: 51
Thanks: 0
Thanked 0 times in 0 posts
Default

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
nico_p is offline  
Reply With Quote
Old 04-18-2008, 12:56 AM   #6
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

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.
NinjaTrader_Josh 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
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


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