Download MetaTrader 5

MQL4 and MetaTrader 4 - page 438

To post a new topic, please log in or register
Hello to the /gurus, i have traded live for many years and helped a great many newbies to get strated in the FX, some more successful than others. I have a template made up of various proprietary indicators which I am considering as a potential EA - it is great as long as I do this manually, however...
Hello, I have coded EA to run on specified hours. EA setting as 10.00 - 13.00, so it works for 10.00-13.00. but when i edit the settings as 10.30 - 13.30. which EA starts from 11 and ended with 13.30. what could be the problom? {    double datetime = TimeLocal();    double hour0 =...
Hello all, Currently I am trying to make an EA which suppose to make my life a bit easier. In the end it should be able to automatically import an Economic Calendar. At the EA initalisation I specifie the Buy and Sell thresholds. So Manual analysis has been made, and if Indicator XXX comes out <=2...
for a new order, sometimes i want EA ask me to confirm, sometimes i want EA auto do it. can i control this in code by this ways? 1. when  a new order need i confirm, then open new order window(message box) like i press F9(new order) or 2. when a new order need i confirm,  use code set "Ask manual...
I haven't been able to find the answer in the documentation. in situations such as changing timeframes etc, the expert is deinitialised. What I need to know is whether the the code execution in start() will always continue until it hits return(0) before it is deinitialised. Thank You
Hi, I have the following question regarding the calculation oftechnical indicators. Technical Indicators (such as EMA) usually rely on pricescalculated for a set of given time periods. For example, we take a timeinterval of 5 mins. We then calculate High, Low, Open, Close (HLOC) prices forthis...
Hi I use an indicator in the MT4 platform under 'Custom Indicators', subtitled 'Signal Bars-v5'. This indicator places icons for Moving Average Conversion/Diversion, Standard True Range and Exponential Moving Average data by time bars ranging from 1 minute to 4 hours intervals. In addition, below...
  Spread Average (18   1 2)
Hi guys... I would like to ask if the formula that i used to compute the average of spread per tick is: Average=(Ask-Bid)/Tick where: Ask=Ask Bid=Bid Tick=value per tick or Tick Count if you have another formula it would be a big help for me... thank you very much
Hi everyboday. I have written an EA using Forex EA Generator. I want the EA to buy/sell 8 orders, each for 2% of the free margin, so I wrote it like that. A second EA should buy/sell one order for 4% of free margin. Result is: the first EA buys 8 orders of between 0.08 and 0.09 lots on a free margin...
I want to place the order on specified candle. is there any mt4 functions available to know thecount of candle. eg: I want to place the order on 4th candle open price!.for that i need to validate the current candle count. Please support me, is there any function available?
Hi, some one help me to create custom indicator with line connecting SH/SL through higher highers and lowers as mentioned with simple condition in the picture image itself. My intention is it has to draw the SL to SH and SH to SL line as per my condition. I am very thankful to you please.......
New article Another MQL5 OOP class has been published at mql5.com: This article shows you how to build an Object-Oriented Expert Advisor from scratch, from conceiving a theoretical trading idea to programming a MQL5 EA that makes that idea real in the empirical world. Learning by doing is IMHO a...
New article Alert and Comment for External Indicators (Part Two) has been published: Since I published the article "Alert and Comment for external indicators", I have been receiving requests and questions regarding the possibility of developing an external informer operating based on indicator lines...
Hi guys, a little help here? int handle1,handle2,handle3,handle4,handle5,write;                               // File descriptorstring File_Name1="fractalup.csv";                          // File namestring File_Name3="pastfractalup.csv"; string...
An alert of some kind keeps ringing - a single bell - usually with each movement in the price of EURUSD. This does not occur with any other currency pair. Sometimes it does not ring, then suddenly it rings one time with every price fluctuation. Please tell me how to turn it off. Thank you....
Hello everybody ! I'm blocked in the most important step in my EA ... The robot works in H1 I would like to retrieve the highest closing, and the lowest close of the day. What makes 24 candles to analyze for my two values. ( highest iClose ans lowest iClose ) These values...
hello I have following problem with manual backtesting / browsing the charts: Lets say I set timeframe to Daily - and on Daily chart I can see 150 data bars then I move fixed data position cursor(small triangle at the bottom of chart) to 50 days back - if I switch timeframe to lets say 5min I end...
Break out strategy in back testing it goes long/short, demo account it goes long/short... live account, it only goes short and won't take a long signal... no errors or anything. Any ideas?
I would like to run EA for specified currency: For dingle currency i have used following code: if (Symbol() == "USDJPY") { return(0); } Question: If i want to specify multiple currency shall i use following code? if (Symbol() == "USDJPY || AUDJPY || NZDJPY") If its wrong...
Hi everyone, I'm using 6 years of tick data to test my EA and for some reason my stratey tester stops after 3.5 years. My FXT file is about 6 GB.... any solutions? TX
Hi, what exactly determines the order, in which MT4 opens the charts specified in a profile? Is it by the chart number in the profile (chart01.chr, chart02.chr, ...)? And what is the meaning of the file order.wnd in the profile directory? Thanx.
Hi, Coders, Happy trading! I am trying to build a custom indicator using several arrays. The way I used them is like this: Array B [ ] is the sum of certain number of Array A [ ]. Array C [ ] is the sum of certain number of B [ ], and D [ ] is the sum of C [ ] and so on to many levels. When I...
Hey everyone, I have an MQL4-EA which has awesome Backtestingresults for the last 6 month. It works on M1 DE_30, it's based on scalping and these are the results of 6 month: When I developed it, I only looked at one month and these are my first results on 6 month (so I think it's not overfitted...
There are no 64-bit version of MT4? 32-bit version of MT4 only supports four threads, can not make full use of CPU, historical test is very slow.How MT4 supports four threads above?
Greatings coders, I've found out that the first closing price from a given period isn't always between the high-low price range of that period. Can someone tell me if there's anything wrong with my sample code? Thanks for any feedback! Jim doublePriceLow,PriceHigh;int start()  { if(Bars < 60) {...
I'm a week in so I'm really green with coding. Especially since I have no programming background. Below is section of code I wrote to close an open order at a specific time. Although it compiles fine the orders stay open. I hoped I could get some pointers. I've only got OP_BUY in the section...
Does anybody of you know about performance-fx.com?
Other than zooming in and out. How does one set up charts for specific time and days? Such as; 1 hour 30 day 15 minute 10 day Yes, I am new at this. Thank You Joseph
I want to know how I can setup the metatrader for "gmail" Emails to receive the emails alerts from the EA ?? please help me specially for "gmail" server what should I write in smtp ?? and also the other fields. thanks in advanced
update many time !but the bug still be there! EXPERTS-LOGS file. it still need manual delete it. every month will have a huge file!when it can be auto delete?
1...431432433434435436437438439440441442443444445...1244