Show repainting of 1 buffer of a custom indicator on past bars and on a live chart (mql4)

Job finished

Execution time 1 day
Feedback from customer
Will work with him again: the programmer was patient, invested in the process, only made correct remarks, and delivered on time, within specifications (and >). Pleasure to work with.
Feedback from employee
Great customer, clear specs, prompt communication, +

Specification



TLDR: add 1 buffer that displays the historical values of 1 buffer of a custom indicator, 
both historically (as if it ran in real time from left to right of the chart), as in real time


Don't bid if you are in doubt about how to do this.


1) Intro:
When you are not sure if an indicator is repainting or not (changing its past values as new bars arrive), a neat little trick would be in MT4 to open: a 1-minute chart, put your custom indicator on it with your desired settings, and then, open the Navigator window, click on Indicators, click on Trend, then drag the indicator "Moving Average" into the separate window at the bottom of the chart: on top of the custom indicator you want to check for repainting, before releasing the left mouse button. Then when you release that button, in the Moving Average pop-up box, you give in the following settings: Period: 1, Shift: 0, MA method: Simple, Apply to: First Indicator's Data. This will be the most effective on an M1 chart, because it produces the most bars in the shortest amount of time. The SMA(1,"custom indicator") will chart a line that gives a historical snapshot of where the repainting indicator was in the past, on the close of the bar, effectively showing how it repaints.

2) Problem:
I have a custom indicator in a separate window, for which I want to see the "historic repainting", but without having to use the procedure described above in 1). So an extra buffer needs to be added to the mql4 code. When I drop the new indicator on the chart, I want to see how it repainted in the past, for all the bars the initial indicator is calculated on. However, it also needs to work in real time, so as new bars arrive on the chart over time, the new buffer on the required indicator shows where the original repainting indicator was at the close of the bar. 

3) Technical:
It should work on all instruments, all timeframes, all bar types in MT4, not just in the past, but also in real time. 

4) Criterion for success:
The new buffer in the proposed solution should have the same values as the SMA(1) described above in 1). The original indicator (with multiple buffers) works fine, both historically and in real time. Without array-out-of-range issues, and compatible with the latest standards in mql4 for Metatrader 4. 

The buffer in the attached code that needs to be evaluated is called "ExtMapBuffer2": the one with the label: "Bars to previous extreme".



Responded

1
Developer 1
Rating
(630)
Projects
994
47%
Arbitration
33
36% / 36%
Overdue
98
10%
Free
Published: 6 codes
2
Developer 2
Rating
(265)
Projects
280
55%
Arbitration
0
Overdue
5
2%
Free
3
Developer 3
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Working
4
Developer 4
Rating
(2)
Projects
1
0%
Arbitration
1
0% / 100%
Overdue
0
Free
5
Developer 5
Rating
(1)
Projects
2
0%
Arbitration
2
50% / 50%
Overdue
0
Free
Similar orders
I am looking for an experienced developer to create a custom Expert Advisor (EA) for trading. The developer should have strong knowledge of MT4/MT5, strategy logic, indicators, risk management, and backtesting. Experience in building reliable and professional trading robots is preferred. Please contact me if you have done similar projects before. 9817724000
5.20buy-20.5sell 50 - 1000 USD
⸻ 🧠 Professional AI Prompt (Clear English Version) Act as a professional algorithmic trading engineer with deep expertise in developing automated trading systems for TradingView and MetaTrader. You have strong knowledge of market behavior, trend analysis, and risk management. Your task is to design a fully automated trading strategy based on the following requirements: ⸻ 🎯 Entry Conditions: • Open a BUY trade
I need a skilled MQL5 developer to build a fully functional Expert Advisor (EA) for MetaTrader 5 based on a simple but strict trading strategy. The EA will use EMA 50/200 trend detection combined with breakout and retest logic for entries. It must operate only during London and New York sessions and include solid risk management (fixed % risk, SL/TP, trade limits, and basic protection rules). APPLY ONLY IF YOU HAVE
VWAP BB Sniper EA Quantum VWAP Scalper SmartFlow FX Bot Institutional Edge EA 🧠 PRODUCT OVERVIEW VWAP + Bollinger Bands Auto Trading System A high-precision forex scalping bot designed to capture institutional price movements using: VWAP (fair value tracking) Bollinger Bands (volatility & entry timing) 👉 Built for fast, consistent intraday profits
Hello traders, I have Quantum queen v3.52, which is the latest version, available for $500 only. The price on the platform is around $1800, but I am offering it for a much lower price for serious buyers. Details: Product: Quantum queen Version: v3.52 Price: $500 Condition: Serious buyers only
EA for prop firms 30 - 500 USD
Hi, I am looking to purchase a MT5 EA that can show consistent profitability 5% each month with drawdown less than 9%. I am not ready to build a new one from scratch as i do not have the strategy in mind yet so i do not want to take the risk of building one but not sure if it works. Only apply if you have an existing proven and tested EA that can sell to me together with the source code. The Ea is for prop firm even
Early Killer EA 30+ USD
It must have automated stop loss. Something that can end poverty and kill the market early.It must take the trades for me whenever I start it it must work on tradeport ea
I WANT TO CONVERT MY INDICATOR TO ROBOT, BUT I DONT HAVE THE SOURCE CODE , THE PROGRAMMER WILL DEVELOP THE SOURCE CODE FOR THE JOB. THE STRAGY IS SIMPLE , THE ROBOT WILL EXECUTE A TRADE WHEN THE SIGNAL FROM THE INDICATOR APPEARS. BUY SIGNAL IS WHEN THE ARROW APPEAS ON THE LOWER ZONE ( SUPPORT ZONE) SELL SIGNAL WHEN THE ARROW APPEARS ON THE UPPER ZONE ( RESISTANCE ZONE).THE ROBOT WILL HAVE THE FOLLWING FEATURES (1)
CONVERT MQL4 ROBOT TO MQL5 Solana I have robot SOLANA i want to change my robot for MQL4 ROBOT TO MQL5 AND also change the name of the robot..i need it with the source code
requirements 1. A expert which can make a bridge between trading view and MT4 /MT5 My strategy which i work upon in trading view, that autobot system should buy, sell and take profit in MT4/MT5

Project information

Budget
90+ USD
Deadline
from 1 to 3 day(s)