Download MetaTrader 5

MQL4 and MetaTrader 4 - page 580

To post a new topic, please log in or register
I've a major problem with My EA as detailed below; please help and advice with partially written CODE as possible. Introduction: My EA is instructed to start by certain neutral conditions, till only one of the GoLG (buy) or GoSH (sell) condition(s) is met.The last OrderType() should be stored in...
I had some spare time today after I was talking to a friend who has been toying around with MetaTrader 5, so I decided to download a copy of MT5 from this site and see what he was talking about. Later I went back into MetaTrader 4 to finish up some editing to an EA I had been working on, after 1...
I don't understand the logic behind NOT offering robots on mobile platforms. If one of Metaquotes objective is to popularize the meta trader i think NOT allowing robots on iPhones or Android is severely hindering meta trader's growth... (I don't get it!) Can anybody explain the logic behind this...
  Finding my ID (3)
Hi, how do i find my MetaQotes/MetaTrader ID? the instructions (Tools>Options) say it's located at Settings>Messages can't find it thank you Randy
I've been setting my stoploss and takeprofit based on price volume.So I created this indicator that determines the high and low for some number ofbars and uses that spread to place two moving horizontal lines indicating wherethe stoploss and takeprofit will be if a trade is opened. I think it helps...
Hi all, I'm trying to recall the closing time for the last order executed on the account for a certain currency. What do you think about this code? Thank you! total_history = OrdersHistoryTotal( ) ;    for(cnt=0;cnt<=total_history;cnt++)     {     OrderSelect(cnt, SELECT_BY_POS, MODE_HISTORY);...
Have you ever heard about the site http://www.forex-einstieg.de or something like that? As far as I know, if you look for German brokers then you will get help from this site.
Hello. I have no idea if this is the right Forum, or if this has been asked before, but I am using the latest build of MT4 and there is NO WAY TO KNOW WHICH TEMPLATE YOU ARE CURRENTLY USING. Can't believe this has been an oversight for SO long, please, in the next build, have this info somewhere,...
Hello, is it possible that there is a BUG in the OrderSend()-Function? For few weeks the OrderSend() doens't work correct. When I have a SL in my OrderSend(), the EA doesn't open the order, but when I set SL to 0, then he opens a order and I have to modify the order with OrderModify(). Why?...
ı did a indicator and ı need to use it in my EA. ı know there is iCustom code but ı didnt understand to use it please help me .
Dear all, I would like to know, if I put entry condition in an indicator and put order execution in EA, is it still able to perform backtesting for this system? If yes, how? Thanks for your kind help. wing
Hi everyone, I am looking for the simplest code in order to get the daily Highest/Lowest value of an indicator. For example we run CCI indicator with CCI_Period=12. This indicator has many picks as lowest or highest value in a day. I am trying to get this values in order to compare it with other...
As you see on the picture the green line is over the NULL-Line, but the indicator repeats negative values (by mouse-over). May be I have to restart my MQL4.
Hi,I'm so new to MQL4. I wanted to test this sample code that is in toturial : -------------------------------------------------- int Count=0; // Global variable//------------------------------------------------------------------- int start()...
I just got a Verizon JetPak HotSpot so I can connect to the internet with my laptop when away from a wifi connection. It works fine for browsing the internet, but my Forex Oanda account will not connect. If I turn off the hot spot and then connect using my home wifi, Oanda's MT4 connects immediately...
Hi is there a way someone can change the background of the performance chart that is generated when you generate a report from mt4(not the chart in the symbol window).
In an indicator, I'm trying to modify the fibo description of a fibo object I created. The code to create the object works fine: ObjectCreate(objFibID,OBJ_FIBO,0,Time[HighestBar],High[HighestBar],Time[LowestBar],Low[LowestBar]); "HighestBar" and "LowestBar" are integer variables. After a couple...
Is there any way to programmatically retrieve the name of our EA?
If I make a trade using OrderSend() or OrderClose() then want to look at the number of lots or execution price on the ticket, do I need to make a further call to OrderSelect to get this ticket, or does this happen automatically? Eg if I call OrderSend() then OrderMagicNumber(), is the magic number...
I want to sendorder on the 5 minutes' duration use this bar's open price, how I can do? The condition will true in the pre-bar. Sorry for my english... Thank you very much!!!
Dear forum, I'm trying to get the previous two, fixed ZigZag values -- I've tried the method found here, but it doesn't seem to work. What I have now is this:    for(int k = 1; k < Bars; k++){   // Get most recent ZigZag      if(iCustom(NULL, 0, "ZigZag", Depth, 5, 3, k) > 0){         ZigZag =...
Hi, I've been looking for a custom indicator that identifies divergence between price and the OSMA, to help compile a simple EA based on osma divergence Is there already a custom indicator that does this? Any help will be much appreciated! Thanks
Hello! I'm just trying to add an email alert to this indy similar to the popup alert box, but I"m getting an error (highlighted in yellow below). Could you please help me to correct the 'wrong parameters count' error message in this indy when adding the email alert?...
thank you i can not search file .mql4 thank for help
Could someone please tell me why I can not access MB Tradings website and utilize the MT4 software which I have downloaded? It is Tuesday 07/17/2012 at 20:56. I would truly appreciate a helpful response. Warmest Regards, Jen
  Close basket profit (28   1 2 3)
Can you help? Does anyone have an EXPERT that can close the positions at a given profit ($ 20) of a single currency on a portfolio of more than one currency? thanks Potete aiutarmi? Qualcuno ha un EXPERT che può chiudere le posizioni ad un dato profitto (20$) di una singola valuta su un portafoglio...
I was reading up on the push notifications, with an android phone. I have a custom indicator that gives buy/sell alerts, could the notifications be used to send the alerts directly to my smartphone?
Hi, How to convert indicator to EA? Anyone can tell me. What support to change if indicator convert to EA? I'm newbie...
  Demo only EA (6)
Many of the EA's available for purchase offer a demo mode only or strategy tester only mode for "trying" out the EA. Will someone please provide the code for allowing a EA to run in demo and/or strategy tester mode only? One additional question. I purchased one EA when I first began looking into...
Just wondering if this would pose a problem, as it compiles, but I don't believe it will work. string BuyOrSell = "Both";int intOrderType;if(BuyOrSell == "Both") intOrderType = OP_BUY || OP_SELL;