MQL4 and MetaTrader 4 - page 988

Hello MQL4 community, I am trying to conjure up a solution to create an "artificial order" and partially close this artificial order just as my EA would partially close a real order. I want to do this because I wish to see if the last "artificial order" closed in netted profit or netted loss, so I...
Hello MQL4 community, I have two questions. 2. orderclosing question. Objective: Open a buy order when iMA 1 > iMA 200 (shift1) AND after the sell order of 0.01 lots closes. Current code displayed directly below-    OrderSelect(i,SELECT_BY_TICKET,MODE_TRADES);...
hello everyone i am new here i am trying to build my ea base on this template , can any one help me to add these extern variable    (  trading time with the starting and ending :  ; max number of position ; hedge ; )   #property copyright "Expert Advisor Builder"#property link      "http://sufx...
Is it possible to program an EA the will be given a certaincommand to another EA; may be an EA attached on 1 hr chart given a certain commandto another EA on a 5 min. chart? For example an EA on 1 hr. chart when a certaincondition is meet on it, it will give a command to another EA on 5 min. chartto...
[Deleted]
how start a fx brokerage company... pl. explain step by step the process
Because of it's complexity and it's cutting off the throats of a lot of programmers and traders that are well versed in MQL4.  With that said how long will MQL4 survive?  Will MT5 fail to ever phase out MT5?  I'm hoping not because in my opinion it really sucks.  
[Deleted]
I run the tester and click on chart i see daily bars but no data from the tester  
Hi All,  I'm coding an EA and I'd like to move the stoploss of an order up to the opening price if the Bid is a certain number of points above the price the order was opened at.  I have some code, and it does modify the stoploss correctly, however it also generates an OrderModify Error 1 on each...
[Deleted]
I read that this can happen when an EA is doing an operation, and another one ALSO wants to do the same kind of thing. My doubt is... if I have a single EA, working across multiple charts, will it trip all over itself as if it were multiple EAs? Thanks!
Greetings, I would like to know if there is a function to convert text from Uppercase to Lowercase and vise verse. something like this: Let's say string variable 'a' might contain some version of the word 'buy'; instead:  if (a=="buy" or a=="Buy" or a=="BUY")..  etc. I'd like to use: if...
int ticket;   if (allsignal==1 && total<3 && enableopen==true)                                                       //condition allsignal is alligator signal,total=orderstotal()<      {      ticket=OrderSend(Symbol(),OP_BUY,lotsize,Ask,slippage,0,0,"Order #2",NULL,Magic,Green);  //entry market...
[Deleted]
  MarketInfo()  (5)
I am trying to use the MarketInfo() command but I must be doing something wrong. The company I trade with is Oanda, in case that makes a difference. Here's my code: double Spread = 0;  Spread = MarketInfo(“eurusd”,MODE_SPREAD); Alert(“Spread = ”,DoubleToStr(Spread,10)); Here's the output I get:...
Hi, say you want to change the window length of your indicator to the number of bars since its last turning point, you would do that like this:      for(int i=0; i<limit; i++)   {       ExtMapBuffer0[i]=iMA(0,0,10,0,0,0,i);   }   for(i=limit-1; i>=0; i--)   {      double curr = ExtMapBuffer0[i];...
Hi: Thanks for your help on my question. I have setup an ea with specific conditions that works better with a manual entry/exit. I would like to generate a signal that can be sent by email or text msg. Any guidance on this? Thanks again.
[Deleted]
Hello, would you please know how I could calculate a currently used margin for all the open positions on a currency pair?    Thanks a lot! Pavel 
hi all, i need some guide on writing a code, can anyone show me suggestion and how i do it? what i want is i have a few indicators, and then i only want a signal coming out from each bar for 3 different indicators so for one bar, maximum signal i get is 3 and then i trade once only with each...
[Deleted]
I added the OrderCloseTime() to both if statements thinking that would put an end to this invalid ticket for ordermodify function error but every once in awhile my EA will lose control of all the orders and somehow mix in a closed trade and continously try to modify it over and over making huge log...
<SNIP>   here is what i had written so far, when i tested on strategy tester, no trade was occur, i compiled the code with no error no warnings,can anyone tell me why  ? also is there anyone to give me suggestion on perfecting it? 
Hello, extern int iHeureDebut = 9; // Heure du debut de la plage horaire du filtre horaireextern int iMinutesDebut = 30; // Minutes du debut de la plage horaire du filtre horaireextern int iHeureFin = 20; // Heure de fin de la plage horaire du filtre horaireextern int iMinutesFin = 30; // Minutes de...
hi all, i need some guide on writing a code, can anyone show me suggestion and how i do it? what i want is i have a few indicators, and then i only want a signal coming out from each bar for 3 different indicators so for one bar, maximum signal i get is 3 and then i trade once only with each
  Cure conspiracy theory  (153   1 2 3 4 5 ... 15 16)
An entry signal is given (e.g. buy). The Expert Advisor opens a position , places a calculated stop loss. The price which has been steadily increasing until then, instantly reverses and runs downwards to the stop loss, sets it and sinks the order. The Expert Advisor opens a sell position with a stop
Hi I am looking for an MT4 trader who lives in the Illawarra NSW to code an EA for me. Thanks
[Deleted]
Hello, I have to make a robot for Arbitration in two types of coins? Currency A and B for MT4 Buy "A" at the top and sell "B" in the background at the same time, when you find the price difference.
Hello MQL4 community, While coding MMA_Volume II I ran into some problems that need solutions. MMA_Volume II original code is only about two thousand five hundred lines of code, which is relatively small compared to where it stands now in regard to code length. It now stands at about sixteen
Can anyone tell me if you can run the same EA on multiple pairs simultaneously and have each work independently of one another ?
[Deleted]
  mql4 programming  (3)
Now is the best time to order expert advisor or indicator programing service from our company. We can recommend additional extra features for your robot or indicator to make it more profitable.  We will provide you with most professional expert advisor programming service in the internet. We have...
  pending orders help.  (13   1 2)
I am using MT4 with my broker OANDA.   I am trying to setup a macro the will place pending orders for both buy and sell. My problem is that F9 brings up the trade window and then I can use tab to get to change the order type to pending however the numbers are all zeros. The only way I have found to...
[Deleted]
  EA Backtesting - How To  (11   1 2)
Hello @ all,  I need some help with the backtesting of my EA. Here is the overall structure of the EA:   extern int ticket_b1;extern int ticket_b2;extern int deleted = 0;extern int deleted_tmp;extern int order_type;int init(){      return(0);}int deinit(){   return(0);}int start(){   // At this...
[Deleted]
I have a fxcm metatrader system and using the mt4 version. The download is okay but I am facing problems with the format in my Excel sheet. When the value is above 1 like the eurusd the input has to be divided by 100.000 to achieve the right value. When the value is less then 1 like the usdcad then
Hi guys, i would like to ask for a favour.. i need an expert advisor, that its deactivateing<for the current day> all the another expert advisors activated on the account, when an X ammount of pipps it was been reached.. then on the day 2 its reactivateing back again from 00:00... The expert also...