Download MetaTrader 5

MQL4 and MetaTrader 4 - page 174

To post a new topic, please log in or register
#property copyright "Copyright 2016, MetaQuotes Software Corp."#property link      "https://www.mql5.com"#property version   "1.00"#property strictextern int starthour = 9; void OnStart()  {  if ( Hour() == starthour)  {ordersendbuy();}elseAlert(GetLastError());  }void ordersendbuy(){double...
Hey there, on the one hand, it´s quite comfortable that MT4 allows for multiple logins, but it´s also a matter of security and can be a big problem, especially when we talk about EAs, Scripts etc. for support of manual trading. If a user has a VPS and a local system and if he uses both from time to...
How to I type the symbol || for the or condition. I cannot seem to find that symbol on my keyboard. I tried many keys on my keyboard but can seem to get that symbol. Please help, thank you.
Hi,   I am trying to learn to code an EA starting with the basics using icustom and opening a position.   I am trying to simply open a position when the indicator signals long, if there is no position open. If there is to ignore....
Can we control iEA ordersending function it is sending a lot of orders in a second.
Hi everyone, Just got an EA running for 1 pair based on RSI.  It works when I use the pair on the chart in MT4.  However, when I try to apply it to multiple pairs, it doesn't seem to work.  I was hoping one of you nice folks could help me!  The codes are below for single and multiple pairs.  I've...
Hi,   I've purchased a system from a vendor online, but I cannot access the source code (I was given only the .exe files).   There are several indicators in the system that I'd like to know the code and conditions for (the general properties tell me nothing).   Is there a way to see the code?...
Friends, hello.   I wish someone could help me. I create the expert advisor in the file below. But I would like the expert advisor to execute only one order per bar. Can anyone help me with the code and where in the expert advisor I put these codes? 
Hello everyone.    I have a problem: i don't know how to code this expert advisor. It has to open a position when all rsi's timeframes are aligned. I'll explain better. Open buy when 15m to Monthly RSIs are >50 and sell the way around. Somebody can help me? I'm freaking out on how to code the...
Last modified on Sunday, November 23, 2008 Change summary: "Now using GNU GPL license for all client requests (changed text highlighted blue)... also some text removed." Hello, This post is to all traders who are looking for a freelance MQL4 programmer. So... If (you're not a programmer) and (you...
Help needed , I have a Expert advisor that need to read the crossing of Moving Average from a CCI[14] . I have two Moving average of 2 and 7 which i applied using  first indicator's data to the CCI[14]. From this link https://forum.mql4.com/55157 the only way to read the MA value is to create a...
I hope someone could help me, i'm stuck. currently i learning to write EA. 2 problems: i try to save extern inputs into a file, i notice we can save extern inputs into "*.set" file located at ...\experts\presets\*.set (so how to do this?) how to load extern inputs from previous saved setting when...
I have check several forum but i did not get any solution to my problem. i am trying to build an EA which can only take 10 trade maximum or an other number of trade i want and it should wait for the closing of  the rest trade. So can anyone help me regarding this problem.And also can anyone tell me...
Hello, When I run my code at backtest for optimization, even skip useless result option is unchecked I can not see any negative results. Also there are 400 combination of my parameters but I just see at most 180 passes. as I said "skip useless result" is unchecked.  why could this be happened ?...
I am having an interesting issue where I call the Comment() function each time I get a new tick and instead of clearing the existing comment prior to writing the new comment it will simply write the new comment below the old comments.  Sooner or later the comments have filled the entire screen and...
Hello, Been using MT4 on Windows. Now want use Ubuntu to run several EAs simultaneously to test. Have copied folder from Windows and created three folders in Ubuntu. Folder 1: existing EA (still running on Windows XP laptop) Folder 2: new EA Folder 3: new EA All three terminals are running, logged...
Hey Guys, I'm actually writting my own Expert Advisor and want to draw something in the chart. Is there any option to do that, like in the picture below?     I know, that there is the possibility to draw a channel in the chart. But I think, this channel doesn't looks so good like the channel in the...
Hello there, I'm trying to run my MT4 terminals automatically on Windows startup through Services and Task Scheduler on my Windows Server 2012 dedicated server with no success. Looks like it is not possible to run MT4 as a service because it uses specific, user dir, so that user needs to be logged...
staff need help with the script that I leave here to download Hello. This script is the type OCO (Order cancels other) I am very grateful if anyone can help me with what I need. The script has just about everything you need to operate news, but the changes you need are the following. In...
Hi! I am beginner in MQL4. How can get some info from an added indicator? For example, the indicator color and value. G.
I've had a long hiatus from MT4 so am re-learning the environment again... I've written my methods to output my required results from each optimiser pass to an external file using OnTester().  I'd like to add a little finesse in the form of a "header" row in the file; from everything I've tried,...
I am trying to develop an app which can launch MT 4 iPhone app. Can anyone let me know the URL scheme for iPhone/iPad apps to enable this? Thanks
is an easy question,it is possible???to make moneywith scalping if we pay de spread(we cannot place limit order inside the bid ask spread) without martingale??? many years of trading behind me and i dont think is  possible! thanks
Trying to write a script to scroll a chart continuously.  Beginning with a pause of 5 seconds.  Not sure if this is the right direction.  Could someone tell me if this code is the right way to accomplish this? Thanks! //+------------------------------------------------------------------+//| Script...
<Spam Deleted>
When i log into mql5 site, i can see my subscription and when i look at history i see i missed a trade and no trade shows on my account any idea how i can cancel the subscription cause it doesnt work or 2. fix it? or 3 why im not getting any signals copied??   and any help with back testing would be...
Hey Guys, I've been using an indicator called ZUP for harmonics, but I just hate how convoluted it makes the charts. There are so many extra text bits and lines that I find completely useless. I would go in and edit the code, but its 8000 lines and looks hideous. So I figured I'd just build my own...
I am trying to find an object based on a wildcard search using ObjectFind only on the current bar.  I know that if I know the exact name of the object I can use: ObjectFind("label"+Time[0]); However, what if I wanted to find label2 or label3 or whatever number is at the end?...
My indicator fires alerts perfectly in realtime but while using the strategy tester it does no give me one alert. Originally it is based off of Bid or Ask prices but I realized that wouldn't work in the Strategy Tester because obviously the market it closed. I changed Bid to Low[0] and Ask to...
This is the indicator: http://codepaste.net/yohneb   and what im trying to do is when the histogram changed color from red to blue or viceversa it will enter a trade    iCustom(NULL,0,"SLOPE HISTO~",80,3,0,  0,1)>0 &&iCustom(NULL,0,"SLOPE HISTO",80,3,0,  1,2)==0;   //---     iCustom(NULL,0,"SLOPE...