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
I want a copy bot that copy’s for all my accounts I want 1 master 5 slave accounts and it Copy’s the accounts from the master based of the lot size of the account So % wise £1000 account 0.1 £100 account 0.01 trades And as the lot size goes up it amplifies it to the other account and vice versa so the % is always the same based of the Trade of the master and vice versa if the slave account is higher than the master
NinjaTrader 8 custom indicator
150+ USD
hello great developer i want a NinjaTrader 8 custom indicator (not a full bot) • It implements the Jackson–Dalton Trading System • Includes Z1/Z2/Z3 zones, VWAP + deviation, and session volume profile (POC/VAH/VAL) • Has day-type classification and configurable alerts • Primary instruments are BTC/USDT and ETH/USDT • Full source code and documentation are required • Semi-automation and futures support are optional /
1. Goal I want a MetaTrader 5 Expert Advisor that trades a simple Supertrend trend‑following idea, but with professional‑grade risk management and filters. It should be robust enough for real money on instruments like XAUUSD and GBP pairs, using small, consistent risk per trade rather than martingale or grid. 2. Strategy Logic Indicators (I will supply the .mq5 files if needed): Supertrend (ATR‑based), with
EA Name: Stochastic EA (MT5)
30 - 150 USD
EA Name: Stochastic EA (MT5) Timeframe • Works only on M1, M5, M15, M30 ⸻ Indicators & Settings 1. Stochastic Oscillator • %K Period: 14 (editable) • %D Period: 3 (editable) • Slowing: 3 (editable) • Buy Level: 10 (editable via input Buy Level) • Sell Level: 90 (editable via input Sell Level) 2. Simple Moving Average (SMA) • Period: 100 (editable via input SMA Period) • Acts as a hard filter for trades: • Buy
Hi developers, I need someone to help me create a simple EA with my indicators and trading plan... I will give you all parameters and you help me create... 2 moving averages, one candle pattern
Please a need a very good expert for this jou I want to create 2 robot one a trade manager Perfect — here’s a clean, professional order description you can post directly to an EA freelancer (MQL5). I’ve written it so it’s clear, serious, and attractive to skilled developers 👌 MQL5 Trade Manager EA – Development Request I am looking for an experienced MQL5 developer to build a robust Trade Manager Expert Advisor for
I am looking for a bot that has been created and tested and confirmed profitable in a live market for Gold. The bot must be profitable and have a low drawdown. The developer will send a demo which I can test for myself. I am looking for more of a partnership with an experienced developer
The view EA
50 - 60 USD
A multi currency fundamentals + orderflow + price action toolkit. Plot real-time fundamental news outbreaks sourced from Twitter feeds or financial news websites (e.g., Financial Juice). Automatically plot news events as vertical lines directly on the chart for instant visual context. Display economic release time as a live clock on the chart, synchronized with the event. Price Action & Orderflow Analysis Accurate
Henryy999
30 - 3000 USD
The Ai robot must help me with forex and I don't have money soon can the Ai robot give me some money and I will pay it back if the Ai robot does a good job making me rich
CASH MONEY ELITE
30+ USD
I would like to create my own robot to actually help my family with their financial problems and also learn how to use money wisely and I have a. Experience with trading and I can be able to own my own robot for long-term
Project information
Budget
30+ USD
Deadline
from 1 to 2 day(s)