Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help Guide Error: Definition of Profit in Points

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help Guide Error: Definition of Profit in Points

    Profit and Loss Calculation Modes:

    https://ninjatrader.com/support/help...culation+modes

    The definition of profit in points is documented with this definition:

    Code:
    (1 for Long position, or -1 for short position) * Quantity * (Exit Price - Entry Price - Entry Commission - Exit Commission) / (Exit Rate * Point Value) / Lot Size
    But this is not correct.

    This is only an issue with the documentation. NinjaTrader itself appears to report the correct values.

    I'm not quite sure what the correct equation should be to properly accommodate forex, but this one is clearly not correct.

    Example:

    Here's the output from a simple trade where I EnterLong on one bar and ExitLong on the next:

    Code:
    100: 11/8/2018 4:00:00 PM:  instrument='ES 06-19' entryPrice=2731.5 exitPrice=2748 quantity=1 marketPosition=Long entryTime='11/5/2018 4:00:00 PM' entryTime='11/6/2018 4:00:00 PM' profitCurrency=821.36
    100: 11/8/2018 4:00:00 PM:  LONG-PROFIT-POINTS  : 16.4272
    100: 11/8/2018 4:00:00 PM:  LONG-PROFIT-PERCENT : 0.00601398498993227
    100: 11/8/2018 4:00:00 PM:  LONG-PROFIT-CURRENCY: 821.36
    100: 11/8/2018 4:00:00 PM:  LONG-PROFIT-TICKS   : 65.7088
    This is for 1 ES futures contract where:
    • TickSize = 0.25
    • PointValue = 50
    • Commission per contract = 1.82

    Profit in Points is 16.4272.

    For a long trade in a futures instrument, the above equation should be more like:

    Code:
    = Quantity * ((ExitPrice - EntryPrice) - (EntryCommPerUnit + ExitCommPerUnit) / PointValue)
    = 1 * (2748-2731.5) - (2 * 1.82) / 50
    = 16.4272
    For a short trade then, I think it would be something like:

    Code:
    Quantity * (-1 * (ExitPrice - EntryPrice) - (EntryCommPerUnit + ExitCommPerUnit) / PointValue)
    Last edited by Steve L; 06-19-2019, 05:23 PM.
    Steve L
    NinjaTrader Ecosystem Vendor - Ninja Mastery

Latest Posts

Collapse

Topics Statistics Last Post
Started by usazencort, Today, 01:16 AM
0 responses
1 view
0 likes
Last Post usazencort  
Started by kaywai, 09-01-2023, 08:44 PM
5 responses
603 views
0 likes
Last Post NinjaTrader_Jason  
Started by xiinteractive, 04-09-2024, 08:08 AM
6 responses
22 views
0 likes
Last Post xiinteractive  
Started by Pattontje, Yesterday, 02:10 PM
2 responses
21 views
0 likes
Last Post Pattontje  
Started by flybuzz, 04-21-2024, 04:07 PM
17 responses
230 views
0 likes
Last Post TradingLoss  
Working...
X