Hi there, Please Check the attached image. I get the following error when I trying to compile the code shown below. 'else' - illegal 'else' without matching 'if' Any help would be appreciated. Thank you. <Decompiled code deleted>
[Deleted]
Hi, I try to draw a horizontal line, when a button is pressed. In addition, when the same button is pressed for a second time, I like to remove the horizontal line. So on so forth. The problem is that if I insert code related to drawing objects inside the inner if conditional block, the behavior of
Hello All, Has anyone had success opening terminal.exe from the commandline using switches to open a chart window and also specify an Expert Advisor to run in the chart window on opening? Could you potentially point me to other posts/how to's pls.. Thanks, Ian
Hi, I have my algorithms running wel fews days ago but now I am facing error as " OrderSend error 131". If i run the same code on the demo account then there is no error. Can you please suggest as how can i resolve it ? I have even tried with lot size as 1 but still the same error
Im trying to link in my metatrader account, my broker is with bdswiss, having serious trouble linking the account. Anyone had any experience with this? Anyone got any advice? It would be really apprieciated. Thanks
hello guys, could someone help me how do i get the indicator to paint an arrow when the value chart sends me an alert window? this is the indicator code """""" //+------------------------------------------------------------------+ //| Value Chart Deluxe Edition.mq4 | //|
Hello In installed MT4 on my laptop but got a strange language and do not know how to fix it : please seee attached file Thanks in advance
follow the instructions in: https://forum.mql4.com/16915#121444 advisor to initialize exeprt Experts on the I get the following errors what is the problem?
Im trying to connect my mobile mt4 to receive push notifications, Im putting my MQID in correctly but the test message wont send
Where and how can I sign up at mql5 as a coder, any links please
Hi, This is my first ever programme, i keep getting these errors when trying to proof my code. Could somebody help me sort out the errors and check my code to see if it makes sense? thank you! • 3 different empty control statements if (Trend<0.0); { if(EMA13M15<EMA21M15); //true
I have an EA that should be opening trades from an indicator but hasn't. I checked the journal this morning and see error around trades being disabled: I have confirmed that it is enabled in the EA -> Common: I have also confirm that it's enabled in the options: Where else can I look
Hi there, I'm trying to find out if anyone has ever had any luck setting up the HullMa from Scorpion. I've tried to get it working but to no avail. I've got the HullMa indicator installed but the EA doesn't seem to work. I've tried all the settings but nothing seems to make it trade whereas another
Hi Guys, New to MQL and trying to automate my trades from an indicator that I have. I've been reading up on the various threads here and been able to get some code together but it keeps firing everybar. Would appreciate if someone could point me in the right direction in order for me to fix. Code
Welcome, please help I want a function that shows me the ticket number For profitable deals, the order of profit from largest to smallest And the same idea in losing deals, from bigger to smaller like this picture
Hi, I can see that the signals have a subscription fees, but i want to run this specific signal on my demo account before i put it on my live account. Is there a way to do that before i pay the subscription fees. Also i foud a signal on my demo account, it is free and since it is showing up in my
Hi people, I'm using a function to caluclate the swap automatically in the base currency in this case for S&P 500 MarketInfo(Symbol(),MODE_SWAPLONG) (cause MarketInfo(Symbol(),MODE_SWAPTYPE)=1) I would like to know how to calculate in the accoount currency. Example, in the case of the S&P500 the
Hi guys, does anyone know the variable code to pixel shift up or down in mt4? I have a indicator which can move up or down at the top left of my screen but can’t access the code. I need to move a local time clock down. Thanks for any help
Whenever I try to customise my trade history via the "account history" tab in the terminal, MT4 freezes. Previously MT4 hasnt frozen when I've done this. And I have not added any new indicators, experts etc. Any ideas on how to solve
Hi, I'm developing a code(on MQL4) that when RSI is on vaue 72, he store on a string like "position 1". And i want to open a order when rsi has an different value but also string has position 1. For eg. IF RSI is 72, x = "position 1". if rsi is 69 and x = "position 1", open order. But not getting
Hello everyone, Here is my codes in the below for MQL 4. Whem it is compiled, there is no error but aside from some warnings. Since there is no error, i expect my code to work. However, it does not work, not send the order. " RefreshRates(); double PendingPrice = FASTma-40*UsePoint ;
We often visit different forums. Several times a day, to be more exact. Sometimes, we see very interesting screenshots of the terminal. Those can be indicators, EAs, objects, etc. It would be a pity if all that treasure were lost, traders should see it! So we propose to upload to this thread...
Please help to build a simple EA which only place; one buy stop on last zigzag top one sell stop on last zigzag bottom thank you
[Deleted]
Please guys help me: I have an EA that was coded using the icustom () function for the Super Trend indicator, I would like to know how to insert the Super Trend indicator mql4 code directly into the EA code. How do I do that
This message came up and I am looking for help to be able to get notifications on my android phone. Invalid MetaQuotes ID: Your MetaQuotes ID 'xxxxxxx' was automatically cleared from profile, because it wasn't specified correctly. My metaquotes ID # is still shown in my security profile in mql5 and
Hi all and thanks for reading, I have some questions about optimisation and mt4 : Firstly how do you guys can run optimisation of a ea for time like a year ? I have like a pretty good computer and even like 2 weeks optimisation is pretty long (idk like 15,20min , depends of the optimisation) , so
Hello anyone that can help. I would like to ad some programming to my EA to make it really simple for the user. I would like to have default settings for low, medium and high risk. e.g. if the user sets the "extern bool" to true for "UseRiskPresets" and the "extern RiskType = LowRisk then all the...
Hello all, I have EA and I send oder BUY STOP or SELL STOP, but sometimes I get error 130. I use writting to log, so I can examine conditions when error occures. In the log I have: ERROR BUY STOP @ 1.94609, Ticket=-1, profit-target @ 1.94806, volume=0.63, error=130 - invalid stops current
Hello, I have coded my first EA and I am looking for the code that will open lot sizes at a percentage of my account. Can anyone help please?
hey guys , i need this code : i have 3 positions , first position is OP_BUY with lot 0.01 , second position is OP_SELL with lot 0.02 , third position is OP_BUY with lot 0.04 , when first position closed by take profit , close second position with lot 0.01 and third position close with lot 0.02