hi
I am looking for someone to fix this EA I have currently.
I have copied a source code for the "Dark point" EA, which was converted from the DARK POINT INDICATOR.
however the problem is, the ea does not take any live trades. ON strategy tester the EA seems to work fine, put when I put it on a chart and have algo trading enabled, the EA does not take trades
source code is below:
#include <Trade/Trade.mqh>
int handleDarkPoint;
int barsTotal;
CTrade trade;
int OnInit(){
handleDarkPoint = iCustom(_Symbol,PERIOD_CURRENT,"Market/Dark Point MT5.ex5","","DP_",40,3,1.0,"",14,"",true,0.8,true,1.6,true,3.2,true,1.6,true,3.2,true,5.0,"",true);
barsTotal = iBars(_Symbol,PERIOD_CURRENT);
return(INIT_SUCCEEDED);
}
void OnDeinit(const int reason){
}
void OnTick(){
int bars = iBars(_Symbol,PERIOD_CURRENT);
if(barsTotal != bars){
barsTotal = bars;
double dpBuy[], dpSell[], dpBuyStar[], dpSellStar[];
CopyBuffer(handleDarkPoint,0,1,1,dpBuy);
CopyBuffer(handleDarkPoint,1,1,1,dpSell);
CopyBuffer(handleDarkPoint,2,1,1,dpBuyStar);
CopyBuffer(handleDarkPoint,3,1,1,dpSellStar);
if(dpBuy[0] > 0 || dpBuyStar[0] > 0){
Print(__FUNCTION__," > New buy signal...");
double ask = SymbolInfoDouble(_Symbol,SYMBOL_ASK);
ask = NormalizeDouble(ask,_Digits);
double tp = ObjectGetDouble(0,"DP_TP_Line_1"+IntegerToString(iTime(_Symbol,PERIOD_CURRENT,1)),OBJPROP_PRICE);
tp = NormalizeDouble(tp,_Digits);
double sl = ObjectGetDouble(0,"DP_SL_Line_1"+IntegerToString(iTime(_Symbol,PERIOD_CURRENT,1)),OBJPROP_PRICE);
sl = NormalizeDouble(sl,_Digits);
if(ask > 0 && tp > 0 && sl > 0){
trade.Buy(0.1,_Symbol,ask,sl,tp);
}
}else if(dpSell[0] > 0 || dpSellStar[0] > 0){
Print(__FUNCTION__," > New sell signal...");
double bid = SymbolInfoDouble(_Symbol,SYMBOL_BID);
bid = NormalizeDouble(bid,_Digits);
double tp = ObjectGetDouble(0,"DP_TP_Line_1"+IntegerToString(iTime(_Symbol,PERIOD_CURRENT,1)),OBJPROP_PRICE);
tp = NormalizeDouble(tp,_Digits);
double sl = ObjectGetDouble(0,"DP_SL_Line_1"+IntegerToString(iTime(_Symbol,PERIOD_CURRENT,1)),OBJPROP_PRICE);
sl = NormalizeDouble(sl,_Digits);
if(bid > 0 && tp > 0 && sl > 0){
trade.Sell(0.1,_Symbol,bid,sl,tp);
}
}
}
}
Commandes similaires
My MQL5 Expert Advisor wins most trades with small profits, then suddenly takes one large loss that wipes out weeks of gains. This is the "picking up pennies in front of a steamroller" pattern. Required fix: Find the exact cause of the large losses in the code. Cap the loss on every trade with a fixed stop loss (no martingale or averaging down). Stop trading in dangerous conditions (high volatility, strong trends
AI Forex Trading Bot for MT4 and MT5 I need an advanced Forex trading robot (Expert Advisor) that works on both MetaTrader 4 and MetaTrader 5. The robot should automatically analyse the Forex market, identify BUY and SELL opportunities, and execute trades when the trading conditions are met. It should support GBPUSD, EURUSD, USDJPY and GBPJPY. The robot should use EMA, RSI, MACD, price action and trend analysis
Name: SteelEdge Platform: MetaTrader 5 (MQL5) Expert Advisor Instruments: XAUUSD, EURUSD, US30 Timeframe: H1 (inputs to change it) STRATEGY - Trend filter: buy only when price is above the 200 EMA, sell only when below - Entry: price pulls back to the 50 EMA and a bullish (buy) or bearish (sell) engulfing candle closes - Confirmation: RSI(14) above 50 for buys, below 50 for sells - Stop loss: 1.5 x ATR(14) - Take
I need an existing mt5 expert advisor that can been in trading for more than 12 months. The PF of the ea should not be less than 2.0 and be in profit in the last four months with average profit of not less than 20% per month. The Maximum drawdown should be less than 20% and Max deposit load less than 10%. Such ea should be able to trade with less than or equal to $300. Whats needed is .ex5 and source file is also
seller must provide the following to be considered... i will answer to all who fit this description, and can purchase more than 1 EA... - brief strategy description - overall EA expectancy - 1 week limited trial version, with whatever settings you consider best
I am a trader looking to acquire an existing, stable, and consistently profitable Expert Advisor (EA) specifically designed primarily for Gold (XAUUSD). This is an outright purchase. I am not interested in developing a new EA from scratch. I am only interested in ready-to-use systems with a genuine, verifiable track record of performance
I am an independent trader and entrepreneur based in Côte d’Ivoire. I work in financial markets, analyze trading opportunities, and provide digital financial services. I am also interested in international trade, online business, and developing long-term business activities
Hello, I am interested in developing a professional MT5 Expert Advisor similar in functionality and technical sophistication to your reference product, Institutional SMC Robot: https://www.mql5.com/en/market/product/187011 I want to develop my own independent EA based on advanced Smart Money Concepts (SMC), with a strong focus on institutional price action, liquidity and market structure. The key functionalities I
(I can't pay 30 for this of course if you can just help.me solve this problem I would appreciate you )It was doing everything perfectly until yesterday this happened this is a python file that copies from telegram Iand send to ea signal if you have any idea what to do or why this happened please tell me
Specify your Requirements Specification here point by point. Try to describe your requirements briefly and clearly, so that your potential developer is able to correctly assess its complexity and cost, as well as the required execution time. A bad or too generic description will result in your order being ignored, or you will spend a lot of time negotiating the details with each applicant. Remember: It is better to