Getting MAE MFE for Each Trade
-
I was wondering if anyone has been able to get the MAE MFE values for each trades once they are close. MAE- Highest price (or profit) after trade opened. MFE, lowest price (or profit) after trade opened.
If it is possible to get the highest price from Trade Open Time to Trade Close Time, calculating MAE MFE is possible using Open Price.
Using highest price (time based) and lowest price (time based) might work on onTrade tab after position closes. Does anyone have any better idea? I am not even sure about the accuracy of highest lowest block (time period). can anyone verify how these blocks work and any solution to get these values.
-
I don't think you can, but as it's running you could save the value to a variable as it changes
-
@jstap I thought about saving the values into variable as higher prices were reached. But, if you have multiple positions it won't work unless you use arrays to store ticket id and highest price and retrieve those at position exit. No idea how array works.
Simpler concept would be to use the timestamp from Opening Time and Closing Time in OnTrade tab under Positon Closed block and get the highest and lowest price From Opening TIme to Closing Time. This concept will work.
Problem is the block highest/lowest price (time period) seem to have bug or I am doing something wrong. The block below is supposed to give the highest and lowest price between the time specified. Looks like it is giving highest and lowest price of the candle. If you set the timeframe to H4, it will give high and low of H4 candle which is weird. I wonder if anyone has been using this block or have some workaround.
. -
The market properties high/low are just for what the market has done not the trade.
-
@jstap I am not talking about trade. Above block is simply a test block and has no relationship with any trade block. Shouldnt this block be giving high low during particular time period? It appears that this block does not work as it gives high low of candle, not high low of specified period. Otherwise this block could be quite useful in many scenarios. So i was checking if anyone has used this block successfully
-
I have thought about how you can achieve this, this link should work https://fxdreema.com/shared/uHhUtl2Oc, I haven't tested but all have been used before. Add to your project, put in a comment, and on backtest you should get the correct value.
-
@jstap
Thanks for the advice. I tried to use the block you sent me. It still gives high and low of the current candle in any timeframe. I use MT5, this block has bug imo. It totally ignores the Start hour and End hour.

-
Add a share link to look at
-
You will have to go to the main page and ask admin, I have never noticed it doing this before: https://fxdreema.com/shared/92nwIRzuc
-
@jstap I will try that but fxdreema admin tend to ignore support emails even when there are bugs in their code. Not sure this should be the case in paid products. The way I guess it might work in this current situation is to do this:
Close Time Var - Open Time Var = Unix Time Difference/60 = Minutes between order open and closed.
Then use the Highest and Lowest (candle period) to get the highest and lowest prices in that candle period. I havent tested it properly as the market is closed but so far it appear to be working fine. Number of minutes bar calculated works correctly.
What do you think, could this work without issue.
-
@s00071609 The admis definitely replies if you paid a full subscription. Sadly he can take up to 3 weeks to do it.
