Download MetaTrader 5

MQL4 and MetaTrader 4 - page 695

To post a new topic, please log in or register
Hello there! Quick question, I know you guys get a ton of these, but I hope someone cares enough to help me out. My current EA logic looks like this; double signaldown=iCustom(Symbol(),0,"OS",2,1)double signalup=iCustom(Symbol(),0,"OS",1,1) (both value's 1 & 2 are a number). Now; - I only want...
I completely understand it now...maybe it was too late for me to realize that coding for requests in mq4 community was long time ago.today,nothing in this world comes for free.Thats a pretty good lesson that you have taught me.Afterall,where would all the brilliant programmers go when they dont have...
Hi, Every time I open MT4, it tells me I have an update to Ver 4.00 Build 409 (from build 406). I click on the update and it does it's thing, asks to close MT4 and restart. That's OK, but it then wants me to update to Build 409 again when it has restarted. Anyone got any solutions?
When testing my EA in MetaTrader4 I not only get the arrow to indicate where my pending order was placed on the graph, as well as another arrow where the order was fulfilled and a dotted line plus another arrow where the trade was closed. But in running the EA on a live demo account I only get the...
Hi, I have JJN Fibonaci indicator, and I'm using it for daily basis ploting daily Fibo levels. The problem is this indicator uses server time as indicator start time, so I would appreciate if someone could help me and recode indicator so it would ask what time shift i need to use, something like...
Does anyone have a DMI indicator for MT4 which would do a net number between DI+ and DI- Example DI - = 40.897 DI + = 7.7854 DI (net) = -33.1116 I've only been able to find DI+ and DI- in an indicator and not been able to find a DI net (DI+ minus DI-) Can anyone help?
Dear friends: If the orders have been set taking profit or stopping loss, they take profit or stop loss, how can i get it? thanks!
Anyone can edit this to kelly strategy or divided by 10. my lot size is 0.10 when starting equity is $250 this should change to 0.11 when equity growth to $500 ------------------------------------------------------------------- if(Money_management) { switch(AccountType) {...
can i put 2 diferent strategy in only 1 expert advisor? i try to compile this 2 expert togeter,but doesn't work why? exemple: MA and MACD //+------------------------------------------------------------------+ //| Moving Average.mq4 | //|...
Hi, I'm just starting out to use MQL4, and I want to code an EA which would act like the default Moving Average EA of MetaTrader, I have no error when I compile, but it never sends any order when I try it with the Strategy Backtester.. Here is the code: int start()  {//----      double MA = 0.0;...
Hello ; How to resolve this problem : when I pass an order : there is a message " erreur fréquente " in english it means " common mistake " and its problem begins since this morning thanks
Hi there, I'm looking for a simple RSIwith sound alert. I've found many similar ones but none works as what I wanted.Really appreciate if anyone can help to code the alert into the standard RSI. Iwant to use this together with other indicators I use. The following is the criteria: 1. When RSI...
guys: there is a button called symbol properties in the tester, which gives the major porperties of the chart symbol. and there is "spread" and "stoplevel" in it. the current value of those two is 9 and 20. my question is, what is the measurement of "spread" and "stoplevel"? pips or points? regards...
guys: my mt4 version is build 406, and the demo account is alpari company. i used the predefined variable "point", and found that the value is 0, which is not real in the real trading situation. i also export the value of "marketinfo(symbol(), mode_point)", which is also 0. somebody say that the...
MetaTrader 4 Terminal build 406 Corrected Hebrew, Turkish and Portuguese translations.Added a link of www.mql5.com/en/job in the MetaEditor.Fixed errors reported in crash logs.The live update will be available via the LiveUpdate system.
Hi, I am a competent programmer, but new to Meta Trader. I have an algorithm implemented in C++ (on Windows) and would like to use it to trade automatically. The question is whether it is possible to use it somehow (as a DLL for example, but interested in any solution) without completely...
I have a couple of questions that I cannot find the answer to: 1. In the iMA technical indicator can you only use 1 min, 5 min, 15, 30, 60, 240, etc or can you use 480 for 8 hours? 2. In the moving average indicator that you load on the chart; if you put in 15 does that mean 15 min or 15 times the...
I am running my metatrader on a virtual server that is located a few blocks from the NYSE, found it here http://bit.ly/vhywEl I was not sure if the GEO location of the server had much effect on the trading as the application is now running much faster from my old host. Not sure if the change in...
Dear expert: I use history data of auto trade system to test the function,the value of RSV is zero,Please tell me why? while(i>=0) { MaxHigh=High[iHighest(NULL,0,MODE_HIGH,nPeriod,i)]; MinLow=Low[iLowest(NULL,0,MODE_LOW,nPeriod,i)]; if (MaxHigh-MinLow != 0)...
  iMAOnArray issue. (12   1 2)
been looking for a solution to this.. having troubles. a very simple EA that initialize an array with values.. and prints the results of iMAOnArray. //+------------------------------------------------------------------+ //| expert start function |...
I have an EA I that I am trying to make a couple edits to. The EA allows you to manages orders by dragging the H-lines and it displays a text label identifying the H-lines, currently the lines display on the right side on the chart (beyond Bar[0]) and I need them on the left side (where MT4 puts...
Im wondering if its possible to set a delay timer between trades? I'm working on automating a strategy, but there are some times when conditions are met that trades will open and close faster then you can blink. I'm wondering if we can say "For the next 10 bars, do not open any new trades", or...
Where I am a little unsure here is under the Sell and Buy code. In other words the If(Condition1 && Condition2) goes to another If statement for my final requirement?? Seems like we would need and else in here. JimTrader1
I'm trying to figure out how to get my EA to sleep for X amount of time after ithas made N number of losses and then continue to trade as usual when it wakes up.Can anyone help me with this coding?
Hello Guys, I'm new to MT4 this big family and hope can get some help. e.g. OCO order was triggered on candle A, if the entering condition fulfilled on candle B,i don't want to enter.If the entering condition still fulfilled on candle C then opening a position. Could someone give me a help? Thank...
New article Creating MQL5 Expert Advisors in minutes using EA Tree: Part One is published at mql5.com: EA Tree is the first drag and drop MetaTrader MQL5 Expert Advisor builder. You can create complex MQL5 using a very easy to use graphical user interface. In EA Tree, Expert Advisors are created by...
i use proxy server setting such as "localhost:9332" with no username or password in build 401 it works fine, in build 409, the "test" button now tells me that it is not okay. i.e. i have 3 MT4 running, the two that upgraded to 409 - have stopped working. For some reason the third refuses to...
int n = ?;    if (OrderSelect(n, SELECT_BY_POS)==true)   {        ticket_number = OrderTicket();   } If I have only one order open and no pending orders, what should the value of n be in order for me to determine the ticket_number of the open order? Thanks.
Hey. Ive been fiddling about with the trigonometric functions in MT4 and have come to a conclusion that the ArcSin, ArcCos and ArcTan functions are really outputting the hyperbole of the individual functions. Is this true? Here's how i use them and what i expect: Right triangle a=1, b=0.5, c....