Optimize My MT5 Indicator – 5 Progressive Versions (Heiken Ashi Removal, Speed Layers, Full Signal Support)

MQL5 Indicadores

Trabajo finalizado

Plazo de ejecución 4 días
Comentario del Cliente
Very very very skilled coder

Tarea técnica

📋 Project Description:

I have a MetaTrader 5 custom indicator named NIKA_Backtest.mq5 , which calculates a smoothed signal using linear regression and EMA smoothing.

This indicator is used in Strategy Tester alongside RunwiseFX, and its logic depends entirely on the crossing of two values:

  • The white line → linear regression result ( IndicBuffer[] )

  • The orange line → smoothed EMA of the white line ( SmaIndicBuffer[] )

The strategy does not need live tick updates. Signals only matter after a bar closes, so all logic should be optimized to run only on closed bars ( i ≥ 1 ).


🎯 Project Goal:

Deliver 5 progressively optimized versions of the indicator, each with faster execution in Strategy Tester — while always preserving signal accuracy and compatibility with RunwiseFX's CaptureBuffer(...) .


✅ All Versions Must:

  • Use only closed-bar values ( i >= 1 , skip i == 0 )

  • Keep both white and orange lines fully functional

  • Output buffers must be usable in RunwiseFX

  • Compile cleanly in MetaEditor (MT5 2024+)

  • Avoid ObjectCreate() unless specifically required


🔢 Versions to Deliver:

Version 1 – Inline Heiken Ashi (No Visual Cleanup Yet)

  • Remove iCustom(..., "Heiken_Ashi")

  • Re-implement Heiken Ashi calculations inline inside OnCalculate()

  • Keep all existing chart visuals and rectangles

  • Runs once per closed candle only

💡 Why faster: Removes nested iCustom() calls and reduces inter-indicator overhead


Version 2 – Heiken Ashi Inline + Visual Cleanup

  • Based on Version 1

  • Remove all ObjectCreate() , rectangles, and subwindow visuals

  • Only keep the two signal plots: white and orange lines

💡 Why faster: Skips all chart object creation and rendering logic that slows Strategy Tester


Version 3 – Light Optimization

  • Based on Version 2

  • Replace iMA() with inline EMA formula (no indicator handles)

  • Remove redundant array resizing and avoid excessive memory use

  • Simplify smoothing logic while maintaining output

💡 Why faster: Eliminates overhead from iMA() handles and reduces RAM operations


Version 4 – Heavy Optimization

  • Based on Version 3

  • Fully implement prev_calculated logic

  • Process only new bars ( start = prev_calculated > 1 ? prev_calculated - 1 : 1 )

  • Optimize all loop ranges and minimize floating-point operations

💡 Why faster: Avoids recalculating old bars; dramatically speeds up long backtests


Version 5 – Absolute Max-Speed with Full Signal Logic

  • Remove Heiken Ashi completely

  • Remove all non-essential buffers and visuals

  • Use only:

    • IndicBuffer[] (white)

    • SmaIndicBuffer[] (orange)

  • Keep prev_calculated and inlined math

  • Use DRAW_NONE if needed to disable visual overhead

  • 100% RunwiseFX-compatible

💡 Why fastest: Only the critical logic is calculated, with minimal code per bar and near-zero memory waste — optimized for 100k+ combinations and 128-thread servers


EXTRA: (SEE SCREENSHOT)

PLEASE NOTE THAT VERSION 4 and 5
I want an extra version with different price scale

So 1 version 4. with old scale
1 version with new scale
Same for version 5


Archivos adjuntos:

JPG
Untitled.jpg
57.1 Kb

Han respondido

