MQL4 and MetaTrader 4 - page 1292

We used the same EA SET but the only different is that I have a DEMO account and my friend has a LIVE account. why is it showing us different results?
[Deleted]
  What is wrong with my code?  (11   1 2)
Hi, I need a little help here. I have this EA tied to a custom indicator. The indicator is a Fisher transform. In my code I have this logic: if(fish0> -0.2 && fish1 <=-0.2) New Buy Order/Close Sell Order else if(fish0<0.2 && fish1>=0.2) New Sell Order/Close Buy Order Here are the files and a screen...
[Deleted]
Hi all; I use MetaTrader for just some few weeks. I trade on M1 and M5. My real trading indicator is Bbands. I want to use Bbands with EA but I don't know how is make... Please help me.....
[Deleted]
Hello, How is OrderProift() calculated for open orders? If I'm long from 1.3000 does it calculate profit against the Close[0], Bid, or Ask? I couldn't find this anywhere. Hope this is not a repost. Thank you for the help!
[Deleted]
Hi it's my first EA and i got stuck, im trying to create EA with bands that will buy or sell when ever the price is touching the bands. when im back testing it i get error message "TestGenerator: unmatched data error (volume limit 206 at 2010.04.01 03:00 exceeded)" or the second error msg is...
Guys please make this ea to trade only once when conditions have met and even if it's closed manually not to take new trade before new conditions will met. Thank u.
[Deleted]
  New to scripts  (9)
I am new to scripts. Created as a try. int start()  {  int A;    while(0==0)    {     A++;     Comment(A);      Sleep(10);      if(Close[1]-Open[1]>0)      {        Alert("Bullish bar");        break;      }        }   return(0);  } The problem is: when I put it while previous bar is bullish, it...
[Deleted]
Hi In my EA, i have the following code if (CalculateCurrentOrders(Symbol())==2 && ratio!=3)   {   Print("inside "," current orders : ",CalculateCurrentOrders(Symbol())," ratio: ",ratio);// i have deleted ordersend to simplify it } Print is equal to : current orders : 2 (which is correct), ratio:...
[Deleted]
I'm new to this. Does anyone know how to call mql4 functions and pass parameters by reference. I've searched for hours now ... I've also tried one dimensional arrays (as described for external dll calls.) How do you do this ??? Thanks in advance. // Function returns total of open orders: Open...
[Deleted]
  Quick Question  (4)
Searched for this but couldn't find a straight out answer does MODE_TICKSIZE indicate if the broker uses 4 or 5 decimal points on the EURUSD? When I check MODE_TICKSIZE on my current broker on the EURUSD, it comes back "0.0001" -- four digits, and indeed my broker only uses four digits on the
[Deleted]
Given Terminal rumblings internally, I'm not at issue with having any type of exact on/off cycle. Just require something that will cycle on/off without 'user' help alongs (**) background: 1. OBJ_LABEL object created with text. 2. eg: ObjectSet(sName,OBJPROP_CORNER,<0..3>); ObjectSet(sName...
[Deleted]
Hi, For an EA, i would like to select the 2nd oldest opened order on a symbol. I have try many things but i still can't do it. Does anyone can help me ? Thanks in advance for your help! Regards, TAAD
[Deleted]
  MA cross problem  (6)
Hi Can anyone advise me what is wrong with this code? Logic is to long 2 lots when 12EMA and 26 EMA meets, however backtesting this EA resulted in zero trades executed. /+------------------------------------------------------------------+ int start() { if(iMA(NULL,60,12,0...
[Deleted]
  Script structure  (2)
int start()  {  int A;    while(true)    {     A++;     Comment(A);      Sleep(10);      RefreshRates();      if(Close[1]-Open[1]>0)      {        Alert("Bullish bar");        break;      }    }   return(0);  } Sleep(10) is to ease pressure on processor. while(true) is to make the script search...
New article Transferring Indicators from MQL4 to MQL5 is published at mql5.com: This article is dedicated to peculiarities of transferring price constructions written in MQL4 to MQL5. To make the process of transferring indicator calculations from MQL4 to MQL5 easier, the mql4_2_mql5.mqh library of...
Hi, I want to expand my knowledge in auto trading so I'm looking for resources about auto trading. For example I'd like to know how my backtest graphs should look like, what should be the range values of profit factor, max drawdown, etc... and mathematical essential knowledge to design a good...
[Deleted]
its my first EA and i have a problem, im trying to buy or sell when ever the price is touching the bands, but when im doing back testing it doesnt show me they touched the bands, or it show me that it touched just one's, it doesnt make any sence. let me know if u want the full code thank you for...
[Deleted]
Hello All, I would like to know whether it is possible to run more than one mt4 MOBILE (Windows Mobile 6.1) client at the same time in a mobile phone. If it is so, please let me know the procedure. Thanks
[Deleted]
  Boyce  (2)
What is Boyce Codd Normal form?
[Deleted]
Below is what saw on sale page of XPP - a new robo millionaire maker... (yeah, sure) What interests me is HOW can one dynamically and assume in real time, do display of 'current' broker slippage. Their point for all this is that (apparently some) brokers can/do ramp up slippage values, which of...
Hello Guys, my OrderSend command sometimes returns -1 and sometimes goes trough. What does return code -1 mean please ? This is from expert log: param 0 - param 10 are parameter and their values for OrderSend;param 0=Symbol. The EA was attached to EURUSD chart. As you can see, the first order is...
[Deleted]
Hello I know you can have Reuters datafeed on Metastock software via quotecenter, but I would like to have it on metatrader since I think that's better software for my kind of trading. Anyone knows if it is possible and if so, how? thx in advance :)
Hi, Here is my cycle to check the last closed order, to decide how many lots the next order will open. It works fine, but I would like to introduce some break time, e.g. 12h or 24h, if the last order were a loser one. I just can´t figure out how can I do that. I already tryed in so many ways, but
HI, Is there a way to obtain the long price or the short price that the trader had placed from the broker server (IBFX)?
[Deleted]
  Need help on my EA  (15   1 2)
Hello together, my problem is that the EA didn´t change the Stoploss. Example low[1] 1.0000 low[0 current candle] 1.0009, so now current candle is closed and low[2] 1.0000 low[1] 1.0009. the new stoploss...
[Deleted]
  Custom Back Testing  (13   1 2)
hi there, I want to adapt (c++) the backtesting function of mt4 in order to make faster back tests. I mean functions like "control of the stoploss or tradeprofit". Also the function for closing orders and calculate the profit correctly. Does anybody know where to start? thanks in advance
Hello, What could be the cause for the Market Watch rates to differ from the rates on the chart? How can this be corrected? If for instance the EURUSD in the Market Watch shows a 2 pip spread (standard account conditions), and the chart itself shows 3 pip spread (mini account conditions). The
B"H Hello! At the "Execution Errors" documentation (https://docs.mql4.com/trading/errors), few variants of the ERR_TOO_MANY_REQUESTS error are described, but I find the explanation there a bit confusing. Could someone please explain the meaning of each variant and what should be done in response?...
New article Creating and Publishing of Trade Reports and SMS Notification is published at mql5.com: Traders don't always have ability and desire to seat at the trading terminal for hours. Especially, if trading system is more or less formalized and can automatically identify some of the market...
[Deleted]
How could I remove an indicator from the window? Please