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 > Application Technical Support > ATM Strategies (Discretionary Trading)

ATM Strategies (Discretionary Trading) Support for Advanced Trade Management, AutoTrail, AutoBreakeven, Stop Strategy and Simulated Stops etc...

Reply
 
Thread Tools Display Modes
Old 10-17-2007, 03:45 PM   #1
vking
Junior Member
 
Join Date: Sep 2007
Posts: 8
Thanks: 1
Thanked 0 times in 0 posts
Default Need help with strategy based on Simulated stop

Hello,
I am in the process of building an ATM strategy ( either dom or chart based) to achieve this functionality.
This is more around - Simulated Stop strategy in NT
Requirements;
- When a specific price is reached, it should trigger the following events
1 contract - It should be purchased at the trigger price
Stop - 15 ticks(from the entry price)
1 contract - This should be purchased at trigger price - 5 ticks
Stop - 10 ticks(from the entry price)
2 contracts - This should be purchased at trigger price - 10 ticks
stop - 5 ticks from the entry price

Targets;
- If position = 1 contract - Move the stop to BE on +5 ticks
- If position = 2 contracts - Sell contract 1 at +5 ticks, move the second position to BE
- If position = 4 contracts - sell 2 contracts at +5 ticks, move the 2 to BE

Would it be possible to achieve this functionality from NT? If so, would you please help me build this strategy.
PS: Doesn't really matter if it can be fired from Chart or DOM.

I am little bit familiar with the programming language and if there are any pointers to achieve this, I should be able to pick it up as well.

Thanks in advance!!
vking is offline  
Reply With Quote
Old 10-17-2007, 04:02 PM   #2
NinjaTrader_Ryan
NinjaTrader Customer Service
 
NinjaTrader_Ryan's Avatar
 
Join Date: Sep 2006
Location: Denver, CO, USA
Posts: 616
Thanks: 10
Thanked 2 times in 2 posts
Default

Hello:

Thank you for making your first post and joining the Support Forum.

I may need some clarification on your ATM Strategy.

As you have stated...
1 contract - It should be purchased at the trigger price
Stop - 15 ticks(from the entry price)
1 contract - This should be purchased at trigger price - 5 ticks
Stop - 10 ticks(from the entry price)
2 contracts - This should be purchased at trigger price - 10 ticks
stop - 5 ticks from the entry price

What is your initial profit target for these contracts?

Also, you must have your stop loss value for Target 1 must be less than your stop loss value for Target 2.

More information can be found in the help guide at the link below:
http://www.ninjatrader-support.com/H...nStrategy.html

Also, I encourage you to attend our free webinar session tomorrow at Noon US Eastern time covering ATM Strategies. I will be presenting in the room and would be happy to go over this specific example with you. You may attend at the link below:
http://www.ninjatrader.com/webnew/tr...ine_events.htm

Best regards,
NinjaTrader_Ryan is offline  
Reply With Quote
Old 10-17-2007, 04:26 PM   #3
vking
Junior Member
 
Join Date: Sep 2007
Posts: 8
Thanks: 1
Thanked 0 times in 0 posts
Default

Ryan - Thanks for the reply.

My initial targets are listed in the original thread itself. They are basically dependent on the "current position" in the market.

Thanks.

Targets;
- If position = 1 contract - Move the stop to BE on +5 ticks
- If position = 2 contracts - Sell contract 1 at +5 ticks, move the second position to BE
- If position = 4 contracts - sell 2 contracts at +5 ticks, move the 2 to BE
vking is offline  
Reply With Quote
Old 10-17-2007, 04:32 PM   #4
vking
Junior Member
 
Join Date: Sep 2007
Posts: 8
Thanks: 1
Thanked 0 times in 0 posts
Default

To clarify further:

Though it is initiating the simulated stop orders, there is no guarantee that the rest of the contracts are going to be filled. But it is guaranteed that the first order(for 1 contract) is going to be filled as it is filled at market.

For the target price, it should be determied based on whether there are further fills from other subsequent orders( triggered from the first Simulated Stop order) and should determine the target prices accordingly.

