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 Tim-c, Today, 03:54 AM
            0 responses
            3 views
            0 likes
            Last Post Tim-c
            by Tim-c
             
            Started by FrancisMorro, Today, 03:24 AM
            0 responses
            2 views
            0 likes
            Last Post FrancisMorro  
            Started by Segwin, 05-07-2018, 02:15 PM
            10 responses
            1,771 views
            0 likes
            Last Post Leafcutter  
            Started by Rapine Heihei, 04-23-2024, 07:51 PM
            2 responses
            31 views
            0 likes
            Last Post Max238
            by Max238
             
            Started by Shansen, 08-30-2019, 10:18 PM
            24 responses
            945 views
            0 likes
            Last Post spwizard  
            Working...
            X