MQL4 and MetaTrader 4 - page 16

  Order Management  (4)
I am learner, Iwant to know that how to solve the repeating order. Pic attached.Please give me a code
Hi I am using MT4 web terminal (as I can't download MT4 for desktop it always downloads MT5 ). The 'Navigator' window is missing - CTRL+N doe not bring this up (it opens new browser windows) and 'View' does not show Navigaot. Any ideas how to fix this? Thanks, Steve
Have EA running on MT4. Had a smiley face but with tongue sticking out. Just want to check if anyone know what does it means? Thank you
Hi,has anybody experience in setting up a Dockerfile based on Ubuntu Linux to run MetaTrader 4 through wine? I have tried it myself using wine32 to start the terminal but facing an error: WINEPREFIX=/root/.wine32 WINEARCH=win32 wine terminal.exe /protable 002a:err:seh:raise_exception Exception
[Deleted]
I learned about the rsioma ( rsi over MA ) in the forum thread https://www.mql5.com/en/forum/177347 found it interesting and decided to give at a try using the indicator for an EA In the zip i have included the source code for all the coders out there , comments , testing and improvements are very...
What can be the reason of this cannot refresh history, 4073, and the EA have no acsess to the Time[0] from OnTick() function? For the many years and a lot of EAs created I have never meet this error before, when array out of range at Time[0]. Also, I have read this post, about that how to catch
I am trying to close all pending orders but it is closing only half of it here is the code i am using if ( OrdersTotal ()> 0 ) { for ( int i= 1 ; i<= OrdersTotal (); i++) //Cycle for all orders.. { if ( OrderSelect (i- 1 ,SELECT_BY_POS)== true ) //If there is the next one {
Hi Coders, kindly help. My mission is to get H1's Bar Shift Number (Smaller TF) based on Higher TF's Bar0 for D1 and W1. int H1D1Sf=iBarShift(sym, 60 ,iTime(sym, 1440 , 0 ),true); if (H1D1Sf==- 1 ) H1D1Sf=iBarShift(sym, 60 ,iTime(sym, 1440 , 0 ),false)- 1 ; int H1W1Sf=iBarShift(sym, 60
Hi guys, I am trying to import some Nasdaq 1 min data to Meta Trader 4. After browsing and selecting the .csv file it does not load (see attached screenshots). I tried it to give it some time to load, but even after hours nothing happened. I thought about the size of the file so I reduced it to 6
  iclose/iopen etc  (10)
The following code does not work - please help I am trying to run this code in strategy tester on period M1 basically i want the open/close/high/low of the M5 candle to figure out the problem i even changed the 0 to 1 in all the code I ran this code in strategy tester for 12/01/2024 - 12/15/2024
If for example I made a string, a bool, and a string array, string A = "CCC333"; bool Check; string List[ 4 ] = { "AAA111" , "BBB222" , "CCC333" , "DDD444" }; And I want to check if the string A exists in the list (where the bool "Check" should turn out true), how should the code be written? I
This is the 1st time I encountered this matter. That I can not download/install any purchased EA/Indicator on my Windows VPS. (it has IE ver.11) But no problem on my desktop. the message "Mql4 market failed downloaded product 403" was on the journal. and the install failed as screenshot attached
I am trying to install a new mt4 on my laptop, but instead of the usual fast install, it is coming up with a box asking for proxy server address, account and password. what is this? Ive never had it before
Do can I use multi line cursor as at vs code or google apps script, when holding "Alt" ? For images and examples simply google for "multi line cursor vscode" Thank you
Hi. Good time. I created a spin button with the following command, but the value does not change. Also, I don't want to use it inside the panel. Can anyone help? #include <Controls\SpinEdit.mqh> CSpinEdit clSpinEdit_NB; int OnInit () { clSpinEdit_NB.Create( 0 , "SpinEdit_NB" , 0 , 10 , 190 ,( 10
Looking for a way my EA can use a trailing stop based on equity for all trades via magic number EA. I would like it to work something like this: If equity profit = + 200, set equity stop (or equity trailing stop) at +100, target profit = +500. So if I do not hit my profit target of 500 cause market...
Hello, I have an mt4 indicator. When I changed the timeframe, I realized that there was an different in the old plots in the timeframe opened. When I add the indicator to the chart again, it plots as it should. How can I make it work as opened from scratch every time it changes timeframe like in
Hello everyone, I'm reaching out in hopes of finding a solution to a critical issue I'm experiencing with MetaTrader 4 (MT4) after installing and subsequently uninstalling Rectify11 and Start11, which are Windows 11 modification tools. The Problem: Initially, these modifications forced all my
Anyone got this issue before? Context: I'm using tickstory to get dukascopy data, and I'm sure I followed the steps to set up the data. But on other machine and trading live, its no problem. Only the backtest fails to even start. Any idea
Hi, I have just programmed my first EA, however I am looking to add a branded icon to the code source but unsure where to include it. I did see another post which was relevant to MT5, however there is no sub folder under MQL4 for images, any help would be greatly appreciated
Just within the last few days I am now not able to login to MQL5 from my MT4 application or even access the website from my computer. The website works perfectly fine from my phone so it does not appear that I have any restrictions on my MQL5 account (nor should I) but trying to access it from my
Dear all, I wrote an EA that allows a total of 5 trades to be opened at one time. However, I only want one trade to open per bar although not necessarily at the beginning of the bar. Therefore, the code written here (https://www.mql5.com/en/forum/216567) or similar variations does not work for me. I
Hi all Below the code I have attached a trailing stop code that only trails when its in profit only. For positions trades it trails ALL the Time which works perfectly fine, as for pending orders not all the time. Sometimes it will trail and sometimes it won't. I have tried using get last error code
This topic has been discussed here many times, but I still haven't found a solution: On a Windows10 PC and a Windows 2022 VPS, I have not been able to log into MQL5 with MT4 for a week now.: Logging in works on MT5. The MQL5 website is also not displayed correctly on these two PCs.: On another
Hi everyone and happy Christmas. I would like to ask you if there is a way like an EA, code, etc. in mql4 to disable autotrading on ADX<50 (ADX value decrease below 50). Thank you for the help
I have a question: when the MA line is inserted into the RSI, it displays quite strangely! MA100 on mt4 PC Ma100 on mt4 mobie Also the MA100 line is placed in the RSI frame! But the display of the MA100 line on mobile is completely different from the MA100 line on PC! So what is the difference
//+------------------------------------------------------------------+ //| i-GAP.mq4 //+------------------------------------------------------------------+ indicator_chart_window #property indicator_buffers 2 #property indicator_color1 LightBlue
Hello everyone, I recently experienced an issue with my broker regarding an abnormal spread spike on the EURUSD pair, and I need advice or insights from the community. Here are the details of the situation: 1 . My broker 's typical spread for EURUSD is around **2.7 pips**. 2 . On the MT4 platform
This EA place only Sell Trade. it not place any BUY Order. EA Use donchian channel Signal for place Order. i am new in coding . any Experience coder fix this issues //+------------------------------------------------------------------+ //| AK-47
Hello, I'm having difficulties using this library and I need someone to point me in the right direction. I'm trying to create an array full of CCandle references, print the contents, change one of the values and then print the contents again to display the modified value. This the code I have at