MQL4 and MetaTrader 4 - page 958

[Deleted]
Is there a way to assign the sequence of how buy and sell stops would be executed regardless of entry price? For example, if I have 2 buy stops and 2 sell stops, the first sell stop will only be trigerred if the first buy stop has already been executed, the second buy stop would be triggered if the...
[Deleted]
Hello, I developed a expert advisor that use Matlab to generate the trading signals.  The expert advisor when a new bar arrived then write this bar in a file, then Matlab read this new bar and the model (genetic neural network)  generate the trading signals and write the trading signals in a file....
please anyone help me to modify this expert advisor.this expert advisor only trade open demo account not a trade open real account.so modify this expert advisor trade open in real account         thanks   <DECOMPILED CODE REMOVED> 
Hi there folks, I am trying to do the following: - once trade has hit take profit 1 - set stop loss to current market price (this won't be possible since TP and SL must differ from market price, but it should be possible to make the EA close the trade, correct?) AND    - set new take profit to...
[Deleted]
I received a set of MT4 API samples from my client, asking me to assess feasibility of a project . But the samples are all in Delphi language. I am wondering if we have samples of PHP accessing MT4 API? Please kindly help. Thanks, Aaron
[Deleted]
Please How can i setup MT4 trader on my blackberry curve or which of the phones supports MT4 Trader
[Deleted]
Merry Christmas and a happy new year to all fellow traders and coders!
Greetings everyone , I'm new to the language MQL4 , and would help to make two checks , if they can help me , how I could do these checks , follows : checking if the last trade has been lost or not. check which was the lot of the last volume of trade . Could someone help me ? Greetings
[Deleted]
  A truly amazing result!!!  (85   1 2 3 4 5 ... 8 9)
Code: void DebugInfo ( ) { int a = 23 ; int s = 20 ; int f = 1 ; // Исходное условие bool r1 = a > = s & & a < = f & & s < = f | | ( a > = s | | a < = f ) & & s > f ; // Дальше пошли извращения bool r2 = a > = s & & a < = f & & s < = f ; bool r3 = ( a > = s | | a < = f ) & & s > f ;
burried in the html statement is also the file name of the EA that generated the trade, or rather sometimes. I have one EA that the name is not being included. This statement.html is including the two others matched to the trades. Just need to find out why not/how to get this other one listed in...
Is Meta Trader 4 compatible with MS Windows 8?
Hi all  I'm tryi g to program a custom indicator on MT4 that I used to use years ago on IT finance I have tried to simplify it from using bollinger bandwidths to considering price standard deviations and ATR's.   Trouble is that my coding skills are only one day old... I have managed to get one...
Hello MQL4 forum, Monday, Dec 24, 2012, 6:25 pm. Market Watch reads, 19:59:59. As far as I can recall, the FOREX trading week begins sunday and ends friday. I've connected My MT4 terminal to demo, live, default and different servers with 76/1 kb ratio server connection, but the market watch still...
[Deleted]
Hello, I am new on this form. Kindly help me how to use it for my benefit. I ll really appreciate if someone can guide me through from the start. 
[Deleted]
Hi Experts, I am very much new to use MetaEditor. I have a simple requirement like I need to delete a file whenever the current date(i.e., System Date) = Specified Date(May be hard coded to some date). Can you please help me out how can I achieve this. I couldn't found any function which returns the...
  email setup  (4)
Hello, I would like to setup EA to send emails. My problem is that I don't know what to put in the following fields and where to get info that I must put in those fields. 1 SMPT SERVER 2 SMPT LOGIN Please help 
[Deleted]
What is residue of division? i dont get it... seems like division but is not o.o And also, what's the difference between True, True(1), False and False(0) 
Hello, I am looking for a function or EA that closes all open positions when the equity reaches a certain amount. Basically a SL or TP for the entire accont. I want to use it when I open two positions that hedges themselfs. e.g. Balance 1000$ I open two positions manual. Long Dow Jones, short S&P500...
Hello everybody. I wanted to ask what I can do if I need to backtest an indicator based on the recent strength of other currencies. Here at this link there are few indicators I wanted to use in backtest but seems that is not possible. https://www.mql5.com/en/articles/1464 Can somebody tell me what...
how is it possible that an expert advisor be coded to do the following: buy when the price trend is going up and sell when its going down. (this is only a part of my ea plan)
Hello To begin with I only trade the USD\CAD so that way you knowthat I don’t have a bunch of different pairs going to help make this simple. I already have an existing EA that I use from time to timebut the problem is that it opens duplicate STOP orders when it is only supposeto fill in one STOP...
[Deleted]
hallo, I'am new here and in mql4 ;( , but I want to learn and i hope, somebode could help me. ... I tried the hole night , but I didn't find a solution!!! How can I get my iCostum() get running. I want to integrat the DSS Indikator into my EA with iCostum().   "DSS.mq4" is in -->  C...
[Deleted]
Hi everybody   i've written this cycle code but i don't know why an error always happens:  the code:   for(index=OrdersTotal();index>=0;index--){              if (OrderSelect(index,SELECT_BY_POS)==true){                   if (OrderType()==OP_BUY && MarketInfo(Symbol(),MODE_POINT)>upBB){...
[Deleted]
i have some curious, how to coding 1 ea with different strategy ? how to code these trading condition ? using {&&} {||} and {else} ?? give me some guideline ... thanks to everyone.
[Deleted]
  Market formula.  (89   1 2 3 4 5 ... 8 9)
Market formula - what is it? What is it for? How to profit from awareness of it? Suppose there is such a formula and it can be used to reproduce countless "parallel" price series, which are endowed with the characteristic of operating ones, what profit and from where were you going to extract
Hi all,  I'm using the below code to prevent any new Order from being sent if there is already an Order sent to server within the same candle. This code works fine......   <SNIP> similarly i substituted the lastorderbartime to lastclosebartime hoping that i could use the same code to prevent a new...
[Deleted]
j ai téléchargé un  ea basé sur le croisement de deux moyennes mobiles et je souhaite y ajouter un multiplicateur de volume ; j ai essayé mais pas de resultat 
  OrderModify() question  (53   1 2 3 4 5 6)
Hello MQL4 forum, {OrderModify(ticket, 0 ,Ask- 500 * Point , 0 , 0 ,Blue);}}}} The code above works, but moves the sl up or down as the ask price moves up or down. I tried this, as a solution... {OrderModify(ticket, 0 ,OrderOpenPrice()- 500 * Point , 0 , 0 ,Blue);}}}} (the order being selected is a
 Below, after the start function , in the for cycle, i am triying to calculate increase/decrease ratio of bars. the bars from 1 to 48 . you will see red sections for calculations. result is always zero. why? i have tried braces.    <SNIP>
Hi, I'm trying to get an MQL4 program to talk to a C++ program via memory space instead of file handling.  I have run the following example successfully: http://msdn.microsoft.com/en-us/library/windows/desktop/aa366551(v=vs.85).aspx Now i'm trying to port the "second process" to MQL4. I'm trying to...