I have an MQL5 code that I can't get to compile. I need a developer to identify the errors in the code and fix them so that it can be compiled and ensure that all EA functions work properly.
Parte of the code:"// Required includes
#include <Trade\Trade.mqh>
#include <Trade\PositionInfo.mqh>
#include <Trade\SymbolInfo.mqh>
#include <Trade\OrderInfo.mqh>
#include <Trade\DealInfo.mqh>
// Global objects
CTrade Trade;
CPositionInfo Position;
CSymbolInfo Symbol_Info;
COrderInfo Order;
CDealInfo Deal;
// Global Constants
#define ZONE_SUPPORT 1
#define ZONE_RESIST 2
#define ZONE_WEAK 0
#define ZONE_TURNCOAT 1
#define ZONE_UNTESTED 2
#define ZONE_VERIFIED 3
#define ZONE_PROVEN 4
#define UP_POINT 1
#define DN_POINT -1
// Estrutura para armazenar dados das zonas
struct ZoneStructure {
double hi;
double lo;
datetime startTime;
int hits;
int type;
int strength;
bool turnCoat;
void operator=(const ZoneStructure &zone) {
hi = zone.hi;
lo = zone.lo;
startTime = zone.startTime;
hits = zone.hits;
type = zone.type;
strength = zone.strength;
turnCoat = zone.turnCoat;
}
};
// Estrutura para armazenar dados Multi-timeframe
struct MultiTimeframeData {
ZoneStructure zones[1000];
int zoneCount;
datetime lastUpdateTime;
};
// Forward declarations of missing functions
int FindNearestZones(double price, ENUM_TIMEFRAMES tf, int index, double &support, double &resistance);
bool IsReversalPattern(double price, double support, double resistance, ENUM_ORDER_TYPE &type);
bool IsMarketOpen();
//+------------------------------------------------------------------+
//| Implementation of missing functions |
//+------------------------------------------------------------------+
int FindNearestZones(double price, ENUM_TIMEFRAMES tf, int index, double &support, double &resistance) {
if(price <= 0 || index < 0) return 0;
support = 0;
resistance = DBL_MAX;
int result = 0;
for(int i = 0; i < mtfData[index].zoneCount; i++) {
if(mtfData[index].zones[i].type == ZONE_SUPPORT &&
mtfData[index].zones[i].hi < price &&
mtfData[index].zones[i].hi > support) {
support = mtfData[index].zones[i].hi;
result |= 1;
}
else if(mtfData[index].zones[i].type == ZONE_RESIST &&
mtfData[index].zones[i].lo > price &&
mtfData[index].zones[i].lo < resistance) {
resistance = mtfData[index].zones[i].lo;
result |= 2;
}
}
return result;
}
"
Похожие заказы
Team Strategy Guide 1. Indicators and tools to be Used. - Simple Super Trend - This will be used for give a signal. Blue arrow + green line = Buy trend. Red arrow + red line = Sell trend. - Confirmation candle - This candle will be used to give an entry confirmation, if the super trend line hasn't changed color. - Advanced Fractal - This will be used for setting Stop loss and Trailing stop loss and for re-entry
Looking for an experienced programmer who is knowledgeable in trading.I need the build an indicator that would draw lines, turns and boxes in the 1H/4h/1D timeframe graphs based on predefined criteria that will have to be input in the indicator, then places trades that integrates with MT5 based on the set of rules. I Also need it to open and manage positions and auto-calculate lot size based on account balance.this
Hey guys I'm on the lookout for a HFT EA or scalper that trades frequent with a small TP and SL but is profitable on a live account (Preferably MT5 but MT4 is fine too) I have seen many HFT bots that only work on demo, I have most of these so not interested in another. If you have something then before messaging me you must be willing to connect it to my live account for 24 hours so I can see for myself if it is
Hello great developer I am looking for a ready made EA { Expert Advisors } for Metatrader 5 {mt5 } that use a {RENKO CHART WITH 13 EMA CROSSOVER STRATEGY } i like to conduct the backtesting to ensure it meet my requirements. Thanks
I am receiving paid telegram signals from different providers. I need to set a EA that give the user the flexibility to adjust/setup different layouts of messages . Once a signal is received the algorithm will have a different set of rules to place an order in MT5. Requeriment to download Historic Telegram messages: -Create a script where i can download historically : User provide a Range Dates (example 1-jan-2024
أريد ان يكون الباحثا الواضح في البوت هي فير فاليو جاب على فريم اليومي يتم فتح الصفقة بعد شمعتين اغلاق نصف ساعة التوب سيكون اسفل الغاب والهدف اول قمة على فريم اليومي بلصعود ومع اول قاع سيكون اول هدف مع ستوب متحرك وأيضا على فير فاليو جاب على الاربع ساعات يتم فتح الصفقة بعد شمعتين ربع ساعة حيث يبدأ الارتداد من منطقة فاليو جاب ويعطينا شمعتين ربع ساعة سيتم فتح الصفقة وأيضا الهدف اول قمة على فريم الـ 4 ساعات بلصعود والهبوط
1. Bullish , bearish rejection at Bottom AND Bearish, Bullish rejection at Top within X candles 2. Bearish Liquidity & Bullish Liquidity 3. double rejection from the same level within X candles with difference of X pips for different instrument. send alerts screen, mail, phone etc for any 3 or any 1 of the condition is activated. Take trades based on any 1 of the 3 conditions mentioned activated. Work on different
Looking for an ea that can be used for our rebate/IB business. The EA should work on small deposit account and focus on gold/eu pair. It should take many operations throughout the day. Please send detail backtest if you have a system already crafted for this. It should also be profitable
I am looking for somebody who can help me to license my ea bot and also who can make a web server for it ? i need an expert who can work with me for a long time and also will need to see update as soon as possible. I don't want a validator file only EA file they receive and want to check it online if the bot is valid or not
A TRADING ROBOT THAT WILL OPEN MY TRADERS AUTOMATICALLY AND CLOSE THEM ALSO AUTOMATICALLY . THE TRADING ROBOT MUST WORK ON PC AND MOBILE PHONE (ANDROIDS). MUST WORK ON M15 UP TO M30 TIMEFRAME ONLY. ON CURRENCIES (FOREX) COMMODITIES (XAUUSD,XAUEUR). IT MUST HAVE 100% WINNING STRATEGY. AND ALSO 24/7 SUPPORT. FOR $30 (ROBOT MUST WORK FOR 41 DAYS) IF YOU DONT HAVE PROBLEM I CAN PAY YOU EVERY MONTH IF IT WORKS 100% IS A