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 > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 03-02-2007, 05:40 AM   #1
Oli
Member
 
Join Date: Feb 2007
Location: , ,
Posts: 83
Thanks: 0
Thanked 0 times in 0 posts
Post imported post

I want a Strategy that uses only profit targets no stops.

Bascially my ATI scripts in eSignal submit all the buy/sell order and handle bailing out. But I would like something internal to NT that puts in profit target orders (I would like to pass a Strategy name as parm with orders).

Something realy simple like:

Sell half position at 1 point profit

Sell remainder position at 2 point profit

I thought I could use the "wizard" to come up with something but it is proving more difficult than simply adding code to my scripts!

Any suggestions or even better sample Ninja scripts would be appreciated...
Oli is offline  
Reply With Quote
Old 03-02-2007, 06:39 AM   #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
Post imported post

Did you try just adding SetProfitTarget()?

Ray
NinjaTrader_Ray is offline  
Reply With Quote
Old 03-05-2007, 11:42 PM   #3
Oli
Member
 
Join Date: Feb 2007
Location: , ,
Posts: 83
Thanks: 0
Thanked 0 times in 0 posts
Post imported post

Is that an eSignal DLL function?
Oli 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


All times are GMT -6. The time now is 07:57 AM.