MQL4 and MetaTrader 4 - page 527

Hi, i would like to find whether my previous order closed with s/l or t/p? please advise me to find?
  Tile Windows  (4)
Hi   Is there any function for "tile window",  Like we do it by pressing Alt+R.   thanks.
I work from a laptop and a desktop with multiple monitors. I enjoy doing my analysis on my laptop while in the living room, patio, etc. What I would like to be able to do is to do my analysis on my laptop and have it update to my desktop as well, so when I sit down to trade at my desk, I already...
Hello, I try to verify in the strategy tester if the actual bar bool LastBarInThisMonth = false;LastBarInThisMonth = CheckLastBarInMonth(Time[0]) is the last bar in theactual month. I tried to write these two functions. bool CheckLastBarInMonth(datetime MyTime){   datetime MyTimeArray[];...
Hello, I try to dowload data 1 time by day at 00:01 and write this code and i want the data of previous day from 00:00 to 23:59      deb=TimeCurrent()-86460;       fin=TimeCurrent()-120;       for(int x=0;x<ArraySize(tab_pair);x++)    {       MqlRates rates[];       copied=CopyRates(tab_pair[x],1...
HI , I am back testing an expert on strategy tester. The report shows me Net Profit  of -545 I can not understand that it is 545 money or 545 pips? If this is 545 dollor so please tell me how can I see the number of pips in the strategy tester report?  Regards. 
This has been an ongoing problem I encounter over the last 4-5 years, when I have 4 monitors on my desktop system, which is amd dual core 12mem 2 evga GeForce 210 video cards 1gig. If I change to 2 monitors the problem goes away. When ever I load/change a trend line/fib/color/etc the popup box...
Hi all, My android mt4 version is 400.636 , but for a long time and several versions I've seen this: 1, it can not remember data --- every few minutes I turn screen back on to check forex (my wifi is alway ON), BEFORE mt4 can successfully connect to internet, it lacks lots of data (the latest 30
If I try to backtest together in a single test session from 2000 to today, EURUSD TF M5 Tick by tick, it stop the backtest in the middle of 2009...   If I split the backtest in 2 parts: 2000->2008 and 2009->today everything works    If I use open prices it backtest all period 2000->now together   I...
[Deleted]
  Candle Question  (1)
Can anyone point me in the right direction as to how I would be able to draw an arrow on each candle that meets a certain criteria?  Not just an arrow on the first candle, where the criteria is first met. Thanks!
Dears,   Please refer to the script below. When 'total' is over 1, all open orders must be closed with the script almost at the same time.   However, when I tested it in the strategy tester, you can see the 2 orders below were closed with so long time gap in the screenshot/printing below. Besides,...
Can we know the last template name that was charged in a chart? Open chart -> Apply template -> XXX time passed (maybe close and open terminal) -> Request template name?? BeLikewater
Hi, Is it possible to automatically re-load a loaded indicator say after a compile ? It is possible to reload, if we open metaeditor and click on compile on any of the files. It doesn't matter which file, meta-trader will refresh and re-load the indicator. Can we do it manually ? I downloaded the...
[Deleted]
Hello, i have create a Renko Offline Chart and i am wondering why a EA does not show me infos which i write into "Comment()" function, does the EAs dont run on offline charts, or do i make somethink wrong?
[Deleted]
What wrong with this code..!! call --> CloseButton(-9,-9,-9); only order Symbol on active chart  closed .. order ...in other Symbol & chart NOT.closed ....! any clue..? void CloseButton(int bs,int magic,int loosprofit)  {   for(int i=OrdersTotal()-1; i>=0; i--)     {       if(OrderSelect(i,...
Dear friends, Is this possible to invoke mt4 strategy tester to test some EA with different parameters and testing period programmatically in batch mode? Let's say I'd like to test EA over period 1 on one currency, then on another, then have the output (best parameter values) stored, then proceed...
//+------------------------------------------------------------------+//|                                                        Genie.mq4 |//|                                                   Genaro Gravoso |//|                          http://www.oocities.org/ggravoso/b.html...
Here's a where.Lower "Print" prints "1.loss 1" and the upper 0 .Who can help ... while(1)   {    Print(" 1.loss ",loss,   " profit ",profit); ....................... .......................        if(profit>0)           {            loss=0;           }         else           {            loss++;...
I'm wondering if I'm the only person with this problem because I can't seem to find anyone else that has experienced this issue. I have 4 monitors running on win7, one machine has 8g mem 6 core amd and 2 video cards, the other machine has 12g mem dual core amd and 2 video cards (GEForce 210). When I...
Hi! I tried to backtest and optimize EA, but I got zeros in backtesting and optimization tabs- 0.00. Why?
Hi, I have a problem. If I change the timeframe on a chart with EA running, the object what my EA writes stay unchanged. I like the write on the chart example the profit. After TF change the profit write refresh doesn't work, I see example 0 if the start profit was 0. Here is my code from my EA: int...
I've got a couple of them where I'm getting this and I'm lost. 1st up: int myDigits = MarketInfo( Symbol(), MODE_DIGITS ); Now, help text has some sample code that leaves me to believe either I'm not reading it right or I'm loosing my mind:    double vbid    = MarketInfo("EURUSD",MODE_BID);   double...
Whenever the file.csv Im using in script is being used by windows the system "freeze". What should I do? //+------------------------------------------------------------------+//|                                       Open_my_Charts.mq4     ////|    BeLikewater(forexfactory.com) email= nitx20@hotmail...
Does anyone know of a 3rd party that offers software/tick data for testing EAs? I'd love to have a second opinion. I have two brokers already that I run against but I'd like more data! I thought I remember running across something like this before I knew how to code MQL at all, but I cannot find it...
Hi all! I have a problem which I need some advice for. I would like to have automatic alerts (sound+popup, email, etc.) when certain rules are fulfilled in *any* given timeframes in a certain currency pair. I mean, if I for example would have an alert for ema(50) > ema(100), all timeframes from M5...
i am trying to install meta trader 4..every time i run the file..its downloads files..and gets stuck..it again starts downloading from starting and get stuck again.. need help..
//+------------------------------------------------------------------+ //|                                                    emadeneme.mq4 | //|                        Copyright 2014, MetaQuotes Software Corp. | //|                                              https://www.mql5.com |...
[Deleted]
Hi, After analysis of my backtest results it seems apparent that my EA would perform better if orders were not raised if the previous day an order was closed in profit. I've tried adding a function.   bool CheckLastOrder(){    for(int i=OrdersHistoryTotal()-1;i>=0;i--)   {      OrderSelect(i,...
Hi, I wrote this simple function to move two open orders to breakeven when certain criteria are met. The problem I'm having is that it moves one trade to breakeven but gives me a modify error 1 for the second. Any ideas? Thank You void MoveToBreakEven() {         for (int i=OrdersTotal()-1; i >= 0;...
Hi, I have an indicator on a 1min GBPUSD chart and it is created by looping through the bars getting the EURUSD closing price, The indicator works fine but I want to smooth this indicator how do I do it? (example please as I have tried and failed several times using iMA and iMAOnArray) P.S. Sorry I...