![]() |
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
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Oct 2008
Posts: 24
Thanks: 0
Thanked 0 times in 0 posts
|
Hello,
I have a followind formula which tells me the actual stop loss in ticks: Code:
SetStopLoss("", CalculationMode.Ticks, sL, false);
SetProfitTarget("", CalculationMode.Ticks, PT);
EnterShort(DefaultQuantity, "");
Print("Stop loss: " + sL + " ticks.");
I want it to make it work like this: Code:
Print("Sold at 502.5, stop: 14 ticks at 501.1, profit 40 ticks at 506.5.");
Please help. |
|
|
|
|
|
#2 |
|
Member
Join Date: Jan 2009
Posts: 89
Thanks: 0
Thanked 1 time in 1 post
|
Position.AvgPrice gives you the average entry price (or the exact price if all contracts were executed at the same entry price)
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Stop limit order and Stop Market Order... | Fritztx | SuperDOM and other Order Entry Windows | 4 | 05-17-2009 02:03 PM |
| Stop Limit with Price Improvement | daven | ATM Strategies (Discretionary Trading) | 22 | 03-10-2009 10:07 AM |
| globex stop limit vs stop order | ct | Miscellaneous Support | 3 | 04-04-2008 12:21 PM |
| double stop limit before stop order? | ct | Strategy Development | 8 | 01-02-2008 02:59 AM |
| Submit Limit Entry Order and Stop Loss Order at same time? | aspTrader | Miscellaneous Support | 2 | 10-04-2006 02:40 AM |