Download MetaTrader 5

MQL4 and MetaTrader 4 - page 128

To post a new topic, please log in or register
Hello, I'm having a serious problem since 2 days in reading a custom indicator buffer with iCustom. Here's a screen: I'm printing in the comment che values i get from iCustom, reading with 1 bar shift (the bar just closed) and it's giving me strange results. It reads a value from a buffer which has...
Hi All... Is there can help to create EA as below request. 1) MT4 will automatic place 5 BUY pending order & 5 SELL pending order when server time reach 08:00 2) All order come with TP 100-150 pips.   3) All pending order not execute will delete at server time 00:00 4) Gap every order are 50 pips...
when try to load a dll from anothor terminal folder ,i get the following warnings and the terminal shows "unresolved import function call erro" ,if the dll was load undown its own folder ,it runs normal . serval years ago ,i use the dlll like this manner ,no any erro or warnings . the dll was...
Hi is there a way for change Timeframe only on select chart? I found this script but it changes Timeframe on all charts. //+------------------------------------------------------------------+//|                                                    ChgTF-All.mq4...
I have a simple timer indicator, basically it just counts down from the start of a bar to it's end then issues a sound alert, what I'm trying to do is have an ea use that sound alert to begin it's operation of checking it's conditions and after the conditions are met, entering a trade and then halt...
Hi I've got this EA for awhile, been in my email for 7 years. I've worked with it the last three years and left it behind. Now i'm getting back into it and its a martingle style and an .ex4 . I cant seem to insert it into my platform on instaforex. Im pretty confused as it used to be so easy to put...
Hi, Do you know if Metatrader 4 have a drawing tools like "Patterns & waves" of Tradingview? Thanks Chris
Hey, I'm trying to build my first EA and I've run into a problem that I can't solve. I used mt4gui to build an interface for my ea and it's working fine. It changes the timeframe and tradestatus when I click on the corresponding radiobutton. Unfortunately the variables (timeframe, timeframe2 and...
Hi guys, Hi, I follow this site for some but I have never written on the forum. I'm getting closer to programming in MQL4, I started to build a EA, but i have different problems. My question is:The shadow as revenue? for example interests me take the shadow of high penultimate candle (time frame...
Hi, all is in the title, I would want to know I can recover the value I write in an OBJ_EDIT put on graph if I click on a button for exeample? I think it's easy but i don't arrive, i tried with OBJPROP_TEXT, but I don't understand how it works exactly. Thanks in advance for your help.
Hi, it is my first post, so good evening for everyone! I have problem with installation metatrader4 on Linux Mint 15. I have WINE installed. When I try run mt4setup.exe in first step I see licence, but in second step of installation, when aplication should download necesary files, installation is...
Hi,  My void on  tick HA function looks like this     //heiken ashi function double haOPEN = iCustom(NULL,0,"Heiken Ashi",Red,White,Red,White,2,0); double haCLOSE = iCustom(NULL,0,"Heiken Ashi",Red,White,Red,White,3,0); I want the ea to sell when the HA candle is red and buy when the HA candle is...
Hello everybody I'm looking EA or indicator that can move my TP to the negativ position. Or maybe it's posible to edit mq4 code. For ex. I open buy at 1000.00, TP is 1100.00 and there is NO SL. When price goes against me and reach 990.00 I want to move my TP to 995.00. When price will back to 995...
For MetaTrader 4 PC I am wondering if there is any tool to be integrated in this software and when I run it, it goes through *ALL*, i repeat ALL so each and every one (regardless of trading instrument type!), trading symbols located on the left hand-side menu. Then in tool's separated window it ask...
Is there a way to list/see all global variables used if you do not know there names? Thanks.    
1. I use the history center to download the 15 mins time frame, but it can download until 2014, what should I do if I need more data? 2. This page (https://www.mql5.com/en/forum/124322) mentions that  "The metaquotes "download" data is really to be avoided at all costs in my opinion, loaded with...
Hi all,  i have a little problem with my EA which is not opening buystop/sellstop positions. The condition is quite simple, i also tried it with several indicator just to see if it opens any sellstop/buystop order but it doesnt. THe EA is in the attachement, and the code for opening the positions is...
Hi All, I've been trying to ensure that my takeprofit and stoploss are equal (in other words, profits and losses should be of the same magnitude). I've done a bit of investigating and tried a few solutions but I still get uneven profits and losses - even though looking at the prices in the results...
Hello I have this indicator: int OnCalculate(const int rates_total,                 const int prev_calculated,                 const datetime &time[],                 const double &open[],                 const double &high[],                 const double &low[],                 const double...
Hello,  Can you help me please?  We define the array as UpTrend* UpTrends[];   And the code of function call  UpTrend* trend=new UpTrend(Time[lowest_index_on_range],Time[1]);             if(trend.isSuitable() && !trend.hasSameLow(UpTrends))               {                                  int...
for(int i=0; i<limit; i++)      {       //---- ma_shift set to 0 because SetIndexShift called abowe       ExtBlueBuffer[i]=iMA(NULL,0,media21Period,0,MODE_EMA,0,i);       ExtRedBuffer[i]=iMA(NULL,0,media8Period,0,MODE_EMA,0,i);        Ima21candprec[i]=iMA(NULL,0,media21Period,0,MODE_EMA,0...
  [deleted] (1)
[deleted]
[deleted]
Hi, I'm using classes to reduce clutter. I am trying to make each order (each ticket) be able to store their own exit strategy prices after running exit checks.  i have a Class called CTicket and each instance of CTicket has their own corresponding instance of class CExitStrategy where it stores the...
Hi Who can help me? What Validation Failed? Is my expert problem? Thanks  
Hi All,    I have installed MT4 a couple of times on my Mac Book using PlayOnMac and the tutorial provided on the mt4 website but today I can't figure out what is going on. I download the mt4setup.exe file from mt4.com but when I install it, it installs mt5, every time. I have reinstalled playonmac...
I am using the MT4 enumeration for a selection input: enum ENUM_myChoice { a, b, c, e, f, g }; The problem is if I have to add "d" to the list in alphabetical order, all of my templates using e, f or g are ruined because they are off by 1. Is there an elegant solution to this or only brute force?...
Do you want to transfer data (does not matter what kind) to from 1 application/chart to x applications/charts inside different/same window? Here is a demonstration how this can be realised. We have a free tool called "PermVar" since 2 years now but it does not get much attention among coders because...
How do I draw rectangles on the top of the chart? I also want them to stay there if I zoom or unzoom. 
Hi, I'm relatively new to programing MQL4 and would like to know how to code an expert to understand the open and close prices of the previous bar? Any help would be appreciated. Thanks, Chris.