![]() |
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
|
|||||||
| 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. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Mar 2009
Posts: 220
Thanks: 0
Thanked 0 times in 0 posts
|
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? |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
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.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Mar 2009
Posts: 220
Thanks: 0
Thanked 0 times in 0 posts
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |