Expert Advisors and Automated Trading - page 11

How to increase the font size of the opening price on the chart
Hello, I have Garnet. However, it is difficult to know which signals are available, as many are not available though listed. Is there a filter or some other way to only display the signals compatible with Gartnet and Metatrader? Thanks
i have a take profit of " 150 " points but , I'd like to partially close a position if it get 50 points profits then modify the remaining position with a take profit ( 100 points) , here's my code the problem is that the position closes fully at 50 points , i understand why but can't figure out how
  Bother with HFT system  (11   1 2)
im trying to test a new hft ea but get the error message invalid price . i think its the buy and sell stops that are too close to chart price. how can i find out if thats whats happening, and what hte min distance should be
Looking to build good backtesting (optimisation) pc. - whats better for backtesting (optimisation) on MT5, ryzen 9 7950x or intel i9 13900k My understanding is that AMD does better on the multicore but Intel beats it on single core processing. Also will 64gb ram be enough or should I splash put on
Hi guys nayone can help me to understund why not write the file .csv in File foder? this is my code #property strict double spreadSumCurrentMinute = 0.0 ; datetime currentM1BarTime = 0 ; string FileName; //+------------------------------------------------------------------+ int OnInit () { string
Right after midnight (00:19 for example), I got the equity that drops significantly and temporarily, it all goes back to normal levels after midnight. my EA is a grid that consists of buys and sells. I tried to hedge my grid before midnight so that there are the same number of buys and sells but the
I'm mostly talking about issues with the "Visual Mode" of the strategy tester 1) If I start a backtest, but then stop it using the stop button of the main MT5 window and then try to start a new backtest by clicking "Start" : it doesn't work. I have to go to the Visual Mode window and click stop
my errors do not happen often, however, I know that it will happen on 8 of 16 cores/threads if i start optimiser with all 16 threads enabled. But makes sense to me that it would so i never start optimiser with more than 6. But I am getting 1 core, never the same core, every 16 hours or so, with the
Hello, How to know the number of the week? MqlDateTime gives a lot of info, but I did not find the number of the week. //+------------------------------------------------------------------+//|                                                   WeekNumber.mq5 |//|...
  ERROR :10030  (5)
#property copyright "Lucas Mariano Vieira" #property link "https://www.mql5.com" #property version "1.00" input int MAPeriodShort= 9 ; input int MAPeriodLong= 21 ; input int MAShift= 0 ; input ENUM_MA_METHOD MAMethodS= MODE_SMA ; input ENUM_MA_METHOD MAMethodL= MODE_SMA ; input
Hi i have this code for extract the history of the day double CalculateDayTotal( string symbol = NULL ) { // Ottieni mezzanotte di oggi (inizio del giorno) datetime today = DateOfDay( TimeCurrent ()); datetime now = TimeCurrent (); //Print("today ",today); //Print("now ",now);
I've read a few articles, and still have yet to find a working solution for this, while also trying not to deviate too far from what the documentation says to do. I'm trying to create my own custom SPY symbol ( different than the default SP500m data provided by the demo server ). For ease (and THIS
Hi everyone, I've read some topics on this function, but I'm really stuck with this situation. I wrote two functions to get the takeprofit price and the stoploss price for a position that is already opened manually. Takeprofit and Stoploss prices are calculated knowing the details of the opened
Right now I'm studying how to use AI to convert my ideas into an EA in MQL5 language. Has anyone had experience doing this? I'd like to share ideas. Currently, I'm interested in using Cursor, QODO, MT5 coder. Has anyone used any of these before
Hi everyone, I have always programmed in mql4, now I am using mql5. I have a problem: I am doing tests for an expert advisor that trades two pair at the same time (spread trading). To use qualitative data, I create custom symbols. However, for example, when I have to test the AUDCAD - AUDCHF pair, I
Hi, within the EA it is simple to get the name of my EA using following code: MQL5InfoString(MQL5_PROGRAM_NAME) But I couldn't figure out to get the version number of the version #property field. Is there a similar way to get the version number? My workaround at the moment is a #define after the...
Hi, I have a problem with margin calculation and would be very happy if someone can help. MT5 build 4885. MetaQuotes Demo Account Netting. Leverage is 1:500. Deposit currency is EUR. If I buy 1 Lot EURUSD all is like I expect: Margin is 200 like I expect. Buying another lot results in margin 400
Hello, what happened to http://ec.forexprostools.com/ this link is not commercial neither advert I dont see why moderator should delete it. I am trying to access the rss news feed on the link above but I am getting " You don't have permission to access / on this server. " what is the new alternarive
Hi guys , i try to return a value of Close[0] in a indicator i am in xauusd and hi have quoatation near 3292.70 but when i print close[0] return 1320.31 0_o why ? my code anyone know why happen this ? //+------------------------------------------------------------------+ //| Simple EMA with Alert
I'm running an "All Market Watch symbols" optimization in MetaTrader 5 using a .ini file via the command line. The .ini specifies a single symbol (e.g., symbol=EURUSD ) and runs without error. However, the XML report that should be generated after the optimization is completely empty — it contains
Hi everybody, How can i draw trend line on the strategy tester chart when my running in strategy tester Thanks
Hi. I am improving myself in forex. If what I ask is possible, I will ask a coder in freelance section. (If what I say is possible.) I have such a system in my mind: I want to decrease the effect of margin call I want by having 10 different accounts (illustrative purposes only - account number can
After some in depth debugging, I realized I've been using CiCustom wrong. The documentation is unclear but by implementation it is now apparent that CiCustom was intended to derive subclasses. Making custom indicator classes is very easy of you use the following pattern. Inherit CiCustom Make a
Hey everyone, Has anyone here struggled with margin calculation issues in MT5? I’ve been facing a weird one for a few weeks now, and it’s driving me a bit crazy. What I'm trying to do: I'm designing a grid system where the initial lot size is scaled such that, in the worst-case scenario (price never
  Validation  (3)
Is it possible that in my back test I don't have any errors but when I go to validate a product in the Market it gives me errors that I can't find
Hi all, I am testing some EAs and I can't find a way to reset the settings (inputs) for the chosen EA! It remembers all my changed settings instead and I can't get it back to the original. Any help will be appreciated
Hello, I've created a DLL that more or less looks like this: #pragma once #ifdef _WIN32 #ifdef ZMQL_EXPORTS #define ZMQL_EXPORT extern "C" __declspec(dllexport) #else #define ZMQL_EXPORT extern "C" __declspec(dllimport) #endif #define ZMQL_CALL __stdcall #else #define ZMQL_EXPORT extern "C" #define
Hello, In MT4 there is an adjustable bar for the speed when wanting to visual an EA, when/so to verify the inputs and outcomes. In MT5 I cannot find a similar tool and it only gives one speed. Can anybody expand on this? thanks for any help, G
Hello, I have the VPs and Signals enabled in my MT5 Account. and it looks running in Realtime as below But in the journal it showed as 2025.05.19 13:01:21.055 Signal '404085488': signal subscription disabled, enable realtime subscription in 'Signals' settings So I have went to options>> Signals