Halo guys pls help my english is not too good but i new to trading and to code. i want to make simple code like this but i get invalid price inside the error int start() { double price1= Bid()-Ask(); // An price value // Attempt to open a pending order int ticket = OrderSend ( Symbol
Hello, this message is translated by AI. I hope my communication makes you understand. A month ago, I encountered a problem. When I opened MT4, without running any EA or anything else, the Desktop Manager Service of Windows used an unusually high CPU. However, when I minimized MT4, the CPU usage of
I have a bool code Can i use a single operator like this Bool a >b && b<a && c>d && d<c; Will this work? Thanks in advance
Hi, I have the following code.. orderS = OrderSelect (buyTicket,SELECT_BY_TICKET); bCount++; // B2 bPrice[bCount] = OrderOpenPrice(); // bPrice[2] bTicket[bCount] = buyTicket; // bTicket[2] buyAvgPrice = (bPrice[ 1 ] + bPrice[ 2 ]) / 2 ; orderM =
Hi try to create a dll and import it , i store the dll inside a folderlibrary , the dll i have created with visualbasic.net and i call it with this code //+------------------------------------------------------------------+ //| da_cancellare.mq4 | //|
Hello, can someone enlighten me about the difference with the following: 1. Period () vs _Period Digits () vs _Digits etc 2. If I used this code: Correct me with this one please ExampleBB = iBands ( Symbol (), PERIOD_M15 , 25 , 1.618 , 0 , PRICE_TYPICAL ,MODE_MAIN, 1 ); //Do I get the values of the
Hi, I create this simple script i notice in some cross return many decimal and if i normalize double not normalize nothing how is possible?? i do some error ?? return 2023.09.09 11:11:35.465 da_cancellare AUDCAD,H1: FirstPriceVCFirstPriceVCFirstPriceVCFirstPriceVCFirstPriceVC---> 86.52200000000001
I have downloaded MT4 platform on my new laptop and when I try to install it asks for "Please specify the proxy server options". OS:- Windows 10 Please let me know how to resolve this issue
Hello everyone, Every time I try to backtest a strategy with already downloaded history data, or trying to download history data of a new Index, an error message is popping up: Anyone could help? Thanks
Hi, I am unable to install broker provided MT4 on windows 11 and getting error " The application was unable to start correctly(0xc0000017)." i have tried every fix provided here on MQL5 website and over internet, youtube but still the problem remains unresolved. if anyone can help, please provide
I having a problem bringing up my acc balance info on the mt4 platform. When I login to my acc/platform, my acc balance is not shown. How do I have my funds transfered back to my Forex.com Acc?
I have the VPS ordered from my MT4 platform. I have a desktop computer and a laptop. I have the VPS on both, but when I make changes to the platform on my desktop it does not show up on my laptop. Is this right? Is there something I need to do to sync them up
I want to add a maximal limit to the code, so if account balance is bigger than that maximal size then my EA will stop trading and a comment will pop-up and also will be written in the log: "Account balance is higher than allowed"
Hello, I'm new to this forum so hello to all!! I was hoping to get some help with my MT4 platform - I have 2 computer screens and a while back my Dad decided to remove one without asking me first. After struggling to revert to one screen I reconnected a different screen and started up the MT4
Hi, I am new to using Signals and have a problem with connection to my signal. Message: Signal - connect to ... :443 through proxy failed How to resolve it? Please help. Thank you in advance. AK
Hi all, I hired a developer to code an EA for me. He added trade continuation. However the EA does not have any trade continuation. I know a little bit of mql4 language but when I checked the source code, it does not make sense to me. below is the code for trade continuation. if ( Continuation ) {
for (i = total - 1 ; i >= 0 ; i--) { if (! OrderSelect (i, SELECT_BY_POS, MODE_TRADES)) continue ; if (OrderCloseTime() != 0 ) continue ; if (OrderSymbol() != _Symbol ) continue ; if (OrderType() != 0 && OrderType() != 1 ) continue ; if (OrderProfit() > 0 ) { bool closedOK
Hi, it's an old problem but still not really solved. Recently I was in trouble with a new broker and its Gold-price: 1234.340! For a 5-digit-broker 1 Gold-pip should be 0.1 = 10 Points now here 1 Gold-pip is 100 Point - sigh!! So I thought to calculate a pip (and digits) from the value of the...
[Deleted]
Hi, I'm not a good programmer. Please help me for this indicator. 1) Highest high of N period - N2 2)Lowest low of N period + N2 so inputs are two values: N for the highest high and the other N (N2) many many thanks in advance
I have a few EA's installed on MT4. When loading them on a chart they visually are small and button are on top of each other. The EA shows a sad face so I am not sure if this is a config issue or what
I am back testing with Renko charts and although some pairs work just fine for some reason other pairs open one trade then immediately close it and does not trade any more after that. The error I get is: "tester cannot calculate prices". I do not think that this is a bug with my EA as it works fine...
Hi guys i have create a function for read inifile , it work perfect , but i notice the performance when load a inifile , is very slow , i think if the demand of iniread i assign at external dll , increase performance or the problem is when load in array a data read? if someone have experience about
Is there a way to determine whether the process of toggling history visibility in GUI is complete and OrdersHistoryTotal() returns the value equal to what is visible in GUI? I need to do some calculations on the whole history at the beginning. Since I don't know what range of history is visible at
As you can see on the pictures, i've coded a script that buy when SMA CROSSUP and SELL when SMA CrossDown. However, when i launch the backtests, it first launch 200 trades (BUY or SELL Depending on conditions) and then,the code executes normally except that I then end up with 199 trades which remain
Hi everyone, I'm new to this forum and new to creating an ea. I'm an aspiring mt4 ea maker and I would like to know how to make an ea that takes a trade after my two signals are met. my sample is . when first ema crossed(sample value200 and 100) happens wait for another ema to cross(sample value 80
Hi i have a indicator that scanner some cross if the param is correct i want push over one button and open a new chart with a template , and insert one EA with option , and indicator with option , is possible do that ? i saw the function ExpertRemove but not a function ExpertAdd thanks at all
I want to know that how may I know my order is closed by stop loss or not? Can anyone help?Thanks in advance.......
So according to my 5 cents of knowledge, you can use the File function to connect an EA to an Excel (changed from .exe to .csv) and trade with it. My question is if I can update (or involve) the number directly in the Excel file while it already linked to or written (updated) by the EA For example
Hi, Im new to MQL4 but not to coding. In my EA I'm trying to make a specific chart the current chart. When I activate the trading terminal it starts with a particular chart - EURUSD. This is not the one I want so I open a new chart (GOLD.) . At this stage _Symbol is still not set to GOLD. I then do
I am developing software in multiple languages using code pages 1250 and 1256. Expecting to code in even more CPs in the future. In the source code in ME, all the national characters display correctly. The sources are saved in utf8. The problem occurs during compilation. Only characters from the

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.