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 05-04-2009, 11:21 AM   #1
tjendra
Senior Member
 
Join Date: Mar 2009
Posts: 220
Thanks: 0
Thanked 0 times in 0 posts
Default Stop Loss and Profit Target on Stocks

I am trying to set the stop loss and profit target on a stock using

SetProfitTarget("", CalculationMode.Ticks, ProfitTarget);
SetStopLoss(
"", CalculationMode.Ticks, StopLoss, false);

But I can't figure out how to set it.

E.g. A stock is now trading at $90.00, I want to set profit target at $91.50 which is $1.50 from entry, and stoploss at $89.00 which is $1.00 from entry. I want to use the exact dollar amount rather than using %. It seem pretty straighforward using Ticks to do that on Futures. But how should I program the above functions to do that for stocks?

tjendra is offline  
Reply With Quote
Old 05-04-2009, 11:32 AM   #2
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

tjendra,

It is the exact same thing as it was on futures. The tick size of a stock is generally $0.01. For $1 do 100 ticks. For $1.50 do 150.
NinjaTrader_Josh is offline  
Reply With Quote
Old 05-04-2009, 12:09 PM   #3
tjendra
Senior Member
 
Join Date: Mar 2009
Posts: 220
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_Josh View Post
tjendra,

It is the exact same thing as it was on futures. The tick size of a stock is generally $0.01. For $1 do 100 ticks. For $1.50 do 150.
Thanks Josh, that's worked!
tjendra 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
Question on stop loss and profit target j4068 ATM Strategies (Discretionary Trading) 1 11-14-2008 07:28 AM
Print stop loss and profit target. Czarek Strategy Development 8 08-25-2008 11:44 PM
Profit Target and Stop Loss not honored pjwinner Strategy Analyzer 6 11-30-2007 09:45 AM
Stop Loss - profit target settings deanldavis475 Miscellaneous Support 1 11-26-2007 07:31 AM
Default stop loss and profit target as GTC equitydealer General Programming 4 06-18-2007 11:31 PM


All times are GMT -6. The time now is 01:23 PM.