Download MetaTrader 5

MQL4 and MetaTrader 4 - page 484

To post a new topic, please log in or register
Tradeing Trader
Hello, is there anywhere a Tutorial, Script, Example availble with discription how i can make a own FTP connection to a webserver, i dont want to use the FTP Function from Metatarder but makeing a own Script for that?
        if(SARCurrent > Ask) {ticket =OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,  "SAR Sell",MagicNumber,0,Red);           send.text.3();}   why would this execute the    send.text.3();    subroutine, but not open an order? The Journal shows nothing except the mail: text being sent. 
i have one simple question. if i explain well it would be double ok. Que. is; i have string array as  pairs[28] . This array consist of 28 pairs. For example i want to put this array as variable into the iclose() function. Such as; for(int i=0;i<500;i++) { For(int k=0;k <28;k++) { iclose(...
  duration. (4)
How do you get local PC time for init() and deinit() to determine duration if backtesting? Is a win32 api call necessary?
I have a indicator which draw a histogram with 3 colors Color 1 = Blue Color 2 = Red Color 3 = Gray How do i get the color draw on the current bar and previous 1 bar onto a variable or show it at Alert("Current Color is  : " + color ); I attached the Indicator. I was wondering if we could get value...
Hi guys i have a little problem with my demo account FXCM My EA as a parameter SL : 10 ans TP : 10 When i Backtesting the EA it's perfect, this respect the SL and TP But, when i launch my EA on the plateform demo, and when it opens a position, the SL and TP are 24 ... I don't understand the problem,...
hello, I signed a service signal, and an order came to me with delay of 24 minutes would appreciate the value lost in order to have my order executed 24 minutes later my signal provider performed it worth 99 952, and I I received the order 24 minutes later with value 99 585, with 130 pips HIGHER...
Dear all, I met a problem when i tried to call an imported function with defaul value parameters. The function body is: #property library#define MN 13000void alert1(string sym, int Type, double Lotz, int MagicNumber=MN,double PendingPrice = 0){Alert(sym+Type+Lotz);}//the last 2 parameters of...
  Wininet FTP (2)
I've been trying to figure this out for some time now and i've been searing everything to find a solution. I'm trying to use the Wininet function FtpGetCurrentDirectioryA. According to MSDN C++BOOL FtpGetCurrentDirectory(  _In_     HINTERNET hConnect,  _Out_    LPTSTR lpszCurrentDirectory...
//+------------------------------------------------------------------+//|                                                       Corner.mq4 |//|                        Copyright 2013, MetaQuotes Software Corp. |//|                                        http://www.metaquotes.net...
int cnt, total; total=OrdersTotal(); for(cnt=0;cnt<total;cnt++) { OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES); if( OrderType()==OP_BUY && Bid-OrderOpenPrice() >Point*TakeProfit) { OrderClose(cnt, OrderLots(),Bid, 3, CLR_NONE) ;...
Hello, Is it possible to know via a function like MarketInfo or another method the maximum of possible orders before getting the ERR_TRADE_TOO_MANY_ORDERS occurs? Of course I can count the number of opened positions when the error occurs but I'm wondering if there is a more clean way to catch the...
At the moment I have very large difference between buy and sell. Almost 10 digits. What is yours
Dear all,   I  want to add external parameters for my EA while adding include files, as shown below: #include <test.mqh>extern int       ExtParam1; But with the "#include <test.mqh>" statement,  I cannot back test the EA while specifying the "ExtParam1" optimization parameters.I have to divide the...
 Hi guys,   I have 28 double arrays(one dimentional) how I can code to find the first 8 highest numbers(arrays) and create new two dimentional array that one dimention shows bars history and second shows these 8 values???   thanks, 
Ok, first of all, I have read the entire MQL4 manual... (so before I get badgered this time for being ignorant, I have done my homework...) if (direction==0) //--Buy--//   {            {      double bsl=buy_stop_price;      double btp=buy_takeprofit_price;      LotSize =...
hi !  I try to search a solution for allowed or not allowed a trade ( Buy or sell ) based on the last order time closed, look like that : OrderCloseTime() + Hours for allow the news trade Help me please :(. ( Sorry for my poor english :s )  I try that but it's not work : extern int...
Hello everybody, I need help with a simple formula. I need to subtract the current data minus the previous data and I wrote this but with a wrong result:   Buffer6[i]=Buffer4[i]-Buffer4[i-1]; Buffer7[i]=Buffer5[i]-Buffer5[i-1];     Thank you,
  OrderSelect() fails (13   1 2)
Hello, The following code always fails on OrderSelect() and the return error code is 0   if (OrderDelete(TicketNum, CLR_NONE) == TRUE){    ...    if (OrderSelect(TicketNum, SELECT_BY_TICKET) != TRUE)    {        Alert("Server failed to select order ticket=", TicketNum, " Err=",...
  REQ HA Offline Chart (225   1 2 3 4 5 ... 22 23)
Hi, it is possible to create and indicator like renko using the Heiken Ashi Bars? In this way we can attach to this offline chart all the indicator with different information respect the standard chart. Waiting your reply, Regards
While interacting with sellers of signals and trading applications, we have decided to launch the affiliate program. It allows all sellers to interest MQL5.community members in promoting their products and signals. Thus, both sellers and promoters will benefit from the program. Sellers will receive...
Can I transfer my custom indicator from my laptop to my tablet and smartphone which both operate the window system?
Hello, I am a beginer, trying to run his first script, but when I do I get this error. initialized One-Click Trading plug-in for MetaTrader4. cannot load library 'mt4dll.dll' (error 126) expert stopped I looked in my machine and there is no mt4dll.dll file, I reinstal the soft, but nothing. Can some...
Dear all, I am a newbie in using strategyg tester.  My questio1ns are:. 1. What is the meaning of the line and icon generated during the back test? 2. How to display equity curve ? my terminal only shows balance curve. Sorry to apply your help again . Thanks for your time and consideration.
Tradeing Trader
Hello, i have write a trade copy tool and i have a question, when i have a Order in EURUSD and i want to open in the Metatrader where i receive this signal also a Order in EURUSD, but this Broker have another name for EURUSD, how can i codeing it to open in EURUSD a order? if i make this:...
New article How to Install and Use OpenCL for Calculations is published at mql5.com: It has been over a year since MQL5 started providing native support for OpenCL. However not many users have seen the true value of using parallel computing in their Expert Advisors, indicators or scripts. This...
Strange thing, an old short piece of code of mine is not working now. i do it on build 482  A simple code to check whether are there open trades, and if there were, then looks for the biggest lot size to double it. In backtesting it does something else: even if there were no trades open, this code...
I got the take profit and stop loss to work but it only executes on one order and is not applied on all the open orders. How do I get the take profit to be applied on all open orders? Any advise?...
baje dos veces la metatrader 4 una de la web fxforextime y la otra de la web ibfx.com .. como no se conectan con su servidor respectivo decidi desintalar e instalar de nuevo.. Ah.. se me olvidaba tambien baje de google la metatrder 5 sera este el problema del porque no conecta la metatrder 4??' en...
Hi,       I would like to migrate the indicator attached below to MQL5. Can anyone do it for me? I tried so many methods and followed so many articles. But couldn't do it. Thanks in advance.