Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Mfe / mae

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

    Mfe / mae

    Hey guys,

    Im trying to further adjust my strategy to alter its buy and sell position using ETD & MAE. So if I understand correctly, ETD is the amount the price rose to and the difference from your exit. And MAE, the entry vs how much the price went in the opposite direction.

    ie Your long and you entry @ 90, it drops to 85c then it rises to 99, then you sell at 97, your ETD is the 2c difference. And the MAE is the 5c difference.

    So I used the following code to gather this information.

    //MFE
    PrintWithTimeStamp("" + Instrument.FullName + " MFE - " + Performance.AllTrades.TradesPerformance.Currency.A vgMfe.ToString() + "\r\nPoints: " + Performance.AllTrades.TradesPerformance.Points.Avg Mfe.ToString());

    //MAE
    PrintWithTimeStamp(
    "" + Instrument.FullName + " MAE - " +
    Performance.AllTrades.TradesPerformance.Currency.A vgMae.ToString() + "\r\nPoints: " + Performance.AllTrades.TradesPerformance.Points.Avg Mae.ToString());

    //ETD
    PrintWithTimeStamp(
    "" + Instrument.FullName + " ETD - " + Performance.AllTrades.TradesPerformance.Currency.A vgEtd.ToString() + "\r\nPoints: " + Performance.AllTrades.TradesPerformance.Points.Avg Etd.ToString());

    The strategy returned the following results.

    $AUDJPY MFE - 249.999999999986
    Points: 249.999999999986


    $AUDJPY MAE - 75.0000000000028
    Points: 75.0000000000028


    $AUDJPY ETD - 0
    Points: 0


    Does anyone have in-site into how I can adjust these values, to work with an entry and exit strategy, I tried points and also currency. I'm just unsure why it has returned the values. Any help in better understanding this information would be much appreciated. I was hoping for like 2 ticks etc, so I can make alterations to my entry and exit targets.
    Attached Files

    #2
    Sorry, double post, the code has some weird space in it that is not there when I typed it, or attempted to edit it. So if you copy paste just fix the spaces.

    Comment


      #3
      Hello happypappy,

      Thank you for your post.

      I will need to test this on my end, but for the Points values you can use Instrument.MasterInstrument.Round2TickSize(double price): http://www.ninjatrader.com/support/h...trument_ro.htm

      Comment


        #4
        Perfect thank you this will help me.

        Comment


          #5
          I worked out yesterday that the points are returned against the amount of units entered, so in the screenshot I had 5000 units which was ~250 points. So 250 / 5000 = 00.05 ticks. This allows me to adjust me entry and exit.

          Thanks for your help.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          558 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          324 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          545 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          547 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X