MQL4 and MetaTrader 4 - page 196

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
Hello, I need a little help with the attached indicator. I would like to get sound and notification alert only when a new arrow shows up. Because now I get notification on every new candle after the arrow if everything is still green or red I would be very grateful if somebody can help me with
  CScrollV - MT4  (5)
Does anyone out there have a clue on how to get this to work, inside a CAppDiolog box? I'm trying to make several dialog boxes, inside a main dashboard box, but I need to get the main Dashboard to scroll up and down. Does anyone know how this thing works? When I put my smaller dialog boxes inside
https://book.mql4.com/variables/arrays I am working through this example in the book. The website code is reproduced for your convenience however it differs from the download code stringarray.mq4 I believe both examples are erroneous. Is this book even a good way to learn MQL
[Deleted]
I created a custom indicator but it will not call alerts from offline renko chart. Can anybody help me to resolve this? It will call alerts fine on live chart. The alert code is below. void myAlert( string type, string message) { int handle; if (type == "print" ) Print (message); else if (type ==
Total leaders won 3267 pips during March (yes ... again more than 3000 pips ). More information here: https://www.mql5.com/en/forum Best regards
I am rewriting my EA to use MQL4 newer Graphic Controls and I am having difficulties getting the EA to respond the way I would like. The first problem is I would like the CAppDialog to Align to the right side of the charts as that is where the price action is. The Second issue is with CSpinEdit I
I have copied signals in MT4. The trader open new trade at 00:16am and the spread was over 500pips at that time. Stop Loss was reached and MT4 reopened the trade immediately. Is there any method to disable/ limit copy trade when the spread is too high? Or any way to disable copy trade in specific
I build this indicator whitch has the task of buyng when the ADX is greater than 30 and the candle is bullish and sell when the ADX is greater than 30 and the candle is bearish , but it does not work and I cannot enderstand why , can you tell me where i went wrong ? Thank you in advance for the
Hello i am trying to read a file from the common directory but its not working Here is the code that i am trying : input string FileName= "15767168" ; string Directory= TerminalInfoString ( TERMINAL_COMMONDATA_PATH ); void OnInit () { ResetLastError (); int file_handle= FileOpen (Directory+
is it possible to look at certain heiken ashi candles in mql4. I tried calling the indicator and then using the i close function for the specific candles but using i close it take the default candle sticks, im not to familiar with buffers so im not sure if that is thee solution. Any help is much