Video demonstration: https://i.imgur.com/ee1JSo8.gif Issue: the color C'34,34,34' (and similar dark colors within that range) display differently on OBJ_BUTTON compared to other object types. In the video, the OBJ_EDIT is also using C'34,34,34' as the background color that the OBJ_BUTTON uses in the
Hi All! I use Webrequest to load the CSV and save contents to local with the code below. I succeed many time before except this time, i'm keep trying 2 days so far in this struggle. Anyone please help me to teach me how can i get the error 5004 all the time. Code: void CSVToLocal( string url, string
What's the buffer for the arrows on chart in the indicator below
Trendlines drawn on offline renko charts leaves the anchor points . reason is that the anchors of the trendline should not be glued to the future (the empty space on the right-hand side), it has a different time scaling. It applies to all chart types, as the time axis is not linear on the chart
Good Evening Fellow Traders, This is my first attempt at creating an EA. I am not too bothered about the strategy and I doubt it would be profitable. This is more for a learning experience and to be guided by people much more knowledgeable than myself! I just want it to execute "some" trades (
Hello everyone! I need to find an EA with source code As the image I attached below (MQ4). Thank you very much
hi Dear @Alain Verleyen @whroeder1 I want get OBJPROP_ANGLE from OBJ_TRENDBYANGLE with this code in open any candel but OBJPROP_ANGLE give me 0.0 value!? please help me void OnTick () { //--- ObjectDelete ( 0 , "Trendbyangle" ); ObjectCreate ( "Trendbyangle" , OBJ_TRENDBYANGLE , 0 ,Time[ 5
Hi, I was looking around the forum for a code of Pivot Point and Past 3 days (yesterday, previous day, previous day 2) high low for my MQL4 EA. I am very happy to seek some one here kind enough to write the code for me: 1. MA signal above Pivot Center Point (no R, no S) plug Past 3 days high are all
hi guys , i want write a program for calculate deffrent of close price between last tick and one before it , but i dont know whats the problem #property copyright "Copyright 2021, MetaQuotes Software Corp." #property link " https://www.mql5.com " #property version "1.00" #property strict
//+------------------------------------------------------------------+ //| OOPTest.mq4 | //| Copyright 2020, MetaQuotes Software Corp. | //| https://www.mql5.com |
Hello, I have an indicator writing for Ninja Trader platform, and I would like to convert it to use in my Mt4 platform.. Is it possible? I don`t know so much about programming, so I`m asking for help, if it is possible and someone is able to help me, if it is not so hard, I would be very very...
Hi I am trying to draw a vertical line on every outside bar on the daily timeframe. At the moment I'm very close, but suffering from glitches where it draws the lines everywhere, many not on outside bars. Please advise. Thank you
Hii, Recently I am approaching the programming language MQL4, and I have builf this indicator whitch must return a green rrow upwards when the ADX is greater than 30 and the bullish candle and a red one downwards when the ADX is greater . But it doesn't work and I can't understand why . Could you
i want timeframe of 180 and the line is not showing
Una consulta , ¿Alguien sabe de algún Metatrader 4 de cualquier Bróker que INCLUYA los datos de negociación del DOMINGO? , es decir , que al poner el "Separador de Periodos" se divida también lo que hizo el precio el Dia Domingo en su Apertura hasta que comenzó el Lunes (Esas horitas) y que al poner
On build 509 or earlier, MqlStr struct, which is for passing mql string array to DLL, is as follows. // for build 509 or earliearstruct MqlStr509{ int len; char* str;}; From build 600, MqlStr might be changed as follows. // for build 600 or laterstruct MqlStr600{ int len; wchar_t*...
Hello All I'm trying to track the creation process of my GUI to review all the process step by step. As the code is already almost huge and does many nested works I need to use the debugger to find the issue and fix it. Off course the functions related to the UI's creation are called in OnInit
Hi , I have created this simple indicator in mql4 which must return a green upward arrow when the ADX is greater than 30 and the bullish candle , and a red downward when the ADX is greater than 30 and the bearish candle ; I am recently approaching this language and I cannot understand and I cannot
bool useit(){ if ( 2 > 1 ) Print ( "OK" ); return ( true ); } if (useit()) //======================== is this correct use of bool function? I cannot call this
does anyone have any suggestions for this EA
Hello, I have a small question concerning the maximum number of parameters we can test: how to increase the number of parameters to test because I use a strategy with several indicators but I can't finally backtest it on a large range of values because my parameters are too big... Do you know how
I'm trying to run a function written in C# on MT4 by means of a dll. The dll compiles correctly, however when I try to run it on MT4 i get an unresolved import call cannot find Add in TestMe.dll Am following a guide on this link https://www.mql5.com/en/articles/249, the dll am using I downloaded it...
Hi I was created a thread about static datetime in here: https://www.mql5.com/en/forum/362972 and successfully working on it. The code from the previous thread detect and make the EA to works only once a bar since I put it on the first of the strategy. Now, I want to use the newbar variable in the
if want to open at open of bar ,use Time[0] can I use iTime(0,PERIOD_H1,0) for H1 Bar open time
I am trying to understand the working under the hood of iStochastic. I loaded the native MT4 stochastic oscillator on a EURUSD D1 chart on an MT4 terminal from IG (IG demo account). I also downloaded the same data from history in excel Finding number 1: With below settings: I can see that the Main
Hi, I would like to have on MT4 a main window with say H1, and on the side two smaller windows with H4 and D1, for the same currency pair. Something like in the picture below. But what I am struggling to understand is how I can make it so that if I change currency pair all 3 graphs will be updated...
I want to make below code (difine) bool LIST_EURUSD; bool LIST_GBPUSD; ...... many pairs string list =[EURUSD,GBPUSD, .....]; for ( int W= 0 ; W<list.length; W++) { bool "LIST_"+list[w]; } Something wrong with it. Can you point it out
I have a demo account and have downloaded MT4 on my desktop and the MT4 app from Google Play. The info is not the same though. I cannot see trades done on one platform on the other. How can I get them to mirror each other
Hi everyone, anyone know how to do this? I have an .ini file set up to open MT4 with my chosen pair/template etc. What I would like to do is be able to open additional charts from command line, using different .ini file, without having to close MT4. So I would: use command line to open terminal with
I just finish de MQL4 book and i was traing to make a simple EA, it didn't go well. I tried to backtest it overnight, with little to no result; then i tried to test it with 5 currencies on a demo account and it opened up to 35 operations per currency. I have check the code several times and have no

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.