MQL4 and MetaTrader 4 - page 606

I need help to make this Ea come back to life. ( it dosnt trade ) Information is in the link bellow. http://www.forexstrategiesresources....-verbtheory-s/
Hi there, I have this indicator which draws SR lines from fractal levels. I appears as below and looks like it is working.    Then, I go in to Strategy Tester and start testing a system using the indicator. It starts off as expected as below.    The lines are being drawn at the same levels in...
  time gaps on MT4  (7)
I have aquestion : A position should have been closed at 21:00:03 . But on the MT4 thisis shown only at 21:01:48 . That means on the MT4 closing time is 21:01:48 .Another position is indicated by closing time ( Closing Time ) 21:02:32 . Aresuch gaps in the MT4 possible ? Thank you for an answer
Hello everyone. I have coded this, and I think that I cover all possibilities. Why is it still saying that this function/method does not return a value? double Lots()   {    if(OrdersHistoryTotal()>0)      {       for(int i=OrdersHistoryTotal();i>0;i--)         {          //Select closed orders...
Is this mini pc powerful enough to run MT4 or MT5? OS:Windows 10 64bit Home CPU: Intel Atom x5-Z8500 Processor (2M Cache, up to 2.24 GHz) Graphics: Intel Processor Graphics Gen8 Video Memory: Sharing System Memory Memory: 2GB LPDDR3 Hard Drive: 32GB eMMCThanks!
Hello forum. I am looking to set up this indicator where I want to add ALL differences among closing price - for ALL bars, - compared to one another, - within specified Period. How do you go about it?? I was thinking of a "Nested FOR" logic, but it wouldn't compile (see below). before I double
Hi, I'm using this code to open Limit Order, Is it possible to have it to open Trad only if current bar fully closed? #property show_inputs//#property show_confirmextern double Lots    = 1.0;extern int Slippage   = 3;extern int Stop_Loss  = 25;extern int Take_Profit = 100;   enum TimeToExp...
Hi, does anybody know a workaround for this disappointing behaviour? In OnInit() I use: if (IsPerA == false && ValPerA != 2 ) return(INIT_PARAMETERS_INCORRECT); to switch on and off the test of variables and in case of an off to  reject all variations by the optimizer of this variable. If I now...
[Deleted]
Hi, I need historical data for AUD-JPY M1 for Jan - Dec 2015.When I try it I get bad data Oct14 right into Aug 2015. I tried for pairs CADJPY , GBPJPY same I get nothing. I can get for Period M5 AUD-JPY Jan-Sep 2015. Very fustrated, any ideas out there please. Kind rgds Sourcegate
Is there a way to programatically configure and start an strategy test?
Previous to owning supposedly the most sophisticated computer by technologies standards in a laptop in this current age of retail laptops available at your nearest computer store like Staples, Best Buy and others to name a few, my main nock around laptop for online schooling and strategy tester was...
[Deleted]
SPAM REMOVED
[Deleted]
  Questions about programming  (12   1 2)
How to delete data from buffers in window of indicator? (mql5,mql4)   
Hello to all, Regarding the code scheme below, could anybody help me? It closes a position only when the next signal happens. Then it, instantly, opens another position, the opposite to the first. extern double TakeProfit=400.0;extern double Lots=0.01;int NumeroMagico=170225, Sinal_vencedor=0,...
I'm running something like this on my Expert Advisor:   double OnTester()   {    double sid = TesterStatistics(STAT_INITIAL_DEPOSIT);    double sp = TesterStatistics(STAT_PROFIT);     FileWrite(fH, totest, sp); }    I'd like to add a variable with the pass inputs, but I can't find the class or...
Hi, I have created an EA, it is based on grid system, I coded to place BUY STOP and SELL STOP orders with TP . But I am trying to place the same order as previous order. Example: EURUSD Buy@1.08550 and TP 1.08650 If the TP hits then I want to place a BUY STOP order at 1.08550 price with TP as same....
i remember i had read an article introduce  the basic concept of quate ,ask ,bid,tick,volume ,but now i cannot find where it is . please help me . thank you .
PROBLEM: The Forex market is filled with information across a variety of currencies with different Technical Analysis patterns. With a 24-hour market, there is consistent information out there, but no real effective way to look at it all. There could be patterns out there right now that you're not...
  Error send  (3)
Already many thanks for your help!  I'm going through a hard time finding the error. the "if" is working properly, but sometimes it does not respect the order. int TotalOrdersCount()  {   int result=0;   for(int i=0;i<OrdersTotal();i++)     {      int MyOrderSelect=OrderSelect(i,SELECT_BY_POS...
Hi all. I have inserted this code in my EA: if (TimeHour(TimeCurrent())>=7 && TimeHour(TimeCurrent())<=18)     {time_OK=true;}     else {time_OK=false;}    The backtest period going from 28 february 2015 to 28 february 2016. However, the ea operates only in march 2015(where it starts) and in...
Hi, I Have a script for Sell/Buy Limit and when i add a sell or buy limit order I note that i'm able to modify it with drag and drop. But when i try it with www.metaquotes.net I'm not able to modify. Is this issue from broker Or there is a solution for it? thank you #property show_inputs//#property...
Hi, I'm trying to code to find whether the last order was a buy or a sell. Seems simple. My typical code would be:  datetime LastOpenTime;int LastOrderTyp;double LastOrder()                                                                                                                // To find type...
Is there a way to execute an expert advisor OnTester, testing other expert advisors?. Let me be more clear, I have 3 experts: optimize.ex4 optimize2.ex4 tester.ex4   What I want is: To load tester.ex4 my expert advisor, and optimize with strategy tester optimize.ex4 and optimize2.ex4. In a way that...
//--- input parameters input int      lot_multiplier=3,base_lot=1,martingale_max=4; input int      cycle_fails=1,magic_number=123,slippage=2; //declarations for EMA cross    double CrossUp[],CrossDown[],smile_yes[],smile_no[],smile_nyes[],lot_size,Risk;    extern int FasterEMA = 1;    extern int...
there is a link on the left ads space when reading in 'code base' about the automated trading championship, and the link doesn't work: https://www.mql5.com/en/code
New article Graphical Interfaces II: the Menu Item Element (Chapter 1) has been published: In the second part of the series, we will show in detail the development of such interface elements as main menu and context menu. We will also mention drawing elements and create a special class for it. We...
Hi, I have a demo mt4 account with oanda. I placed a sell order with 0.50 volume size and it is giving me $0.50 a pip why isn't it $5 a pip I thought 0.50 was 5000 units of currency please help thanks
[Deleted]
Hi,   Is there a way of calculating the number of thumbs up and thumbs down objects on the chart other than counting them manually? It tells me how many there are all together but doesn't seem to differentiate between the up and down.   Thanks   Elwise 
I'm running a tester with optimization with this expert advisor:   handle=FileOpen("data1.csv",FILE_CSV|FILE_READ|FILE_WRITE,',');    if(handle<1)    {    return(false);    }    else    {    FileWrite(handle, "Bidibidibadibum");    }    It works on my OnInit function, OnTick, OnChart, it works...
[Deleted]
I'm looking for an update to a Metaquotes tutorial on best practice and practical steps for creating an indicator. I found https://book.mql4.com/samples/icustom but it's outdated and doesn't follow the new MQL4 routines such as OnCalculate. I'm looking at sample code which does include the new...