Download MetaTrader 5

MQL4 and MetaTrader 4 - page 155

To post a new topic, please log in or register
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...
Is there a way to scroll multiple charts at the same time, from the same point, on each chart? Thanks!
I am not sure if this post is an acceptable subject of this forum, but I know of no other platform to raise this matter. We all know that Metatrader is the most popular trading platform in the world. MetaQuotes is spending a lot of energy, time and money in developing MT5, which until now has had...
Hi I get 2 errors on this function #property strict#import "stdlib.ex4"#importvoid    CloseLongTicket()        {           for(int i=OrdersTotal()-1;i>=0;i--)           if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES) == true)              {                 if(OrderType() == OP_BUY)                 bool...
hello, so i included the #include <stdlib.mqh>   i wanna use the std::map from this tutorial http://thispointer.com/stdmap-tutorial-part-1-usage-detail-with-examples/   but when i trying to write std::map<std::string, int> mapOfWords; i getting errors ...   please can somebody help me that uses c++...
Hi coders, if I have opened 20 charts I only want some calculations done on the chart I am currently watching. So it might be useful for an indicator to check if a chart is currently active. I found a solution here: https://forum.mql4.com/30084#276651 but this posting is from 2010 and I wanted to...
Is there any way to clear the alerts generated using Alert() function, besides restarting the platform? Can anyone help?
Hi guys, i loathe to ask this, as i'm sure it's going to be something very simple, but I've exhausted all the avenues i (knowingly) can explore. I''m receiving an out of range error message, located at (according to the info provided in the terminal experts tab) Ln 222, Col 25. This is the line...
Is there any way to change the strategy tester speed to something between 31 and 32 in visual mode? 31 is a bit slow, 32 is too fast.
please have tried to make the arrow appear after the close of the signal candle in other to avoid repainting but all to no avail. please help me out , below is the code. <Decompiled code removed>
I want to add line in specific range OBJ_HLine Draw line in Complete Window i just want to draw line in specific range    
Hi,  I am having another application which is writing values in a csv-File. This application is done from another programmer and I can do nothing on it. Now I was reading the data for a while and it worked fine. Now - I don't know what happenend I can't open this file anymore... I thought perhaps it...
My alert() function accumulates messages each time it triggers. I want it to output the messages only once and not to accumulate it in several lines. Somebody may help please. See picture below for perusal. The required message is the one above while the unwanted messages have been highlighted in...
I'm trying to group some common functions into a library of my own and for some silly reason can't get things to work.    In my rlib.h file (located under "...\MQL4\Include" I do the following):   #property copyright "xxx" #property link      "xxx" #import "rlib.ex4" int     subGetMagicNumber(int...
Hey coders, sometimes I need a tick, may it be on a weekend or during quiet market times. I thought about forcing a tick by calling OnCalculate() from a chart event. This was my first idea: void OnChartEvent(const int id,                  const long &lparam,                  const double &dparam...
what is the best way to make a flag using the ObjectCreate function or bufferI can not seem to distinguish between the two I find indicators with 0 buffer and others with buffers please can any one explain to me tje difference thank you
Hello, I have a problem to assign values to different local variable, I have 5 position open at different prices but my script gives the same value to 5 different variables Where is the problem??? thank you for any help