Changing an existing EA

MQL4 Experts

Job finished

Execution time 2 hours
Feedback from customer
Hope to make business to you soon
Feedback from employee
Great customer. Thank you.

Specification

Hi,i need to make a change on the martingale function that I already have. Basically, I want to make a restriction for the martingale. I know that a WHEN function doesn't exists on MQ4, so I tried to do something like this:
if(SelectLastOrder() && OrderProfit() < 0 && ((Ask - Bid * myPoint) <= MaxSpread) && _current_martingale_level < MM_Martingale_MaxLevel) { 
if(OrderType()==OP_BUY)
if (iCustom(NULL,PERIOD_M1,"F",0,0)>F_buy)
BuyMartingale(); 
else
if (iCustom(NULL,PERIOD_M1,"F",0,0)<F_sell)
SellMartingale();

The martingale was working properly until I made the changes in red.

Where F is an indicator.

however if the F indicator doesn't have the right value, the EA forgets to make the martingale afterwards...


Responded

1
Developer 1
Rating
(332)
Projects
485
40%
Arbitration
82
11% / 63%
Overdue
77
16%
Free
Published: 1 code
2
Developer 2
Rating
(361)
Projects
630
72%
Arbitration
14
43% / 7%
Overdue
28
4%
Free
Published: 9 codes
3
Developer 3
Rating
(3)
Projects
8
13%
Arbitration
10
10% / 70%
Overdue
2
25%
Free
Similar orders
I am looking for someone to build me a modular auto trader in Sierra chart and an Innie builder so that I can replicate my current Algas that I already have built. I've sent examples below can you please let me know how much you would charge me. I'm pretty good at building the signals myself but I do not know how to build the ocos order entry and I'm trying to get quotes and go with the person who seems they can help
i need price action and candle logic understand programmer need for this job... first understand logic and interested please message .... first understand logic and interested please message .... 2 types of hedge entry conditions: 1 is candle based 1- when i start point ea hh candle buy entry, after ll made 2- below the previous candle hedge sell order 3- if market goes again hh, if sell order profit book again
Ea which is based on the price returning to the open or close of a 1-minute candle or zone of candles. panel on chart need too have buttons : trainding on/off close all close profit add buy stop add buy limit add sell stop add sell limit ( all to existing setups) calculating profit/loss for a single open setup and in total in account currency calculating profit/loss for a single open setup and in total in percentage
Hi, I’m looking for an experienced MQL5/MT4 developer to work on a trading BOT project. I currently have an MT4 demo environment with IC Markets for testing, but the complete strategy specifications have not yet been provided. I’d like you to first review the available project/BOT information and let me know what you would need to configure, develop, and properly forward-test it. The testing should cover entries
PEACE BOT 30+ USD
#property version "2.10" #property description "Chizzy Trend Rider - HFM-ready (hedging/netting safe)" #include <Trade/Trade.mqh> CTrade trade; //================ INPUTS =================// input double LotSize = 0.01; // Fixed lot (used if RiskPercent = 0) input double RiskPercent = 0.0; // Risk % of balance per trade (0 = use LotSize) input ulong MagicNumber = 220026; input ENUM_TIMEFRAMES TrendTF =
PRECISION ENTRY PRO EA V1 MT5 EXPERT ADVISOR REQUIREMENTS SPECIFICATION PROJECT NAME: Precision Entry Pro EA V1 PLATFORM: MetaTrader 5 (MT5) LANGUAGE: MQL5 1. PROJECT OBJECTIVE I want a simple, reliable and fully automated MT5 Expert Advisor based on the following trading concept: TREND → MARKET STRUCTURE → FIBONACCI RETRACEMENT → PRICE ACTION CONFIRMATION → ENTRY → STOP LOSS → TAKE PROFIT. The purpose of V1 is to
I need an MT5 Expert Advisor (EA) specifically for NFP news trading. Strategy: - Trade EURUSD during the US Non-Farm Payroll (NFP) release. - Automatically identify the NFP release time. - Place a Buy Stop above the current price and a Sell Stop below the current price shortly before NFP. - Adjustable distance from current price for both pending orders. - When one order is triggered, automatically cancel the opposite
yoo i want to make a trading bot i have my strategy in videos and also the rules to if anyone can work it out for me i will be glad welcome your bid and it urget let connect here on mgl5 And if you know you can not do the project without getting paid first please don't bid thanks
Bonjour ! Je vous ai contacté pour le développement de mon EA sur MetaTrader. Je souhaite intégrer une stratégie précise avec une gestion stricte des règles du courtier Exness. J'ai déjà préparé le cahier des charges complet sous format PDF avec toutes les spécifications techniques
SKBOT 35+ USD
want an MQL5 Expert Advisor (EA) for MetaTrader 5, mainly for XAUUSD (Gold). Strategy: The EA should trade based on market structure, Break of Structure (BOS), Fair Value Gaps (FVG), Order Blocks (OB), and Fibonacci retracement levels. BUY setup: Detect bullish market structure. Detect a bullish Break of Structure (BOS). Identify the relevant bullish FVG and/or Order Block created around the structure move. Use

Project information

Budget
30 - 40 USD