1
Desarrollador 1
Evaluación
(7)
Proyectos
6
33%
Arbitraje
7
0% / 71%
Caducado
0
Libre
2
Desarrollador 2
Evaluación
(7)
Proyectos
8
13%
Arbitraje
3
0% / 67%
Caducado
2
25%
Libre
3
Desarrollador 3
Evaluación
(81)
Proyectos
93
31%
Arbitraje
9
22% / 56%
Caducado
5
5%
Trabaja
4
Desarrollador 4
Evaluación
(574)
Proyectos
945
47%
Arbitraje
309
58% / 27%
Caducado
125
13%
Libre
5
Desarrollador 5
Evaluación
(137)
Proyectos
220
52%
Arbitraje
22
23% / 55%
Caducado
64
29%
Libre
Ha publicado: 3 ejemplos
6
Desarrollador 6
Evaluación
(298)
Proyectos
478
40%
Arbitraje
105
40% / 24%
Caducado
82
17%
Trabajando
Ha publicado: 2 ejemplos
7
Desarrollador 7
Evaluación
(1)
Proyectos
2
0%
Arbitraje
1
0% / 100%
Caducado
1
50%
Libre
Ha publicado: 4 ejemplos
Solicitudes similares
TumiiFX 30 - 20000 USD
1. Use two EMAs: 20 and 50. If EMA 20 is above EMA 50 → uptrend (look for buys) If EMA 20 is below EMA 50 → downtrend (look for sells) 2. Wait for a pullback into the area between the two EMAs. - For buys: price must touch or move between EMA 20 and EMA 50 during the last few candles. - For stils: same idea, but in a downtrend. 3. Entry signal: Buy: a bullish engulfing candle in an uptrend after the pullback
I am looking for an experienced MQL4 developer to build a professional High-Frequency Trading (HFT) / Low-Latency Expert Advisor for MetaTrader 4 (MT4) . The EA will be deployed on an IC Markets Live account and should be optimized for the fastest possible execution using a low-latency VPS located in LD4 or NY4 . The primary instruments will be US30 and XAUUSD (Gold) . The goal is to create an EA capable of
A robot 50+ USD
HIGH-FREQUENCY M5/M15 CONCURRENT ENTRY SNIPER import time class HighFrequencySniper: def __init__(self): self.target_profit = 25.00 # Targeted Delta Move self.max_execution_time = 3600 # 1 Hour Sandbox (Seconds) self.lot_allocation = "CALIBRATED_TO_RISK" def execute_hft_scan(self, current_price, m5_rsi, m15_order_block): print(f"[SCANNING] Current Kernel Metric: ${current_price:.2f
I need a trading bot, please i need this project urgently and when messaing me kindly send me samples of past works and dont forget i need the project to be done as soon as possible
A lightweight MT5 chart overlay displaying total floating P&L, average entry price, combined lot size, and current symbol exposure as a percentage of account balance, all updating in real time with color-coded profit/loss indicators, delivered with clean object-oriented source code and no DLL dependencies
QUIERO CONSEGUIR EL CODIGO FUENTE DE ESTE INDICADOR QUE ME GUSTA MUCHO TAMBIEN TIENE EL NOMBRE DE ET BANDS O ENTRY EXIT TIMING . no se los componentes pero estas son las imagenes. que mejor lo describen
I am looking to convert my existing TradingView Pine Script (v5) strategy into an MQL5 Expert Advisor (EA) for MetaTrader 5. Strategy Details: Asset: Gold (XAUUSD) Timeframe: 15-minute Strategy Logic: The strategy is based on a breakout concept. Anchor Candle: The base calculation starts from the Specified Candle Entry Window: The EA should only look for entries As Per Indicator Risk Management: The strategy
I want to find a Developer to perform this work and settle payments in this Application. I undertake not to communicate with Applicants anywhere else except this Application, including third-party messengers, personal correspondence or emails. I understand that violators will be banned from publishing Orders in the Freelance
Akram boushaba 30 - 500 USD
مرحبا كيف حالكم انا اكرم مهتم بالتداول احاول ان اصمم برنامج روبوت قادر على التداول من تلقاء نفسه من يمكنه ان يساعدني او يعلمني كيف استطيع فهل ذلك وسأكون ممتناً له وشكرا لكم
MetaTrader In-App Trade Alerts An existing MetaTrader terminal is already running on my side, but its account is kept hidden for privacy reasons. I need a specialist to wire up native in-app notifications so that every time a position is opened or later closed I see an immediate pop-up inside the platform—no emails or SMS, just the built-in alert window (and the usual MT push to mobile if that comes automatically

Información sobre el proyecto

Presupuesto
100+ USD