MQL4 and MetaTrader 4 - page 1068

To post a new topic, please log in or register
Do you believe in it? It's my system, bu, I was consulting some professionals, an they said that it's only in historic. Using 10% of the capital (10k)
Hi, Example, I want check if Buy order exist and Close condition is true, it will send order to close the Buy, and vice versa. Problem i have: Without Checking order exist, and if My close condition is true. and there was no order, it send a new trade base on close condition.. Please help.....
Good morning, I'm quite new in MQL4 programming so I only try a very simple program but it is not working perfectly. Let's explain what I would like : At 9:00 print a message At 9:05 print another message Result : If I launch the expert advisor at 8:55 : at 9:00 the expected message is written at 9...
Hi MT5 Team, Two important Enhancement required in MT5 Platform. 1. e-Mail Option - SSL is not Functioning. 2. No Security available for MQL4 Coding any one can Decompile It. Please Look into this. Thanks.
Hi, I'm just starting out in Forex trading and MQL4 (started a few days ago!). Currently, I'm writing a first EA for detecting and trading on breakouts. The algorithm detects entry positions relatively well, however to find a good exit point is difficult. Which leads to my question: is it always...
Hi, I am just worried that the EA I coded might bombed the broker server with open or close order requests when the order request fails because the market is closed for the weekend. How do you handle this? How do you safely put your EA to sleep (until the market opens) even if you are in a signal to...
Hey everyone, I'm recently getting into coding and for the most I've been things to work fine. I've gotten the email alert to work and send me an email when one Heiken Ashi candle closes above or below the other. What I want to get it to do is instead of email me when a new candle comes, I want it...
int start () { Data_HOL(); return(0); } void Data_HOL() { string n8 = "Data_HOL"; n8 = "Head_0a"; ObjectDelete(n8); ObjectCreate(n8, OBJ_LABEL,...
Hi, I want to asked how to online 1 Account on for example 3 different computer? I am on indonesia and there are a lot of problems like No Power, Bad Connection, heat, etc. I tried before to Run 1 Account on two different connection on two different place, ant the result my EA is making 2 open...
Hi all, I friend of mine is trying to apply his EA to the whole currencies in the terminal's List. I've told him that using the EA in such a way, even if well configured for each currency, is not likely to provide profit. Could you tell me your opinion? Is universal trading system realistic? Thanks...
MQL4.com is great but there isn't any file repository for things like templates, PDFs (for example trading algorithms) and other MT4 client terminal related files. For example, how about a sound repository for sound files? Or a place where we can exchange profiles? The "Code Base" is for code...
I wrote this code to close a pending order. When i run the EA the orders are not closed. Can anybody give me any help? What have i done wrong? Here is the code (part of my programme) for(cnt=0;cnt<total;cnt++) { OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES); if(OrderType()<=OP_SELL...
i'm trying to set up an ea that will place two pending orders at a given minute... my problem is i don't understand the difference between buylimit, buystop, selllimit, and sellstop... i did find this, but it still makes no sense to me... Open_Price > Bid and Open_Price > Stop_Loss -...
Hallo all! Who can me help? A foreign programm in my chart, e.g. indicator, create an alert over the function Alert(). This string appear in the Alert-window. I need a code in order to process this string which appear in the Alert-window, in my own programm, e.g. an EA. I mean an import of this...
I am trying to use a custom indicator in my EA and am not sure how exactly to do so. I am using Gravity Center2, a COG custom indicator. It has 3 external options which I have added to the iCustom but when I try to test the EA in the strategy tester it gets to about 50% on the progress bar and hangs...
Has anyone found the way to grab the default values that the MT4 platform enters into the "fixed minimum" and "fixed maximum" fields? If no fixed max or min is entered the platform automatically presets a variable max and min value to match the values entered into the default buffers. Those values...
I have been trading my robot and system for a while now. Here are some of my report of the trades. http://v5robot.mt4stats.com I will add some additional accounts later.
Has anyone written an EA for long-short pairs? (For example, short EURUSD and long EURGBP). I'm mainly interested in seeing best-case and worst-case scenarios.
I'm trying to code an indicator which is often refered to as an UP/DOWN STOPLOSS indicator within equities trading and has he following traits: a) has 1 extern variable (let's call it slvar) b) can move up/down upon close of each bar c) could retain the value from the previous bar In essence late's...
Hi, I've seen samples of indicators that use either i-- or i++ to invoke a new calaculation during loops, but wonder if somone is able to provide clear guidance when either of these could be used. I'm having problems getting an up/down stoploss indicator coded, as I have a requirement to retain the...
hi everyone.. i'm korean. my english is very poor.. i just want to evaluate my ea from you.. thanks..
The file "Fapturbo47_build224.ex4" is showing in the MT4 Experts directory but Fapturbo EA is not showing in the navigator panel. Can anyone suggest why, please?
We are launching http://www.forexcoding.com which will be a custom programming portal for mql4 projects. We'd like to see some test projects come through, so if anyone has any requests, or is willing to help test out the site, please join us. To anyone who helps us we will either donate free...
I have built and tested an EA & found that it didn't work to code when backtesting. Specifically, the stop loss function. I downloaded the sample codes (moving average & MACD) and tested them with the same result despite those EAs having a stop loss exit function. On checking the code, I realised...
Just trying to get an answer as to why this code seems to work differently when run in the two different modes. What should happen here is an alert should occur the first time a price arrives on a new day. This is what happens when run attached to a chart. However, when run in test mode a new day...
Hello everyone, I am new in this forum. For some time now I have been trying to learn how to trade Forex in MQL4 platform. I have some background in computers languages. I did read the manual of the MQL4 Language, but I have to admit I am struggling with MQL4 code so I need your help to write an EA...
WHERE IS MQL 5 ? ............................................ ............................................ ............................................ ............................................
  iCustom question (15   1 2)
With iCustom, it only seems to work when I put the last parameter(shift) as 1. If I leave it, it don't work. What does shift do ? Thanks
Hi, I am trying to build a simple indicator that depicts the High and Low within 21 days, and then add some lines in between. The problem is that in the D1 chart the lines are drawn correctly. When I shift to another timeframe, the line behave erratically, and do not represent the correct values...
Why does the contents of an array have an affect on the processing time of an indicator when iMAOnArray is used on a half initialised array. If iMAOnArray has the number of elements that are initialised passed as a parameter it works correctly but if zero, meaning the whole array is used, then the...