Thanks.
vking is offline  
Reply With Quote
Old 10-17-2007, 04:39 PM   #5
NinjaTrader_Ryan
NinjaTrader Customer Service
 
NinjaTrader_Ryan's Avatar
 
Join Date: Sep 2006
Location: Denver, CO, USA
Posts: 616
Thanks: 10
Thanked 2 times in 2 posts
Default

Hi:

Thank you for the clarification.

It is possible to accomplish entering a position using a simulated stop order and then have your profit targets and stop losses placed on screen.

However, with your stops and limits, you must set your initial stop loss for your first target to a value less than your second stop loss value.

Therefore, the specs for your strategy that you sent originally are invalid, meaning you will receive an error if you enter a stop loss value of 15 on your first target and a stop loss of 10 on the second target, that is not possible.

Also, please clarify your profit targets for your first and third targets. What price do you wish to receive a fill for these targets?
NinjaTrader_Ryan is offline  
Reply With Quote
Old 10-17-2007, 04:48 PM   #6
vking
Junior Member
 
Join Date: Sep 2007
Posts: 8
Thanks: 1
Thanked 0 times in 0 posts
Default

Let me clarify further on this.

Let's say I have a simulated stop order at price 800 even.

Contract 1 - should be purchased at 800.0
Stop : 708.5 ( 15 ticks from the entry price)

Contract 2 - Should be purchased at 709.5 ( 5 ticks from the first trigger price)
Stop: 708.5

contract 3&4: Should be purchased at 709 ( 10 ticks from the first trigger price)
Stop; 708.5

Now comes the target portion:
- It is same as I have mentioned. The targets should be decided based on the current market position. If my current market position is only 1 contract, it should just move to BE on entry price+5 ticks
- If the current position is 2, it should sell 1 contract at 800.5 and move the second one to 800( First simulater order)
- If the current position is 4, it should sell 2 contract at 800.5 and move the rest 2 contracts to 800( trigger price).

Hope this clarifies.
vking is offline  
Reply With Quote
Old 10-17-2007, 06:36 PM   #7
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

Unfortunately it is not possible to trigger multiple entry orders at various price levels using our ATM technology. It is possible to program this as a NinjaScript strategy but that will require some programming knowledge.
NinjaTrader_Ray is offline  
Reply With Quote
Old 10-17-2007, 06:47 PM   #8
vking
Junior Member
 
Join Date: Sep 2007
Posts: 8
Thanks: 1
Thanked 0 times in 0 posts
Default

Thx Ray. Would you please point me to any docs on such(similar strategies) using Ninja Scripts which I can use to figure it out.

Anyone else out there who might have built similar strategies in NT?
vking is offline  
Reply With Quote
Old 10-17-2007, 10:48 PM   #9
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

Hi vking,

You can start off by reviewing the SampleAtmStrategy already included in your NinjaTrader. It is in the Strategy category.

In order to understand how the ATM strategy is called and used within NinjaScript these following documents will help: http://www.ninjatrader-support.com/H...trategies.html
http://www.ninjatrader-support.com/H...egyCreate.html

There are a bunch of other ATM strategy related properties and methods you should become familiar with in the Help Guide. You can find the list in the Index of the Help Guide. Most of the properties/methods start with AtmStrategy...() or GetAtmStrategy...().

Good luck.
NinjaTrader_Josh is offline  
Reply With Quote
Old 10-18-2007, 06:27 AM   #10
vking
Junior Member
 
Join Date: Sep 2007
Posts: 8
Thanks: 1
Thanked 0 times in 0 posts
Default

Thx Josh. Appreciate it. Would go through them.
vking 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
Simulated Vol Stop in Strategy Kardinal Automated Trading 4 04-12-2012 02:54 AM
Simulated Stop nightowl ATM Strategies (Discretionary Trading) 14 04-29-2008 09:13 AM
Simulated Stop w/backup ct ATM Strategies (Discretionary Trading) 4 10-04-2007 06:06 AM
Trailing Stop Based on Previous Bar blinker Strategy Development 1 03-15-2007 02:20 AM
Simulated Stop for Entry Only Ouiji Miscellaneous Support 2 02-13-2006 03:37 AM


All times are GMT -6. The time now is 02:44 AM.