Print history trades with an MFE and MAE info on chart

MQL4 Indicators Scripts

Specification

I need a simple indicator, resp. script which would display list of all closed historical trades and for each trade displays also maximum displayed values of potential profit (MFE) and potential loss (MAE) information on chart.

This could be displayed similiar as ZigZag indicator, but plus text label at top/bottom of each peak.


For displaying historical trades I already have script, which could be customized.

I need to add there a section which goes in simple loop through the ALL bars between closed trade and calculates/identifies TOP and BOTTOM bar.

Then print points/pips difference from a trade entry price above/below bar.

Please see black sections on below picture.

ToDo


Contact me for details.


More info about calculation:


Example.

I have a DAX trade opened a BUY at 12:00 at price 12700

Assume we are on let's say 5 min chart and prices goes like:

BAR at time 12.05  - High 12715, Low  12690

BAR at time 12.10  - High 12723, Low  12701

BAR at time 12.15  - High 12726, Low  12709

BAR at time 12.20  - High 12718, Low  12695

BAR at time 12.25  - High 12710, Low  12672

BAR at time 12.30  - High 12694, Low  12681

BAR at time 12.35  - High 12702, Low  12685

I close this example trade at time 12.37 at the price 12703


In above scenario, a MFE (or TOP in case we are long, or we can say a how much points a position was in it's profit) would be a high price at time 12.15 when price was 12726. So in this case above this bar I would like to print number 26 (as a result of 12726 - 12700).


Similar MAE (or if we are long then BOTTOM or a price when was a maximal open loss) would be at a time 12.25 when low price was 12672. So in this case below this bar I would like to print number -28 (as a result of 12672 - 12700).


Do you understand what I mean?


Thanks,

Tomas

Tom

Responded

1
Developer 1
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
2
Developer 2
Rating
(8)
Projects
18
17%
Arbitration
3
67% / 0%
Overdue
0
Free
3
Developer 3
Rating
(586)
Projects
1046
49%
Arbitration
39
28% / 41%
Overdue
49
5%
Free
4
Developer 4
Rating
(7)
Projects
8
50%
Arbitration
0
Overdue
0
Free
5
Developer 5
Rating
(319)
Projects
339
71%
Arbitration
4
100% / 0%
Overdue
1
0%
Working
Similar orders
Seeking an expert in LSTM (Long Short-Term Memory) for MT4 to implement the most cutting-edge and advanced form of LSTM with full feature integration. The ideal candidate will possess extensive experience in leveraging LSTM technology within MT4, ensuring optimal performance and profitability. Join us in revolutionizing trading strategies with state-of-the-art LSTM algorithms tailored for MT4. Add a zig zag to the
Please note that my budget is for both mt4 and mt5 platforms The EA should have 1. An option that I can change it parameters, that's the period, method and application 2. The EA should sell when on every bullish candle that closes under the MA 3. The EA should buy on every bearish candle that forms Above the EA. It's should close trades on reverse cross. I mean when it's in a buy trade and crosses the MA for a sell
I have working MT4 and MT5 example program code using pipes via importing kernell32.dll in MT5 to receive transactional messages sent from another MT4 instance running. Most of the time it works fine. But intermittently I get an ‘Access violation’ error generated showing in the Experts tab of MT5. It fails to read the message sent from MT4 and does not trap the error. Also, when I try it on a different VPS computer -
Looking for experienced developer to fix and check the indicator functions in my EA. Main problem to fix is that there is option to open new trade at close of previous which doen't always work on one of the indicators - depending on user inputs. Also if trading is disabled using AutoTrading button, then re enabled the EA waits for new signal to start, but it needs to place trade immediately according to current
I have an EA which trades with XAUUSD with a grid system, and I need to add a few features: 1.- The EA works with an indicator and open many trades as a grid system. I need the EA to open JUST 1 TRADE INMEDIATELY WHEN THE TREND SHOWS. 2.- I need the EA to keep that trade open until it reaches TP or the reverse signal shows. The EA has already the 'close if reverse signal' parameter. 3.- I need to create a parameter
I wanted to convert from mt4 to Ctrader Cbot and you want a particular option/feature to work as a bot. A nd can you update this point: the option to check the account name/number on which the CBOT will work, if the wrong account number is given the CBOT should not work
Can you convert TradingView Harmonic pattern indicator to ninjatrader8? and I don not need statistic table with numbers, just indicators pattern, PRZ box (predicted prize box) etc. just no tables with numbers
I need a developer that can fix a indicator i have, I have a table that looks at emas and display bullish/bearish, I have spy on the table but its not always updating and need help fixing this I have this table and the first 6 rows looks at the chart symbol and if price is above 12 ema it will sows bullish under the 5/12 ema coulmn and bullish if its above, and same under the 34/50 colmun, if price is below 50 ema
I need a developer that can fix a indicator i have, I have a table that looks at emas and display bullish/bearish, I have spy on the table but its not always updating and need help fixing this I have this table and the first 6 rows looks at the chart symbol and if price is above 12 ema it will sows bullish under the 5/12 ema coulmn and bullish if its above, and same under the 34/50 colmun, if price is below 50 ema
I need an EA in MT5 that trades based on volatility with market orders. It must check and correctly process possible errors in trading operations. Entry and exits based on volatility threshold

Project information

Budget
40+ USD
VAT (21%): 8.4 USD
Total: 48.4 USD
For the developer
36 USD
Deadline
from 0 to 1 day(s)