MQL4 and MetaTrader 4 - page 1000

To post a new topic, please log in or register
Hi, If anyone have an idea on how to identify for example: The screen (showing for example 80 bars, using the same zoom-level all of the time) is showing a candlestick chart in a downtrend resulting in the top-left quarter of the screen being blurred by underlaying candles. (Chart-foreground setting...
  NEW EA - NEED ADVICE (11   1 2)
Hi Guys, I have just completed an EA and the result of the back testing looks OK. Can the experienced (EA) traders in this forum please comment/advice on what additional thing I should do before switching the EA on my live account? It is a trend following strategy and the equity curve & report on...
Hi, I created an expert advisor to enter long and I would like to add a condition that I can't find. This is the bold one below: I'm not sure of the rest of the program. Enter long if : - Previous Close > SMA 10 ---- I'm not sure I programmed it well - Current Rsi > 80 ------ I'm not sure I...
i code a script to study OrderSelect() : //+------------------------------------------------------------------+//|                                               test_typeorder.mq4 |//|                       Copyright ?2010, MetaQuotes Software Corp. |//|                                        http...
Hi everybody, I'm in trouble with my EA I 'have just created. It doesn't buy and sell automatically but only works when "ask manually confirmation" is activated. When the signal appears it asks me to buy or sell. Do you think my problem comes from my platform ? Thanks for your help. Joe.
what is SELECT_BY_POS ? it depens on tickets or open time ? Neither ! i code a script : //+------------------------------------------------------------------+//|                                               test_typeorder.mq4 |//|                       Copyright ?2010, MetaQuotes Software Corp....
Is it possible to have a for loop that cycles in intervals as opposed to going through all numbers in a range? For example if I had this loop    double lows[];    for(int i=1000;i>0;i--){      lows[i]=Low[i];} and I wanted to add Low prices for 0, 40,80,120,... up to 1000. How would I go about this?...
Hi, Anyone have some good advice on this problem ? I've made several "good" EAs and they work well on BackTest, actually nearly any piece of cr*p can be optimized for good results when backtested on the same piece of history as the optimization were done. But add another year to the beginning of...
Hi, I need to set up a bool variable that is true when a new bar is started, for instance when the 10.00 AM bar is closed and the 11.00 AM is started. What do you think about this code? bool isNewBar() { static datetime lastbar=0; datetime curbar = Time[0]; if(lastbar!=curbar) {...
Hello, I have here a present for you, ADX Tradeingssystem, indicator with EA programm, the discription how it work you can find on my wepage: http://www.ts-24.net/mql4_ADX_Average_Directional_Movment_Expert_Advisor_EA_Metat.php the webpage is written in german, i hope you can undertand it a bit, i...
The function DayOfWeek() returns the current zero-based day of the week (0-Sunday,1,2,3,4,5,6) of the last known server time. My broker's (FXopen) server time is GMT. The server opens a new daily bar at GMT 00:00. Eastern Time (New York) is GMT-4. If the forex market officially closes at 5:00 PM on...
  "(OrderType() (1)
While tracking down a program or logic error I encountered this snippet of code that did not originate from me that seems that it is neither valid nor true: "(OrderType() <= OP_SELL)" It is part of 'looping' through an array: isNewBar();  // Go Trading ONLY at the Start of a New Bar!   bool IsTrade...
Does Meta Trader support multiple accounts? I currently have two broker accounts one for long, one for short... can I write a Expert Advisor program that can trade off each? Thanks
  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 :)