Job finished
Execution time 20 hours
Feedback from customer
I hired Navdeep to help me work on a personal project where my ability with MQL5 was lacking. He completed the job within a few hours and helped me with numerous questions after the handover
Feedback from employee
Happy to help
Specification
Hello,
I have developed a strategy but I'm struggling to write the MQL5 code and it's easier for me to get some help rather than continue struggling.
I will explain the part of the strategy I need help with in basic code but I need help writing this in MQL5 as 1. I can't figure out how to calculate the moving average of a source that isnt OHLC, and 2. I cant think how to store that as an array. I have commented the sections below:
lookback_period = 50 //------ Get RSI Values for all 28 Pairs double audcad = rsi("AUDCAD",lookback_period) double audchf = rsi("AUDCHF",lookback_period) double audjpy = rsi("AUDJPY",lookback_period) double audnzd = rsi("AUDNZD",lookback_period) double audusd = rsi("AUDUSD",lookback_period) double cadchf = rsi("CADCHF",lookback_period) double cadjpy = rsi("CADJPY",lookback_period) double chfjpy = rsi("CHFJPY",lookback_period) double euraud = rsi("EURAUD",lookback_period) double eurcad = rsi("EURCAD",lookback_period) double eurchf = rsi("EURCHF",lookback_period) double eurgbp = rsi("EURGBP",lookback_period) double eurjpy = rsi("EURJPY",lookback_period) double eurnzd = rsi("EURNZD",lookback_period) double eurusd = rsi("EURUSD",lookback_period) double gbpaud = rsi("GBPAUD",lookback_period) double gbpcad = rsi("GBPCAD",lookback_period) double gbpchf = rsi("GBPCHF",lookback_period) double gbpjpy = rsi("GBPJPY",lookback_period) double gbpnzd = rsi("GBPNZD",lookback_period) double gbpusd = rsi("GBPUSD",lookback_period) double nzdcad = rsi("NZDCAD",lookback_period) double nzdchf = rsi("NZDCHF",lookback_period) double nzdjpy = rsi("NZDJPY",lookback_period) double nzdusd = rsi("NZDUSD",lookback_period) double usdcad = rsi("USDCAD",lookback_period) double usdchf = rsi("USDCHF",lookback_period) double usdjpy = rsi("USDJPY",lookback_period) //----- Find Individual Currency Strength double aud = (audcad+audchf+(100-euraud)+(100-gbpaud)+audjpy+audnzd+audusd)/7; double cad = ((100-audcad)+cadchf+(100-eurcad)+(100-gbpcad)+cadjpy+(100-nzdcad)+(100-usdcad))/7; double chf = ((100-audchf)+(100-cadchf)+(100-eurchf)+(100-gbpchf)+chfjpy+(100-nzdchf)+(100-usdchf))/7; double eur = (euraud,eurcad+eurchf+eurgbp+eurjpy+eurnzd+eurusd)/7; double gbp = (gbpaud,gbpcad+gbpchf+(100-eurgbp)+gbpjpy+gbpnzd+gbpusd)/7; double jpy = ((100-audjpy)+(100-cadjpy)+(100-chfjpy),(100-eurjpy)+(100-gbpjpy)+(100-nzdjpy)+(100-usdjpy))/7; double nzd = ((100-audnzd)+nzdcad+nzdchf+(100-eurnzd)+(100-gbpnzd)+nzdjpy+nzdusd)/7; double usd = ((100-audusd)+usdcad+usdchf+(100-eurusd)+(100-gbpusd)+usdjpy+(100-nzdusd))/7; //---- Now I need a function to take one of the individual currency strengths and calculate 2 moving averages, subtracting the smaller moving average from the larger one. The problem is 1. finding the moving average of a source that isnt OHLC, and 2. storing that as an array to be able to identify crossovers etc: int signal(double data_currency) { int signal_output = 0; delta[] = ema(data_currency,50) - ema(data_currency,200) // This needs to be an array so that I can calculate when delta crosses above or below 0. This is the entry criteria if(delta[0] > 0 && delta[1] < 0) //delta crosses above 0 signal_output = 1; if(delta[0] < 0 && delta[1]) > 0 //delta below above 0 signal_output = -1; return(signal_output); }
This should be a simple fix for someone who knows the solution!
Responded
1
Rating
Projects
499
67%
Arbitration
5
40%
/
0%
Overdue
4
1%
Free
Published: 8 codes
2
Rating
Projects
7
29%
Arbitration
0
Overdue
0
Free
Similar orders
Automated trading
70 - 100 USD
Automated trading board that runs 24 x 7 on cryptocurrencies/Forex and as well as copy with all the integrated, etc., along with profit and having no boundary of a minimum investment. I want fully executable file, fully customizable robot not a demo
Mahdy Alpha Scalper.mq5
150+ USD
Product Title: Mahdy Alpha Scalper Overview Mahdy Alpha Scalper is a high-performance, intelligent trading algorithm designed for both XAUUSD (Gold) and major currency pairs like EURUSD. Built on a sophisticated Dynamic Grid Strategy, it adapts to market volatility by calculating entry steps and lot sizes in real-time to maximize recovery and profit. Why Mahdy Alpha Scalper? Proven Performance: Successfully passed
Leonard hamilton
30+ USD
Trading Robot Requirements (MT5 EA – Extra Conservative) Platform: MetaTrader 5 (MT5) Markets: Forex pairs (including USDJPY, GBPJPY, GBPUSD) Gold (XAUUSD) US30 Risk Profile (Very Conservative): Risk 0.25%–0.5% per trade maximum No martingale, no grid, no averaging down One trade per symbol at a time Maximum 1–6 good trades per day Strategy Logic (All Instruments): Automatic support and resistance detection
Fixing mq5 code
30+ USD
Hello, i have a mt5 EA that uses trailing start and distance + BreakEven start and distance. It doesnt work right, what ever number i put, it always starts BE at 50 or 100 points in profit.. and also, EA stops trading if "trend alignment" or "time filter" is OFF and trades remain opened.. EA should continue trading normally until all trades are closed and then shut down for the day.. those needs fixing.. i can pay
Juniardy Meggi Tappi
30+ USD
Juniardy Meggi Tappi please help give for you many that for my wallect trading well my try may traiding forrex please...so i'm say so really thank you mybe just 30 usd
OUR EA
40 - 100 USD
1. General description Name: OUR EA Platform: MetaTrader 5 (MT5) Type: Multi‑symbol, multi‑timeframe, CE‑based trading engine Core indicator: Chandelier Exit (CE), user‑configurable Primary style: Scalping and intraday, with support for other timeframes Trade directions: Long and short Assets: Any (FX, metals, indices, crypto), no hardcoded symbol 2. Inputs (external parameters) General: - Symbol/Timeframe: -
CREATE CLOSE ALL BY P&L MT5 EA
50 - 75 USD
The EA is very simple with just a few parameters to make it lightweight, fast, and above all safe when closing. The EA must close all open positions and cancel all pending orders for the basket when a certain profit or loss is reached, with the trailing profit feature. Capabilities: Closing all open positions and canceling all pending orders for the current symbol or for all symbols. Closing individual order or whole
Fixed alert mt4
40+ USD
I’m looking for an experienced developer to help fix and improve an alert system in a trading project. Tasks Review and fix existing alert logic Ensure alerts work perfectly with no lag or delay Organize and optimize scattered alert code Check for missing files and improve overall structure Suggest and implement necessary improvements Dashboard (Optional but Preferred) Create a dashboard displaying: Brand name
Стажёр MQL4 - автоматизируй реальную торговлю 🚀 Ищем стажёра по MQL4, который хочет быстро учиться и делать работающие советники/индикаторы для реальных проектов. Что от тебя: Базовый MQL4 (понимаешь структуру .mq4, умеешь писать EA/индикаторы). Знание GIT. Готовность принимать фидбек, участвовать в код-ревью и делать рабочие фичи. Интерес к трейдингу - не обязателен, но приветствуется. Что даём: 🚀 Работа над
I have an existing MT5 EA and I am sharing the exact behaviour settings below. I need a NEW custom MT5 Expert Advisor that behaves the SAME WAY as these settings. Platform: MetaTrader 5 Symbol: Gold (XAUUSD) Timeframe: M5 (Trading_TF = 0 means current chart) ======================== INDICATOR & TRADE MODE ======================== - Trade Mode = 2 (both Buy & Sell) - Trading timeframe = Current chart (M5)
Project information
Budget
30+ USD
Deadline
from 1 to 2 day(s)