MQL4 and MetaTrader 4 - page 827

To post a new topic, please log in or register
ma2=iCustom(NULL,0,"",NULL,0,NULL); double mikearray2[3]; ArrayInitialize(mikearray2,ma2); double mikearray [3],q,p,r; q=mikearray[ma2]; p=mikearray[ma2]; r=mikearray[ma2];
Hello The program that I have backtests, forward tests, and now I wish to set it to go LIVE Automation. How is this done please? Thank you in advance. Huckleberry
Hi I have an EA that I need to add a function that can calcuate the highest RSi of the day, but I require some help, here si my code:    double Rsi(int shift=0){     int theRsiPeriod;   if(Period() == PERIOD_M1)      theRsiPeriod = RsiPeriod2;   if(Period() >= PERIOD_H1)      theRsiPeriod =...
Hello I have an ea that uses Macd, Atr, Rsi etc. Now for Atr I do this to return the correct value to the correct number if decimal spaces: double Atr(int shift){   double res;   int theAtrPeriod;   if(Period() >= PERIOD_M5 && Period() <= PERIOD_M30)      theAtrPeriod = AtrPeriod2;   if(Period() >=...
This one is odd. i can get gbpusd, gbpchf, gbpjpy, eurusd, eurchf, eurjpy, usdchf, usdjpy but I get N\A when I go try eurgbp and chfjpy. now, the commands are correct: =mt4|bid!eurgbp and etc. How come I can get the other symbols, but not these 2? DDE server is MT4. DDE client is Excel 2003 OS is...
Sometimes I read in forums that are outdated, about EA's that start at the start of each upcomming bar. As I started with MT4, my question is: " Was that a feature of EA's to start at the start of each bar on the opening of each bar in earlier MetaTrader versions??? If yes what should I change in...
  actual price (2)
hola. because i m beginning in this domaine i have a easy question is that how can i know the price in every moment marketinfo....
I want to tell MT4 market is ranging by comparing the Average Range for the last N period/days against the High and Low for the last N period/days. Getting the Average Range I can do using for (NPeriod=shift ; Nperiod<=shift+11; Nperiodr++) {...
Hello Would somebody be able to modify the standard MT4 Osma indicator so that it has a moving average/signal line just like the standard MACD red moving average line? I'm sure it is just a line of code or two but for a none programmer this is very difficult! I have spent ages searching the web...
Hallo! I have an idea to insert in my EA an option that could close the order if, it has met some criteria and it is opened yesterday or earlier. Is it posible?
Hello Let's say I want to create an alert for a condition such that for example Close[0] > 1.2800 & Close[0] < 1.2810. As you can see the alert will continue pop up as the conditions still arise which is kind of annoying. I tried to add a counter to only alert once but did not succeed....
Hi, I do not knoe if it possible. I like to use the command: COMMENT " ", which gives you real data you need on time (almost good as DEBBEGER), but I ask if is is possible to have different color (then white) or different fons size without changing it to OBJECT? Thanks Y.
Hello, Whenattaching a EA to a chart, in order to activate Live Trading, one has to tickthe box “Live Trading allowed”. In my EAprogram I’d like to access this “box” in order to check if it is ticked or not. If it hasnot been ticked I would internally disable the whole Trading Section of my EAand...
Hello! Check out my EA's bactesting results: Bars in test55530Ticks modelled1346306Modelling quality90.00%Mismatched charts errors0Initial deposit10000.00Total net profit1281499.60Gross profit1289817.52Gross loss-8317.92Profit factor155.06Expected payoff4243.38Absolute drawdown106.00Maximal...
Hello, does anyone know, how I can differentiate between Demo or Real accounts with MQL4? I want, that my EA only works on demo accounts and not on real accounts. Yours, Alfred
  MT4 Bug ? (4)
I have just been watching MT4 trade and my trailing stop stopped working on Sell orders. I restarted the machine and it works. Is this a bug and can I fix it ? Can I get MT4 for linux ? (Ubuntu)
  MT4 on iPad (3)
I'm thinking of bying an iPad. Does MT4 run on it?
I've been running some backtests and have been running into an issue that makes me question the validity of a portion of my history data (and also my trading strategy). Im observing a significant discrepancy in the way any given EA performs with respect to the time interval tested. You're probably...
Hi Does any one have code for an EA that can ratchet a stop loss as the market ticks your way? Thanks a lot!!
Carr and Sapaugh together works with Recap Marketing and Consulting, Ltd., developing successful strategies for the management of companies to increase shareholder equity for small and medium sized business.
Hi, I am new to MT4 I would like to try out the Expert Advisors that won the 2010 Championship on my demo account for a few months. Is this possible? If so where to download them, can someone provide a link?
Im just a beginner in mql4 programming and I´m having a lot of trouble with the following: I am sending two pending orders the first one just 10 points from the entry and the other one 50 points from entry( the small distance betwen is do to quicker testing results in demo) the 1st one does not...
I am having another problem I can't find a fix to. This time I'm getting warnings about the Start function: Start function not found and cannot be run, init function defined - start function's parameters will be ignored as expert properties and Function "Start" is not referenced and will be removed...
Hi guys, I have been having difficulty getting named pipes to work. I have been hoping to implement a simple idea really and I wish to use named pipes as I don't feel I need to go as advanced as Sockets and I failed miserably with synchronising shared memory. The idea is to monitor a number of MT4...
Hello, Does anyone know/have an indicator or script that just alerts when the hourly candle closes? It does not matter if it is a bull candle or bear candle - it is just a way to remind (within MT4) that the hourly candle has closed. This probably already exists (or is simple to develop), so I...
how to translate optimization results, back into the best parameters settings ? like a set file or something ? is this possible ? thanks
use the first code,it works. int init()  {   int OrdersTotalNumber=OrdersTotal();   Print(OrdersTotalNumber);   for(int i=OrdersTotalNumber-1;i>=0;i--) //first code   //for(int i=0;i<OrdersTotalNumber;i++) //second code   {      OrderSelect(i,SELECT_BY_POS...
Hello everyone! I am trying to create an EA based on a simple formula I read on the internet. Some days it appears to be profitable, some days not so much. Either way, I want to create an EA because it's easier to let the computer open trades instantly than typing it all up manually. Here is the...
Hello! A couple of years ago, I started building my "Kanguru" EA. I never finished it and never went live with any version of it. A year ago or so, I changed to Linux and it took me a while to get a grip on MT4 and to continue building my EA. Very recently I came accros a very simple trading idea,...