Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Accessing the MFE value of a single trade

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

    Accessing the MFE value of a single trade

    Hello,

    Is it possible to know the MFE value of a single trade through TradesPerformance or similar?

    #2
    Hello guillembm,

    Thanks for your post.

    Yes, the MAE and MFE are available on a per trade basis in the "Trades" tab of the account performance in NinjaTrader7.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Sorry, I meant programmatically in a strategy

      Comment


        #4
        Hello guillembm,

        Thanks for your reply.

        Not directly but for the MFE per trade you can create a routine to do this by checking the MAX() Values of the Highs over the period of the trade (for a long) and then compare that to the entry price of the trade. For a short trade check the MIN() of the lows again against the entry price.
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          I understand, but the problem is that I am developing a new optimizer and I need to retrieve this data. Can I conclude that it cannot be done in the optimizer?

          Comment


            #6
            Hello guillembm,

            In NT7 this does not seem to be possible. For this concept NT8 would allow you to access this data. The newer genetic optimizer type has syntax in it to collect SystemPerformance which you could then refer to the MFE values in that object. In NT7 the performance of the optimizer is handled differently and does not use the performance collections a strategy would internally. You would otherwise need to manually calculate any performance values based on the available data in the optimizer type.

            I look forward to being of further assistance.
            JesseNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by cre8able, 02-11-2023, 05:43 PM
            3 responses
            236 views
            0 likes
            Last Post rhubear
            by rhubear
             
            Started by frslvr, 04-11-2024, 07:26 AM
            8 responses
            113 views
            1 like
            Last Post NinjaTrader_BrandonH  
            Started by stafe, 04-15-2024, 08:34 PM
            10 responses
            46 views
            0 likes
            Last Post stafe
            by stafe
             
            Started by rocketman7, Today, 09:41 AM
            3 responses
            11 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by traderqz, Today, 09:44 AM
            2 responses
            10 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Working...
            X