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 11-21-2009, 09:42 AM   #1
mjuviler
Member
 
Join Date: May 2008
Posts: 90
Thanks: 1
Thanked 0 times in 0 posts
Default ATM: Picking Up and Managing an ATM Strategy that was Entered (Filled) Via the DOM

Hi,

Is is possible to have a NinjaScript Strategy pick up and mangae an existing position (ATM Strategy) that was entered via the DOM with the mouse.

Basically, I want to enter the order manually (using the mouse) then "turn on" my exit Ninja script strategy where that will move stops, etc based on my logic.

I don't want the Ninja Script Strategy (to enter the trade via ATM). I simply want to manage one that was entered manually.

From the code it is hard to see what function or method I would use to accomplish this.

Thanks....

Mark
mjuviler is offline  
Reply With Quote
Old 11-21-2009, 11:31 AM   #2
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello,

You can move the orders, but the ATM will move them back to where you programmed it to. So functionaly, no you can't.
NinjaTrader_Ben is offline  
Reply With Quote
Old 11-21-2009, 12:30 PM   #3
mjuviler
Member
 
Join Date: May 2008
Posts: 90
Thanks: 1
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_Ben View Post
Hello,

You can move the orders, but the ATM will move them back to where you programmed it to. So functionaly, no you can't.

Ben,

Ok, forget ATM then, what I want to do is:

Basically, I want to enter the order manually (using the mouse) then "turn on" my exit Ninja script strategy where that will move stops, etc based on my logic.

Is this possible in any way with Ninja, I am looking for a solution to this problem of taking over an existing position and managing it until exit.

I need a way upon entering the Ninja Script Strategy of resolving Marketposition == Long or Short then I can place stop oders as I wish.

If you don't know how perhaps you can refer this to someone who might know how to do this. This seems pretty basic.

Thanks....

Mark
mjuviler is offline  
Reply With Quote
Old 11-21-2009, 01:58 PM   #4
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello,

This is not supported, sorry. Manual and Strategy trades are independent.
NinjaTrader_Ben is offline  
Reply With Quote
Old 11-21-2009, 02:09 PM   #5
mjuviler
Member
 
Join Date: May 2008
Posts: 90
Thanks: 1
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_Ben View Post
Hello,

This is not supported, sorry. Manual and Strategy trades are independent.
That is hard to believe. I mean Ninja knows when I am flat or not so why can't my strategy.

Ok, so how is this handled. How does Ray or Derik suggest doing this? With an ATM Strategy that places the order? If so, how do they suggest making the order placement immediate when I have a 2 minute chart. I dont want to wait two minutes for an order entry and I hate to have a multi-series strategy or CalculateBarOnClose=False

I am a Ninja Trader 7 beta tester what is the

"Sync Account Position" setting for in Edit Strategy in Ninja Trader 7. What does that do?

I need a workable way to do this with Ninja Trader, can you provide suggestions for taking an existing position and managing it with Ninja Script in Ninja trader 7 or 6.5?

Thanks....

Mark
mjuviler is offline  
Reply With Quote
Old 11-22-2009, 08:13 AM   #6
mjuviler
Member
 
Join Date: May 2008
Posts: 90
Thanks: 1
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by mjuviler View Post
That is hard to believe. I mean Ninja knows when I am flat or not so why can't my strategy.

Ok, so how is this handled. How does Ray or Derik suggest doing this? With an ATM Strategy that places the order? If so, how do they suggest making the order placement immediate when I have a 2 minute chart. I dont want to wait two minutes for an order entry and I hate to have a multi-series strategy or CalculateBarOnClose=False

I am a Ninja Trader 7 beta tester what is the

"Sync Account Position" setting for in Edit Strategy in Ninja Trader 7. What does that do?

I need a workable way to do this with Ninja Trader, can you provide suggestions for taking an existing position and managing it with Ninja Script in Ninja trader 7 or 6.5?

Thanks....

Mark
Hi again,

Ray or Derik,

Can you respond to this thread and suggest how you would go about accomplishing this, what are my options, how would you do it (ATM, etc).

I am using NT7.

Thanks

Mark
mjuviler is offline  
Reply With Quote
Old 11-22-2009, 08:50 AM   #7
zweistein
Senior Member
 
Join Date: Jan 2009
Posts: 584
Thanks: 2
Thanked 21 times in 12 posts
Default

You can attach a strategy to your order that starts with placing a stop order and that is done as soon as it enters the opposite pos.

example: You are long.
strategy: Will place a stop loss order and move the stop according to your ideas.

as soon as the strategy enters a short position your real postition becomes flat (you were long already) and you are done.

andreas

www.zweisteintrading.eu
zweistein is offline  
Reply With Quote
Old 11-23-2009, 07:27 AM   #8
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

Remember that NinjaScript strategies were never meant to manage manually traded positions. They have their own strategy position which may or may not be in sync with your account position. As you start a strategy if you have "Sync account position" selected, it will try to compensate the account position to your strategy position and will only place live trades through the strategy to your account after a sync has been reached on startup.
NinjaTrader_Josh is offline  
Reply With Quote
Old 11-23-2009, 08:37 AM   #9
Turtle21
Junior Member
 
Join Date: Jul 2009
Posts: 16
Thanks: 0
Thanked 0 times in 0 posts
Default

I've got the same objective -- seems like a pretty basic objective (manually enter trade and then apply an automated exit strategy to the open position). Can this be done?

Rookie question, I know, but I guess it's not as obvious an answer as I had assumed it would be.

Thanks.
Turtle21 is offline  
Reply With Quote
Old 11-23-2009, 08:45 AM   #10
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

Turtle21,

You can use ATM strategies to manage manual trades. NinjaScript strategies are not meant for managing manual entries. There are ways you can get it to do so, but it was not designed for this purpose.
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
Chart Trader: Apply ATM strategy after entry order is filled? cw30000 Charting 7 07-21-2009 01:53 PM
Strategy will not put a ATM Strategy in play when order filled m3power222 Strategy Development 9 06-09-2009 01:13 PM
My procedure not picking up values from my ATM Strategy radford0222 Strategy Development 1 03-02-2009 07:29 AM
Closing ATM strategy in replay filled at price that did not occur. GaryAlbers Automated Trading 1 09-28-2008 12:56 AM
Managing NinjaScript Strategies with ATM daven Suggestions And Feedback 1 09-25-2007 04:05 PM


All times are GMT -6. The time now is 09:25 AM.