Expert Advisors and Automated Trading - page 39

Utilities seem to load as EA's and testing them from source code works fine if you test on live data. When back testing, they may not execute any trades and then closes after period has run through. I have seen this with DEMO utilities that do allow trading (with manual intervention) but you cannot
I am facing a strange behaviour of the visual tester agent in MT5 I do not understand. I have a custom (home made) expert system that I am developing by long time. The code looks to work good by the program point of view; i t is compiled without error and, for example, I can launch it in the
Hello everyone, I have been testing the [product name redacted] EA on a demo account for a month. I do not know how to code. I have had mostly very profitable backtests, but for one month that is profitable with certain settings, the next month blows the account because of a big continued draw down
input double RiskBalancePercent = 1 ; double Ask; double Bid; double AccountBalance; double TickSize; double TickValue; double LotStep; double TP_Calculated; double riskpertrade; double LotsBuy; double LotsSell; double RiskPerRewardRatio = 1 ; ///get price Ask = NormalizeDouble (
The EA has been started already. the system is running on a fibo trade sytem, multi timeframe of 15 muniutes and 5 munites for entries. and the sl and tp. input parameter done already. the major frame work done already. remaining is to place the logic in the on Tick Function (OnTick), compleation of
  Equity protector  (1)
Hello i need an expert adviset that is for equty protection. Example: I have 1000 usd on my acc,when it reaches 900 to close all the trades,can you please tell me how to do that
I have two symbols running three EAs each. Each EA with a different magical number. I want to know which EA is the best, I want to see the final profit of each one since it started running. On the history tab, I can select each symbol individually, but it lumps all of the EAs together. I can add the
Hello guys, Does anyone know what's wrong here, I just copied the codes from the MQL5 help document to my first python script and tried to run it. But I keep got this error message: from datetime import datetime import MetaTrader5 as mt5 # 显示有关MetaTrader 5 程序包的数据 print("MetaTrader5 package author
Hi i want create EA that calculete entry volume for each postion according the risk percentage. i use belowcode: Input_Volume= (((UserBalance*(Risk_Money/ 100 ))/(Stoploss_point/ 100 )) * ( SymbolInfoDouble ( Symbol (), SYMBOL_TRADE_TICK_VALUE ))) / ( 100000 / AccountInfoInteger ( ACCOUNT_LEVERAGE
Hi all, If you're willing to take a moment and look I'd like to get some feedback on if there's anything I missed that may cause problems unforseen to me down the road. In particular, one thing I addressed in the MQL4 version was refreshing rates within the 2nd for loop, since I had a couple
hello coder's. please am following a strategy that applied the Macd indicator on 10pips renko chart on tradingview. So now am trying to build an MT5 EA for the strategy, but unfortunately there's no Renko chart on MT5, However, I downloaded a Renko indicator from
i need to draw fibo on chart, But cant be adjusted Level as desired
Hi, I have a working bot with 0 errors in Meta Editor. It uses Boom300 Symbol from Deriv. When i upload the file to the market it gives back errors. It will give back errors for EUR/USD as the verification is done in that symbol. I set the bot to work for Boom 300 index. I want to put it on market
Figured this may be worth a shot. I coded a multi symbol ea, running off 1 min data, trying my best not to have something that's curve fitted. In optimizations I can get good results, but the large percentage of my forward testing (90% +) all loose money. Just wondering if anyone had some insight to
Hey gang, I'm trying to get my comment from the most recent deal in my trade history. All of the values I'm trying are returning fine except my comment. ulong ticket = 0; ulong dealHistory = HistorySelect(0, TimeCurrent()); ulong lastDealTicket = HistoryDealGetTicket(HistoryDealsTotal() - 1);
  Expert drawdown  (1)
Hi, is there an expert that allows you to monitor the various daily, absolute, relative and maximum drawdowns of an account
Hi I have this EA which works perfectly although i cant seem to figure out why the pivot zones and lines are disappearing. How can I ensure previous pivot points and zones remain throughout the backtest? Spent countless hours trying to figure this out but cant seem to make progress. Would appreciate
I take it this needs the cache clearing: // Define variables int buySignal = 0 ; int sellSignal = 0 ; double entryPrice = 0 ; double stopLossPrice = 0 ; double takeProfitPrice = 0 ; enum ENUM_TRADE_REQUEST_ACTIONS { TRADE_ACTION_PENDING = 0 , TRADE_ACTION_DEAL = 1 , }; I get the following error
  OrderSendResult  (2)
Hello, i can't make an request with TRADE_ACTION_DEAL in Python. In AccountInfo my balance is 2000.0 and when I want to make a trade, in comment says No money and i don t know why. The account is demo from [broker name redacted] and recently I ran out of money on my account. Can anybody help me
Hey all, hopefully the subject is clear enough, but nonetheless I will try to explain the best I can. I've written a EA to trade my custom strategy, and when testing it on a whole year (without visualization) iv'e noticed that there are some weird entries one after another that should not be
Is there a way to detect the tester is on math calculations mode ? i'm using OnTester anyway for custom max with normal optimization , so i'd like to run the "evaluation" function if on tester detects math calculations mode
Hello mql5 people. I am currently working on the optimization team for a project. I am a hobbyist coder and have coded a couple of my own bots, however for this project, I do not have access to the code. I was back testing without any problems until the version of the bots, licensing expired. As
//+------------------------------------------------------------------+ //| SpikeDetector.mq5 | //| Copyright 2022, MetaQuotes Software Corp. | //| https://www.mql5.com |
Hello everyone. I am building an EA based on RSI. I have followed a YouTube video on how to do it, and I did it exactly as the video, but I'm still getting errors. I will share the line of code, can anyone possible tell me what I'm doing wrong? Thanks in advance
Hi everyone, How to close all positions instantly, without using the Sleep function as in the following code pls ? bool CloseAllPositions(){ int total = PositionsTotal (); for ( int i = total - 1 ; i >= 0 ; i--){ ulong positionTicket = PositionGetTicket (i); PositionSelectByTicket
This example is provided in build 3980: https://www.mql5.com/en/forum/454439 The iris.onnx model is generated through this python code: from sys import argv from skl2onnx import convert_sklearn from skl2onnx.common.data_types import FloatTensorType from sklearn.datasets import load_iris from
  i can help!  (10)
How do I make an EA from an elephant bar setup? and how can i handle the candle size issue? for example consider a 100p or 50p elephant bar vary depending on the chart I am using
Hi, I have an MQ4 indicator that formats date and time like this: 26.10.2023 - 09:11:45 using this code: // This will take broker time and turn it into format DD.MM.YYY string GetTime( datetime when= 0 ) { if ( when== 0 ) when= TimeCurrent (); return StringFormat ( "%02d.%02d.%04d -
  Best EA for Gold  (1)
Hello, what are the best Expert Advisors for XAUUSD that match this criteria? No Martingale No Grid No Averaging No Dangerous Methods of Money Management regards, Matt
Hello recently i found out someone renamed my ex4 and ex5 he/she removed my order send comment and copyright i don't know how this they managed to do thisi am thinking that my file had been decompiled or i dont know how else someone was able to remove my copyright and order send comment