MQL4 and MetaTrader 4 - page 953

To post a new topic, please log in or register
  help needed (2)
i want my ea to be closing all the trade s when the equity is greater than accountbalance, but all my efforts are in vain. this how i used ; int start() if(AccountEquity()-AccountBalance()>=my_profit*my_lot)closenow=true; if(closenow==true) { for(cnt=0;cnt<total;cnt++) {...
Hi, My EA auto-optimize its parameters (or try to ! ) by opening a new Terminal in optimization mode using optimise.ini like this one : //Optimise strategy tester ----------------------------------- ExpertsEnable=false TestExpert=1 Maturine 2009 09 21 K TestExpertParameters=AUDUSD_4.set...
Hello all, I'm writing an expert in which I modify open trades. During the run, I need to know the Market price in the last modification. The OrderOpenPrice() returns only the first open price and it seems like the modification command doesn't save the market price in the system. Is there another...
What is your opinion on this backtest? Do you this it's stable enough as a base for further development. Now in this test it only trades short, with long trades turn on it still makes money, a bit less though. Any and all advise appreciated! Strategy Tester Report AlpariUK-Demo (Build 226)...
I have GUI with many objects. Looks great when label text and other graphical label objects first plotted on start up... Once the objects start to get selected so can be dragged to another window region and finally, once the code moves the object back 'home', the selected box is left. Now..., the...
How can i execute orders automatically from a computer(such as a server) to other computers (computers that are conected between them by internet to the server) by an expert advisor installed on every metatrader platform from each computer in part? Thanks, Ciprian
I am trying to create a function that will not allow MT4 to place a pending trade at the same price as a currently open trade. for example: if I have a buy order open at "x" price and my entry rules later say place a buystop at "x" price it will not allow this to happen. This is what I have right...
Please Help !!! I need a small code which: 1) Checks History for the last (x) Magic#. 2) If that (Magic#) Order was a Buy. 3) The next Order needs to be Sell. - Here is what i came up with but doe NOT work in forward test. for(int i=0;i<OrdersHistoryTotal();i++) { if(OrderSelect(i...
i know it is not possible to use barshift of -1 in icustom() the indicator always counts in the future. however when empty Value of slopeup = empty Value of slopedown i would like to have it 1 bar into the history and add the buy or sell or close order. otherwise my buy and sell and close orders...
just for your information: Computerized Front Running and Financial Fraud How a Computer Program Designed to Save the Free Market Turned Into a Monster http://www.globalresearch.ca/index.php?context=va&aid=18809
Hi guys, See this code snippet :- //---- indicator settings#property  indicator_separate_window#property  indicator_buffers 3#property  indicator_color1  Black#property  indicator_color2  Green#property  indicator_color3  Red//---- indicator buffersdouble     ExtBuffer0[];double...
I cant add any custom indicators since the last MT4 build, yesterday evening. I also cant use any custom indicators that are in my 'Profiles' or even my 'Templates' although standard indicators that come with MT4 display ok. Can anyone suggest a fix please? Regards mike_kitching@fastmail.fm
I hope someone or some website or Forex corporation can email trading singal to me .The singal should includ :long or short,entry /stop price .Is there any one who know such website or Forex corporation ?If ou know,please tell me or give me the website name .or sent related information to my...
  How do i ... (10)
Hi, i'm a developer looking for goods keywords/code sample/help to be able to : Each time an order is taken, push the information on a remote server using http. I already have the http stuff, but i didn't find exactly how to catch order management events (open or close a position). Any help will be...
Hello, I have a double value of 0.00045 and need to divide it by 2000 to get the average value. But the result I get is 0. Is there a function to do this?
  #include (1)
I do not have any problems using #include within indicators, but when using in EAs it does not seem acceptable. e.g. if I #include the Data Defs for the EA it is only recognised if they are already there so will not compile!
hello world, is there a way to tell a custom indicator not to report "initialized"/"deinitialized" every time I change timeframe on a chart? thank you in advance even if there isn't :)
How do I specify the bar duration and how do I detect a new bar or the closing of the current bar, in MLQ4? I know M15 refers to the 15 minute bar but how do I declare that in MLQ4? Thanks for any help.
¿Alguien conoce algún EA que realice compra o venta según cambie la tendencia de cualquier EMA?
I am trying to code an EA and at times I want the EA to close all open orders. I am using this code: if(CloseAll==true) {for(i=0;i<OrdersTotal();i++){OrderSelect(i,SELECT_BY_POS,MODE_TRADES);if(OrderType()==OP_BUY){OrderClose(OrderTicket(),OrderLots(),Bid,3...
Does anybody have a multi time frame alignment indicator which align the time frames 4H, 15M and 5M time frames using the Stochastic Oscillator in order to derive any buy and sell indicators for the platform? Regards Todd
Hi...i'm trying to writer a program that needed to reset the "int" value to "0" quarterly... Can anyone guide me to set "integer value" to "0" in every 15 minutes??? Any suggestion will be deeply appreciated...
Hi, I have been tryin to make an EA on the basis of Four moving averages crosses...using different periods.. during my search i understood the basic idea for two moving average crosses... could anybody tell how can four or more moving averages crosses can be used to generate buy and sell signal?...
Usually I’m trading one currency pair withminimum 4 different intervals. In each chart I’m using 2 EMAs, MACD and FullStochastic. Can anybody write an EA for this kind of setup? I enter into atrade only when all my indicators are fit to my criteria. Zsolt Szabo (786)320-0759 Thanks
  MT4 and DDE (2)
MT4 and DDE I've got IBFX's MT4 and I can't get dde to work in Excel. Standard format is: =MT4|BID!EURUSD, etc... Where MT4 is name of program exporting dde. I'm not sure if this name would describe ibfx's version of MT4... I've already enabled dde in MT4 and turned on "Transition formula entry" in...
I have an indicator in separate window I'm writing, but every 5 bars or so, the lines dissappear and then re-appear, almost like a refresh. It's slowing down execution. What are your thoughts on the cause of this? How can I resolve it?
Hello. What is a flexielib.mqh file? Where can we get it? I tried searching for it but nothing. Thanks for your help.
  Refreshrates() (15   1 2)
Could someone explain what is happening with refresh rates... the documentation hasn't really answered my query. Suppose I send an order and get Err 129 Invalid Price. My way out of the error is refresh rates... What happens after you've refreshed? I understand that tick info is updated but what...
Hello, I am looking for an indicator that compares the close of the candle to its previous candle close and show signals accordingly. So, if the canle close above the close of the previous candle, it gives a buy signal and vice versa. Also, if the current candle prices moves above the high of the...