MQL4 and MetaTrader 4 - page 37

  API Request  (10)
Hi, I want to send GET and POST request to API. but i didn't know how to do it so i searched for it and found official documentation : WebRequest - Common Functions - MQL4 Reference And I tried it's examples code with some different API's but i don't know how to use JSON Header. Can some one please
I know the reference and book does not mention this but curious how it works for assignment instead of comparison. Can this even be done as intended ? For example: extern bool chart_period=true; // extern bool macdm1=false; extern bool macdm5=false; extern bool macdm15=false; extern bool
I'm trying to retrieve the Ticket number of the Last Closed order. So I tried this: int start(){History_Calling(Symbol(), MagicNumber); BuyOrder=OrderSend(Symbol(), OP_BUY, LotSize,OpenPrice,Slippage,StopLossPrice,TakeProfitPrice, "Buy Order",MagicNumber, 0,Blue);    if (BuyOrder>0){ Print("Order...
Hello everyone. I have an indicator that should show arrows when a candle with no wick one side of the candle forms but it does not work and I do not know why. No errors in meta editor. I was wondering if someone could take a look. It may be a tiny thing I am not seeing. Thanks in advance
Hello All the expert coders, My name is sasanka. I have a very little knowledge in programming. So I would like to request your help to create a EA I have found a custom indicator which is giving very good reliable signals. I will describe how to get the signal . i wish to use this indicator and...
Hi, Can anone help me? I keep getting this Zero divide error with this indicator, it will not show u anything. Much appreciated. Improperly formatted code removed by moderator
Hi It's easily possible in MT5 . I just need to uncheck ' Show Bid Price Line'. I don't see an option like this in MT4. Any other way to do that in MT4
[Deleted]
hey guys, i know there are al lot of threads about this issue but i didn`t find a solution to get 90-99% quality for GER30. can you help me in this term please? thanks in advance.
  Can you help me?  (5)
Hello, I use a system of EMAs whose periods are based on Fibonacci numbers, such as EMA 55, EMA 89, EMA 144, etc However, I realize the greatest EMA which the MT4 can display is EMA 2584 But I want it to display larger values, such as EMA 28657, EMA 121393 Would you please help me find a way to
Hi everybody! I'm new with coding in mql4 and i'm having some issues while trying to implement money managment rules in my EA. Here is the code: bool last; //last trade result bool Last() //check last trade result { for ( int i=OrdersHistoryTotal()- 1 ;i>= 0 ;i--) {
This is my first time coding in MQL4 I'm not sure what the error is, I was following a video of youtube, and it seems my code has multiple errors even though it was the same, could this be because it was an old video and mql4 language updated? Here is the code below...
I'm seeing this "opencl.dll not found" in MT4 journal logs. What's causing this? Where should the opencl.dll be? 2023.07.28 12:44:28.219 OpenCL cannot get OpenCL platforms (-123450, 'unknown error'), please install OpenCL drivers 2023.07.28 12:44:28.219 OpenCL opencl.dll not found, please
Hi Guys, Bit of a newbie with EAs, I am trying to figure out if an EA uses historical data. If you download from MT4's history centre would it use that data? Please help me understand
How to get ListView data (such as OrderTicket #) in mt4-terminal-trade tab
#property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Lime // Swing High color #property indicator_color2 Red // Swing Low color extern int lookbackBars = 10 ; // Number of bars to look back for swing high/low identification double swingHighBuffer[];
[Deleted]
For each currency pair I use a separate EA. To verify if an position should be opened, I test if there is no open order "if (OrdersTotal<1)" but this will block all other currency pairs to open positions and I miss opportunities. In other words: I want to open only one position per currency pair =
Hi I am contemplating converting to a MAC due to the reliability vs Windows but wonder how the MT4 Mac version behaves with the EAs. Can someone share their experiences please. Thanks
I paid £35 and am fuming it doesn't work for me
Hi, I've tried to delete an indicator from an EA, but it's taking me too long. How can I find all the chart IDs that have this indicator? I began with WindowFind( "Indicator name" ) but it returns -1
Hi there! How can i login from php to my MT4 account? Is there any API for it?
[Deleted]
Hi, does anybody knows a code formatter/beautifier for MQ4 or MQL5? It would be quite helpful to format the code as in any better development editor automatically...
Hi Dears, I code EA that sends messages and alerts to the telegram channel. I want to send Emojis with messages that send to telegram, How can I do it? I copy Emojis on telegram and paste that on the mql4 code between quotes but not worked and it showed on telegram like this "??". string
Hello! Here is a newbie in MQL. I'm coding a strategy for MT4 using a SuperTrend indicator. The MQ4 indicator was downloaded and works fine painting the result, but I need help migrating or embedding it into my EA. I need clarification on why the values of 'TrendUp' and 'TrendDown' variables are
Hi guy i try to test example script in manual for understund how work webrequest the first script for download page of gogoel finance work right , but the second script give me error autentication logn and password but i ma ssure pass and login is correct i add domain in option of metatrader 4 , i
Why do I have different results testing my EA in different MT4 platforms
How can I get the M15 Fractals prior to a specified time period on an M1 chart in MQL4? I want to get Fractals before a certain time, and below/above a certain price level. How can I achieve this? Thank you for your help. void fractal() { g_StartTime_bar = iBarShift ( NULL , PERIOD_M15
When I try to add this EA to the chart I get a message same "is not an expert and cannot be executed". Can someone shed some light on what is wrong here? // Constants (Input Parameters) input string EA_Name = "MR EA" ; input double LotSize = 0.01 ; // Starting lot size input double PipAmount = 10 ;
If I have 159.8 I want 159, not 160. MathFloor(), MathCeil() and even NormalizeDouble(number, 0) will round the number. Is there any function that will just drop the fraction and give me the integer without rounding
  array questions  (2)
Hi is possible when declare array give a dimension by variable ?? like this ? string value = ReadIniValue( "correlazioni.ini" , "correlato" , "symbl6" ); int TotalLine=(CountLinesInFile( "correlazioni.ini" )- 3 ); int qttline = TotalLine/ 3 ; Comment(qttline); string
HELLO , dear friends Sorry, I ran into a problem, I hope you can help me During the backtest, I use the optimization option to test better options and see the results, but unfortunately, in the optimization results window, all values ​​become zero and no results are shown to me. Where do you think