Download MetaTrader 5

MQL4 and MetaTrader 4 - page 101

To post a new topic, please log in or register
New article The checks a trading robot must pass before publication in the Market has been published: Before any product is published in the Market, it must undergo compulsory preliminary checks in order to ensure a uniform quality standard. This article considers the most frequent errors made by...
  Cannot write to file (12   1 2)
Hello Im trying to create a .csv and .hst file. Everything seems to run fine, but I can see my files in the directory! Can you please help?
Hello!  I have a wave function I would love to get coded in mql4. It is a parametric equation, x= and y=. how would I code this part? The code should draw this wave on the chart, but I am at a loss.   Thanks!  
Hey Guys, I have one problem...  My EA only works on full hours. Like from 10pm to 11pm and so on. But if I input 10:15 or 10:54 to 11 it doesn't work...   The EA should operation so that he can give me the highest and lowest price between a specified timespan. But I don't know why it only works...
Hello, Is there a possibility to subscribe to a newsletter for the http://www.metaquotes.net/en/metatrader4/news page? Thank you very much! Kind regards,
Hello, i have got an error in the line 24 :'SetIndexBuffer' - no one of the overloads can be applied to the function call    #property copyright "Copyright 2016, MetaQuotes Software Corp."#property link      "https://www.mql5.com"#property version   "1.00"#property strict#property...
I am using these 2 indicators. trendplotter.mq4 http://www.forexfactory.com/showthread.php?t=46668&page=6 TrendLine Alert.mq4 http://www.trade2win.com/boards/trading-software/148012-trendline-alert-indicator-mt4.html There is a slight problem with the combination of these two. When a position is...
I understand that there is a variable called period_current which can be used in a script I have attached the same script to M1 and M5 time frame I have an alert which says "event triggered" however i am not sure if this alert was triggered by M1 or M5 Please assist
  Code help (4)
Hi this is my 1st code I've complied without errors or warnings, however this EA code doesn't seem to work, any advise? //+------------------------------------------------------------------+//|                                                           MA.mq4...
This just started happening the other day and I can not figure out what is causing MT4 to do this. When opening a new chart through Market Watch it does not matter which currency pair I highlight and then select Chart Window, the chart that is opened is always GBPNZDi (my broker is Trader's Way and...
I provide my custom comment to SendOrder() function, but when an order appears in Account History, it says in Comment "#12345, Placed by Expert". Do I need to change some other settings to make a custom comment to appear in there?
hello im new at this programming mql4 i want to create a simple script, can someone help me? i need it to see 2nd last candle and open pending order 10 pips above the closing of that candle, with SL -80 pips, TP +60 pips. I have this code and it doesnt do anything #property version   "1.00"#property...
Hello, I want to trade with financial news but I need an API to connect the news on real time to Metatrader 4, do yo know a service to do that?  It is not a problem if I have to pay for this Beforehand, thank you very much.
GUYS: I try to test dll-calling in MQL4, so I build a test dll as following: #include <stdio.h>#include <stdlib.h>#include <string>#include <string.h>#include <time.h>#include <iostream>using namespace std;extern "C" __declspec(dllexport) void HelloWorld();void HelloWorld(){        cout<<"Hello...
  Error 130 (6)
Hi everyone, I am a newbie to MQL. I'm trying a testing EA. I am getting Error#130. Couldn't find the reason. Pls find the code below and copy of the journal below. double Buy_Signal = 0;double Sell_Signal = 0;int i = 0;int Total_Orders = 0;int Magic_Check = 0;double Lot_Check = 1;         int...
Hello, to all, how are you, I´m not a coder.... and I have problems when I try to compile, this errors appear; delete name expected expressions are not alowed on a global scope object pointer expected void delete (int type){   if(OrdersTotal()>0){      for(i=OrdersTotal();i>=0;i--){...
Hi,     For an object of type OBJ_RECTANGLE, am unable to set the fill and tool tip property             ObjectSetInteger( chartID, objName, OBJPROP_FILL, false );             ObjectSetString( chartID, objName, OBJPROP_TOOLTIP, callOut );   Regards Vivek                
hello i want to create an EA that makes a pending order, with stop loss 80 pips and take profit 60 pips. I know it looks simple, but i keep getting the error 301 i think... can someone help me?
int Tip=OrderType();               if (Tip==5){   //SellStop                if(OrderStopLoss() == OrderOpenPrice()){                            }              } <Russian language removed>
  Trailing code (1)
Hello, I tried to use the following line, to create a stop at a certain gain level and (at the same time) a takeprofit modification, but I probably made a mistake, since the modification is not executed (the alert-sound is played sometimes): extern int TicketBuy,TicketSell; extern double...
Hi All! I have a live cent account at a broker. I have a smartphone with Android 6.0 and I installed MT4 on it. I would like to log in (with correct login number, correct password and server) but I get always that Authorization failed... Why? I uninstalled, reinstalled....nothing.... :S  Thank you...
Hello I been trading just 3 month and is intereted to do it, I learning the lenguage mql4  in my way to create a robot, but I just started it, I need some help I have a Adx indicator which draw in histogram bars under the chart, I set the alarm to it, but it sound in every single bar (histogram) and...
is there any restriction on selecting a volume in mt4? what is the function of volume? suppose if I have 50$ in total money with my broker, what is the ideal volume in this case? at this stage I have .01 volume?
  To tito78 (4)
Hello, I have deleted your topic as you uploaded de-compiled code. This against forum rules and if you do it again, you may be banned. Thankyou FMIC for pointing this out.
#property copyright "Copyright 2016, Macdulio" #property link "macdulio.blogspot.co.uk" #property indicator_chart_window #property indicator_buffers 7 #property indicator_color1 Crimson #property indicator_color2 Blue #define  NL    "\n" extern int       Range_n=34; extern int shift = 5; extern...
No problem with code or anything.  Just wondering here before I set off on an adventure (that will probably end in a horrific crash.  :)   ) Is there any hard and fast limitations on how many global variables that can be set? 
I am working on an EA and this is not checking every hour on the open of the candle when the D+ is above the 21 in ADX. Can someone help me out here with this please.   In short I want this to alert me at every open candle when the D+ is above 21.     bool           EnterOpenBar=true;datetime...
Hi Guys I'm trying to create a Histogram based on the previous High/Low values of a :ZigZag" type of indicator called Swing_ZZ.mq4... But I'm just not getting it right.... If someone could point me in the right direction here I'd appreciate it...  Thanx  This is the jist of the Swing_ZZ indi:...
Hi all! How do i Simultaneously delete or add indicators for all charts? I have 20 over pairs and whenever i decide to add or remove an indicator say, a 50 MA, i would have to add them on all the 20 over charts one by one. How do do them simultaneously? thank you!