MQL4 and MetaTrader 4 - page 851

To post a new topic, please log in or register
Hi: Thanks for taking a look at my question. I am trying to get my robot to open trades only when the current price is within 20pips of the moving average, I am using a 30M chart for such. How can I express the current price without using LOW or HIGH? Is it possible to use Bid or Ask?...
You may have already done your research all over the internet. You may have already read all the help e-books and forex trading manuals that you could get your hands on. You may have already scoured the various forex forums online and exchanged ideas with some forex traders about topics ranging from...
Does anybody have the holy grail to know whether the market (in the considerd\ed Time Frame) 1- is in uptrend or downtrend? 2- wether the present long/short signal is a trend reversal I am building an EA to swing trade in market direction only. My entry points are good but not always in phase with...
Hi can someone please look at this code and edit it to remove orderdelete 4108 and orderclose 138 thankyou.Ive been trying for days and cannot do it!!the expert works ok but has lots of errors in the journal please..please..assist..
Has anybody program like in subject?
  Zero Divide (4)
Hi, I have a proble when during a Strategy Testing i always get an error "zero divide". The only division I have are these lines - Proportion1=(Close0-Open0)/(Close0-Open1); Proportion2=(Close2-Open2)/(Open1-Close1); Proportion3=(Close0-Open0)/(Close2-Open2);...
Hello, I search the algorithm how the ticks for a candel are calculated when a backtest with kontrollpoints is make, can somebody help me with that?
Hi, I am getting Invalid Function Parameter Value at below line in my EA. OrderClose( OrderTicket(), OrderLots(), NormalizeDouble(MarketInfo(OrderSymbol(), MODE_BID),5), 15, CLR_NONE ); Can somebody highlight the problem in above statement. thanks in advance.
Hi all, I'm have a custom indicator I have developed, that have 7 buffers. The indicator runs ok, because I get painted on screen what I want, but when I want to get the buffers values using iCustom I allways get '0' as value. So taking into account that MT4 does not have a debugger, I begin to put...
Hi, I am intending to run a tradecopier on my metatrader4 platform from FxPro brokerage and seems like upon registering the EA, the platform crashes with a seemingly weird message. this is all it got to say at the end of crash all the time: ------- There has been a critical error Time : 2011...
Hi all, in the moment i fight with a - for me - strange problem i cant solve until now. In an EA i have few indicators... also custom indicators... The same EA (Exact same!) and same Indicators are running on two MetaTrader Installations for 2 different brokers since November 2010 since few days...
Greetings, I open a 1-minute chart, scroll back several months, and then go to open an offline chart, but there is not a 2-minute offline chart available to open. What am I doing wrong? Thank you.
Hi, In my downloaded history Files of various pairs with 3 different brokers there are data missing in May and June 2010. I can't find a way to fix the gap. Deleting and downloading with Administrator rights did not work. I hope somebody is so kind to give me an advice how to get the missing data so...
  Error in code (1)
Hello friends this is checkmail and have an Indicator which is to display up and down arrows on adr levels but its not displaying it when attached to charts. Could anyone correct the code. Here is the code :...
So the new MT4 from OANDA runs under Linux with WINE 1.3 and a winetricks install of vcrun6. I want to install OANDA MT4 on OS X using WineBottler but cannot get the Winetricks configuration quite right. WineBottler can create an OS X bundle from terminal.exe with Winetricks vcrun6, and MT4 opens...
Metaquotes should consider running both a 2009 MT4 AND/or a VERSUS 2009 MT5 Championship...because MT5 is a totally different platform and not related to MT4 in most ways...a side by side " Championship" challenge would show the possibilities of BOTH... WE all know MT5 would totally FLOP though...,...
Hi I need help writing function. How to use MQL to calculate static TP for all open positions so that Tp was set price to Profit 10 pips or 10$?
On metastock the formula is and i call the indicator "Fund Groups": Mov(((Mov(C,3,E)-Mov(C,10,E))+(Mov(C,5,E)-Mov(C,12,E))+(Mov(C,8,E)-Mov(C,15,E)/3)),30,E); which is in few words a 30 period exponential moving average. first we have 3 differences between 6 moving averages, we add them and then...
Hello. Can youhelp with this?: Torefer toanopeningprice ofatrade,I use "OrderOpenPrice ()".But How do Imakereferencetothe opening price of a pendingorder, that has notbeen executed yet? (eg OP_BUYSTOP) Thankyou very much for allthe help you cangiveme. Greetings Trader201
The calculated values of symbol's volatility are placed in an array volatility[26].As symbols are string they are indexed and placed in an array idx[25]. but I do not know how to create a two dimensional array with volatility value as 1st element and index value as 2nd element so that I can sort the...
Hi i have some code that buys at either the close plus X pips or the high or low plus a certain amount of pips. What i want it to do is if current price goes above the previous bars high place a limit order at a certain amount of pips below the high or maybe at a moving average for example. This is...
I validate my strategies using data from AlpariUK and Tadawul, but particularly in the M1-timeframe I can only access data back to November 2010. Can anyone recommend me another broker that offers more data for backtesting?
Hi there, I need to write a script that will close all the open orders when drop on a churt, I try to use the buildin script that comes with the metatrader but it is not closing the orders, so I wrote this code : int x=1;int i;int start()  {   if (OrdersTotal()!=0)   {     for (i=OrdersTotal()-1;...
New article Moving Mini-Max: a New Indicator for Technical Analysis and Its Implementation in MQL5 is published at mql5.com: In the following article I am describing a process of implementing Moving Mini-Max indicator based on a paper by Z.G.Silagadze 'Moving Mini-max: a new indicator for technical...
What do you think about converting profiles and templates from MT4 format to MT5 format? At least templates are not compatibile. I did not tried profiles yet. I think Metaquotes should suggest or prepare some tool, which will be able to do job. If not, at least to describe how to do it - MT4/MT5...
hi.... am traying to make an indicator that plot a boxs or rectangles on each one of the  last 5 bar of the chart excludeing the recent bar(the box borders is from high to low of the bar).. i come across this code  but it will draw the box only on the bar befor the recent bar and continue to repaint...
Hi, I'm having trouble creating a script that will change the stop loss of my orders.I keep getting error number 4109. Here is the part of the script that is givingme trouble. for (i = 0; i < ordersTotal; i++) { //select the order if(OrderSelect(i,SELECT_BY_POS,...
Hi, using excel and MetaTrader4 DDE, is it possible to reference a cell instead of "USDJPY" in this formula =MT4|BID!USDJPY ? I want a user of the spreadsheet to be able to type in a pair name that includes a suffix in a cell, such as A1, and have the formula in a different cell. This would allow...
how do i set aside profit once a succesful trade is made? id like to withdraw profit and continue trading with my initial depsoit but dont see any functions to do that.