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

Tâche terminée

Temps d'exécution 1 jour
Commentaires de l'employé
Great customer, clear specs, prompt communication, +
Commentaires du client
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.

Spécifications



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".



Répondu

1
Développeur 1
Évaluation
(636)
Projets
1008
47%
Arbitrage
33
36% / 36%
En retard
99
10%
Travail
Publié : 6 codes
2
Développeur 2
Évaluation
(270)
Projets
285
55%
Arbitrage
0
En retard
5
2%
Gratuit
3
Développeur 3
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Travail
4
Développeur 4
Évaluation
(2)
Projets
1
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
5
Développeur 5
Évaluation
(1)
Projets
2
0%
Arbitrage
2
50% / 50%
En retard
0
Gratuit
Commandes similaires
I am looking for an experienced MQL5 developer and trader to create a non-repainting BUY/SELL indicator for MT5, designed for scalping on the M5 and M15 timeframes, with a focus on high-quality trading signals. Requirements: Clear and reliable BUY/SELL signals. Non-repainting signals confirmed on closed candles. High-quality entries with minimal false signals. Suitable for scalping, especially Gold (XAUUSD). Popup
PROJECT: Automatic Gold and Forex Trading Robot for MetaTrader 5 (MQL5) I want a fully automated Expert Advisor (EA) for MetaTrader 5 that can analyze the market and automatically open, manage and close trades on Gold and selected Forex currency pairs. 1. TRADING INSTRUMENTS - Gold: XAUUSD - Forex: EURUSD, GBPUSD and USDJPY, subject to broker availability. - Allow the user to enable or disable each trading symbol. -
Hello, I want to create a custom Expert Advisor (EA) for MetaTrader 5 based on 3 main confirmations: Market Structure & Price Action: Identify high time-frame trend direction (HL/LH). Chart Pattern: Detect classic continuous/reversal patterns (e.g. Cup and Handle, Double Bottom/Top) on trading timeframe. Volume Profile (PoC): Confirm entry when price breaks/retests the Point of Control (PoC) level. Risk Management &
I am looking for a highly skilled trading strategist and MQL5 developer with genuine experience in researching, designing, testing, and implementing systematic trading strategies. My primary interest is XAUUSD (Gold), although proven experience with other financial markets is also welcome. I am not looking for someone who simply converts trading rules into code. I want to identify a professional who understands
We’re looking for an investment partner to help fund AegisGoldAIPro , an algorithmic trading platform being developed for MetaTrader 5, initially focused on gold. We’re building a modular system that combines market-structure analysis with planned AI-assisted decision support, risk controls, and automated execution. What we are building is not just a basic trading robots that depend on only one indicator or strategy
Looking for a Complete Forex & Gold Signal System — Telegram Automation + Performance Tracking I’m looking for a complete automated trading signal solution for Forex pairs, including EUR/USD, GBP/USD and others, as well as gold (XAU/USD). Requirements: • An average of 2–3 quality signals per day across the selected instruments. Quality matters more than generating signals just to meet a quota. • A high win rate
I need a robot that will grow small accounts to bigger amounts like this one in this link, https://youtu.be/d38pMbJihew?si=3NeIOVyrlwDr4X_o. Please click the link and watch how this EA grow small accounts. Then create a robot like that. I will test it on demo first then if it does what i want, i will take it. Please it must be simply to use. It must set targets, for example, once it reaches $500 profit, it must
Here is a professional, detailed requirements specification draft for your MQL5 freelance order based on your prompt: ​ Strategy Objective: Develop an automated Expert Advisor (EA) featuring a 1:3 Risk-to-Reward ratio optimized for a small starting budget. ​ Core Trading Logic: ​Execute automatic Buy and Sell trades using high-probability entry signals. ​Target a strict 90% theoretical win-rate structure through
i want to fix my gold martingale bot MT5. RSI 14 ENTRY 30 BUY 70 SELL Lot 0.02 0.04 0.07 TP 150 for all SL 90 30 30 once total daily profit is 200$ stop trading stop trading once 2 consecutives total losses stop trading if spread exceeded 30 and between hour 15 & 17 PM Move SL to breakeven point once the profit exceeded 50 from from breakeven thanks
MarketMind Breakout Pro XAUUSD H1 — Donchian Breakout EA Project type: Personal EA development and backtesting Platform: MetaTrader 5 Instrument: XAUUSD Timeframe: H1 Strategy: Donchian Channel breakout with EMA 200 Project overview This project evaluates a Donchian breakout trading strategy for XAUUSD on the H1 timeframe. The system uses channel-based breakout conditions and an EMA 200 trend filter. Historical

Informations sur le projet

Budget
90+ USD
Délais
de 1 à 3 jour(s)