Print history trades with an MFE and MAE info on chart

MQL4 Indicadores Sripts

Tarea técnica

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

Han respondido

1
Desarrollador 1
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
2
Desarrollador 2
Evaluación
(9)
Proyectos
19
16%
Arbitraje
3
67% / 0%
Caducado
0
Libre
3
Desarrollador 3
Evaluación
(588)
Proyectos
1063
50%
Arbitraje
39
28% / 41%
Caducado
49
5%
Trabaja
Ha publicado: 1 artículo, 8 ejemplos
4
Desarrollador 4
Evaluación
(7)
Proyectos
8
50%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 1 ejemplo
5
Desarrollador 5
Evaluación
(468)
Proyectos
486
75%
Arbitraje
6
67% / 17%
Caducado
0
Trabaja
Solicitudes similares
attached is an nt8 indicator i would like modifications to. this will not be simple. once you review the indicator you will see it prints arrows and dots. the arrows print after the dots stop forming. i am using default settings, on the instrument es, using ninza renko 8:4 i want the arrow to be placed on the first dot. i do not want the arrow to just be backpainted into the past much like a swing indicator or
We are looking for an experienced TradingView / Technical Analysis expert who can suggest and build the best combination of indicators for a profitable and structured trading strategy. This is not about random indicator stacking. We need someone who understands market structure, confirmation logic, risk management, and strategy optimization. The goal is to create a clean, high-probability setup with minimal false
Indicator 100+ USD
Does anyone know what indicator this is on the image because I'm looking for something like this but just a bit more sensitive. Speaking about the diamonds all the rest is irrelevant
Hello . Hello I already have an indicator on TradingView written in Pine Script. I need some modifications and fixes for the existing indicator. The indicator sometimes gives wrong signals and I want to improve it. I will provide the Pine Script source code. The developer should check the code, fix the problems, and adjust the logic if needed
DO NOT RESPOND TO WORK WITH ANY AI. ( I CAN ALSO DO THAT ) NEED REAL DEVELOPING SKILL Hedge Add-On Rules for Existing EA Core Idea SL becomes hypothetical (virtual) for the initial basket and for the hedge basket . When price hits the virtual SL level , EA does not close the losing trades. Instead, EA opens one hedge basket in the opposite direction. Original basket direction Hedge basket direction (opposite) Inputs
Kindly see details below BUY ALERT 1. Supertrend turns Bullish 2. On this candle , or the last 10, BBStops is Bearish 3. On this candle , or the last 10, price was < or = MA1 4. Instrument is in trend (STEP MA1 and STEP MA 2 are both Bullish) 5. Distance in pips between Lowest price during last time BBstop was Bearish, and the value of Step MA 1 at last bearish candle of Step MA1
EA requirements and necessary correction to be done . The EA monitors the PROFIT of open positions and turns ON or OFF the ALGO TRADING accordingly. By PROFIT I mean the SUM of profit + commission + swap. The EA will have two strategies, the INITIAL and the SECONDARY. Each one of them will be selectable by the user in the EA inputs. Let me explain here how the EA will operate: 1. INITIAL strategy: ·
Hi I have a simple task (hopefully) I have a custom strategy that I built with the help of Claude Anthropic - everything is finished and I zipped it with power shell but when importing it NT8 gives me the error message that the file was made from an older, incompatible version or not a NinjaScript. My folder structure is correct as far I can see so I don't know what the issues is and it's costing me too much to go
Subject: Development of Ultra-High Precision Confluence Indicator - M1 Binary Options (Non-Repaint) ​ Hello, I am looking for a Senior MQL5 Developer to create a custom "Surgical Precision" indicator for MetaTrader 5, specifically optimized for 1-minute (M1) Binary Options trading. The system must integrate three distinct layers of algorithmic analysis. ​ 1. Core Logic: Triple-Layer Confluence ​The signal (Call/Put)
Hello, I have an MQ4 indicator that works with a specific strategy. I want to modify some aspects and convert the file to MQ5. It's simple and won't take much effort or time for someone experienced in this field. Ideally, the person undertaking this task should be familiar with the MX2Trading software, as I will be using it to transfer the signals from the indicator to the trading platform

Información sobre el proyecto

Presupuesto
40+ USD
Plazo límite de ejecución
de 0 a 1 día(s)