![]() |
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
|
|||||||
| ATM Strategies (Discretionary Trading) Support for Advanced Trade Management, AutoTrail, AutoBreakeven, Stop Strategy and Simulated Stops etc... |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Dec 2007
Posts: 310
Thanks: 0
Thanked 5 times in 3 posts
|
GetProfitLoss() does not have a PerformanceUnit.Ticks parameter. I would like to track running profit on a tick basis, do I have to do it based by deriving ticks from PerformanceUnit.Points ? Is there a generic way to do that calculation so that it works on any security?
Last edited by monpere; 03-16-2008 at 06:14 PM.
|
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
There is no PerformanceUnit.Ticks right now. You will have to roll your own calculations. Use TickSize and Instrument.MasterInstrument.Pointvalue to do your math.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Dec 2007
Posts: 310
Thanks: 0
Thanked 5 times in 3 posts
|
Will there be PerformanceUnit.Ticks in the future? because you cannot calculate it using Instrument.MasterInstrument.Pointvalue without knowing the number of ticks per point, and that's different for each instrument. I don't want to have to code instrument names in my strategy. This must have been an oversight in your original design.
|
|
|
|
|
|
#4 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
>> Will there be PerformanceUnit.Ticks in the future?
Unfortunately there is no ETA yet.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
How about?
Total Ticks = Total Points / TickSize
Ray
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| v6.5.0.4 BETA Position.GetProfitLoss/Position.GetProfitLoss method fault | Aussie2 | General Programming | 1 | 12-25-2007 11:25 PM |
| Position.GetProfitLoss(Close[0], PerformanceUnit.Points) problems | scriabinop23 | Strategy Development | 2 | 05-18-2007 12:22 PM |