I have an MQL4 EA that works on 2 charts at the same time. On the settings section the EA asks for a variable called ‘Maximum delay’. And based on the number I give there, it creates a random number between 1 and that number. Ex: If the Maximum delay is 10,000, it creates a random number between 1 and 10,000. Ex: 4516
It then puts that number on the chart and starts counting down from that number. As soon as the count down goes to zero, it opens the trades.
You can see the count down functionality on the video here:
https://gyazo.com/a23597b242fcfd3de09d802d43cb5fbb
Change 1:
The problem is that the countdown continues even on Saturdays and Sundays but it cannot open a trade as the market is closed. So, the countdown continues and goes to zero during the weekend. As soon as the market opens it opens the trade as the count down is already waiting at zero.
It should actually stop where it is when the MT4 date/time turns to Saturday (or maybe when it stops receiving ticks?). So, if the counter shows 2555 when the date turns to Saturday I want the counter to stop there and continue from 2555 when the market re-opens. So, the new trade is opened only after the counter goes to zero during market hours.
The settings of the EA has a section for trading days below and it actually works in terms of opening trades but it doesn’t stop the counter when the date is outside of trading dates.
http://prntscr.com/1z08f4t
Ex: Today is Tuesday. If I set Tuesday trading as 'false' on the EA it continues to count down. It shouldn't.
Can a solution be created for this?
Change 2:
The counter start is determined based on this number on the settings section:
http://prntscr.com/1z09gk3
It basically picks a random value between 1 and that number on settings section and counts down for that many seconds before it opens a new trade. Ex: if the random value is 3000, it counts down 3000 seconds before it opens a trade.
There are 2 problems here. One of them is that the random value is never exceeding 30,000. I made a research on that and fond that the EA the programmer used mathrand() function and it seems to support a number only up to 32767. So, I need a fix there. When I put a number like 650000 I need it to find me a random number up to 650000. Ex: 375969. Currently it only finds me a number smaller than 32767.
The other problem is:
On top of the Maximum delay field I would like to add another field: Minimum delay(seconds): [TEXTBOX]
And I would like the random value to be calculated from minimum delay to maximum delay instead of between 1 to the maximum delay.
Ex: Minimum delay(seconds) = 1000
Maximum delay(seconds)= 8000
In this case it should create the random number from 1000 to 8000 instead of 1 to 8000.
When the random value is created I would like the trades opened when the count down from that number goes down to zero. (it already does this at the moment and I would like this functionality to be protected so it continues working the same way)
I will share the EA source codes with the selected programmer.
Commandes similaires
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
#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
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
To apply, you must already have your EA running on an active MT5 trading account connected to the market. The account must have genuine trading history that can be independently reviewed and verified. EA Requirements 1. Prop-Firm Compatible Risk Management - The EA must include daily and overall drawdown protection. - Required inputs: "MaxDailyLoss = 5%" "MaxTotalDrawdown = 10%" - Once either limit is