MQL4 and MetaTrader 4 - page 694

Dear MQL4 users. Im "in shock" I cant understand the behaviour of my EA when backtesting, maybe you could help me a little bit. I look at indicators in different timeframes, here is what I use: bool Long_Ready()   {      if(iMA(Symbol(),30,200,0,1,0,1)<Close[0])         if(iMA(Symbol(),5,200,0,1,0...
I would put, linear Martingale 1, 2, 3, 4. could help me in this code I determine a price, and this price is as start and stop it have to do to stop the manual or TP or TrailingStop order. Can anyone help me how to do this?...
I create an EA to work in EURUSD currency and realize many tests with historical tests, the base used to tests was from jan/2010 to dec/2014. In the tests I observes any stranges results, for example the results more recents, 2014 the strategy was good, otherwise, in 2010 was not so good. I am...
Hi, I really wanted to use this function written by "RaptorUK", but i am still getting error. I am not expert with ObjectLabel, but i tried my best to display objects on screen, too much of line i wrote. so i would like to use CommentLab her eis the code: void CommentLab(string CommentText)     {...
I'm using Ubuntu 14 and trying to create a script to write files, but I'm getting the 5004 error, every time I try to open a file. datetime currtime; bool newcandle; string terminal_data_path=TerminalInfoString(TERMINAL_DATA_PATH); string filename=terminal_data_path+"\\MQL4\\Files\\"+"data.csv";...
Hi, I see a potential for getting higher optimizing speed...Running MT4 optimizer I've never seen more than 14% CPU usage. Inside the box is XP running on a i7-950 @ 3G, so this is a pretty powerful PC, 3G RAM. I see almost no HDD activity so RAM and pagefile is probably OK. Have tried to use a...
Hi all, I currently run an EA on a VPS based in London. This EA begins trading at the open of the ASX 200 (Australia) futures market. That is, at the opening time of the market it starts gathering information to assess possible trades. The problem is that twice a year there is day light saving in...
  Programming question, MQL4  (26   1 2 3)
Hi, i have just started to learn mql4. Now, I need to store the high/low of current bar ( or current bid/ask) and keep it without change even if new current bar comes? Till, i decide later to reset it again to current. You can help me with Pseudocode, sample code or whatever.   Your help is much...
Hi All, If an mql4 programmer wants to code an indicator or script, that sums and combines the variations of a basket of 5 pairs, from a Zero Point to start calculating from. And with 8 different Zero Points in history, untill current price, advancing all in every new H1 Bar close.  Send an email  =...
Hi all, I am going to program ZUP. That would be faster and better if you have already a simple Zup for me to look at the code and get understanding of programming process? if you have it, could you please share it with me or let me know the steps doing that. My email: banlinhlinhcon@gmail.com...
I'm coding an EA based on price action, but I have one part where I need to record a "signal bar," (for example a pin bar or a second bar of a 2 bar reversal). So if I see such a bar, I can assign the value iTime of that bar to a global variable. Now, given the datetime of that bar, how can I find...
Hello all; I've recently subscribed to a signal. However, it reads "signal provider has maximal volume of 10000, subscriber has 50" on my MT4 terminal. I have a standard account with 100.000 maximum volume per lot and 500:1 leverage. I have 4300 USD in my account. Signal provider has 4100 USD in his...
I am an experienced trader and used dealbook 360 for years.  I am finding that MT4 is quite different.  I am looking for a pip calculator, how to detach charts, and how to change labels?  I know this is basic but I am not finding what I need in the user manual or online.  Thanks for any help you can...
[Deleted]
Hello, Happy New Year!  I use MT 4 Adroid. I have more positions but I can't find the function to get a Summary overview so that I can close all the positions at once? Can you help me?   Many Thanks   MT4 Test 
Hello friends, Something interesting: Normally, if you open a trade like BUY 1.0 GBPUSD your free margin decrease with 1000, and then if you open a new trade like 1.0 BUY EURUSD your free margin decrease with more 1100 (f.e.) . Some brokers (like Alpari) if you open a new LONG trade like BUY 1.0
[Deleted]
I already posted this a while ago, with build 670 MetaQuotes has introduced a ugly "feature" which logs each and every trade during OPTIMIZATION in the /tester/logs directory. So if you run a big optimization with an EA that generates a lot of trades, you will quickly have 80 to 100gb worth of log
Hi. all trader  first i don't know here have one who like me now. a problem is when i open order system will tole we that "please wait ... order is begin processing by server" right. Usually it's use a little bit time just 3-10 seconds or immediately. but for me it's stay that process about 2-5...
[Deleted]
Hi I have an EA that could be compiled. However, the entrysystem when run in the strategy trader is quite whacky. Here is the summary forthe entry rules The Red line is TenkanSen. The Blue line is KijunSen. Open Buy if if(TenkanSen > KijunSen && BuyTicket == 0&& LastClose > MathMax(SenkouSpanA...
Hi all, My name is Harry. I am trying to use attached linear regression slope indicator in my EA, but I'm having trouble retrieving the values of the indicator in my EA. It  is returning always EMPTY_VALUE. I have to use this indicator with MT4, so I have compiled the indicator in MT4 and seems to...
Documentation for some experts can only be made available via the Comments tab, so trying to sell the expert becomes quite hard without documentation.    
  account history  (1)
i clicked on account history to see my trades but it is empty. is there a setting that needs to be changed. its a live account. i know when i used demo it was always there. happy new year to all
Is this possible to apply default template for my EA? because when my EA applies text are invisible while background colour are same. so i would like to apply default template when EA applied. Please suggest me to solve this issue?
[Deleted]
i want use this indicator if color red show Comment (" you can sell") if color green show Comment(" you can buy") i try this code double buy = iCustom(Symbol(),0,"adaptive",0,1);  double sell = iCustom(Symbol(),0,"adaptive",2,1);   Comment("  Buy => "+buy+"  Sell => "+sell);
[Deleted]
Hello,  After opening a specified number of limitorders using a script I am trying to close them after they are activated with OrderClose using the ticket number of the first filled order to avoid FIFO errors.  I am trying to use parallel arrays to get a valid ticket number into OrderClose.  However...
You know 'stoploss' and 'takeprofit' are "double" types in OrderModify(). Is it still necessary to use NormalizeDouble() for 'stoploss' and 'takeprofit'?      e.g. I saw some EAs use  NormalizeDouble(histroyPrice, Digits) to set the 'stoploss' or 'takeprofit' by OrderModify().        However, you...
Can I do this ? I want all of this || all of that if((Alow()!=0 && Bhigh()!=0 && Bhigh() - Alow() >= minABrange*pips2dbl) || (Ahigh()!=0 && Blow()!=0 && Ahigh() - Blow() >= minABrange*pips2dbl)) I mean will this compare the entire left side and right side entirely ? Or will is stop after the first...
When you open an indicator code file, you can see both 'tick_volume[]' and 'volume[]' defined in OnCalculate().  You can see "const long& volume[], // Real Volume" in the help for OnCalculate(). May I understand the value returned from 'volume[]' is the real volume instead of tick volume? Or...
Hey, I am making a MTF indicator to show static moving avarage from D1,W1, and MN1 timeframes in H1. Somehow I got it works for D1 and W1 periods, but I always get "array out of range" for MN1 period. Can somebody help me to find the solution for this problem? Thanks int counted_bars =...
  code help  (1)
I need you to help me on code to select all account deposit from trading terminal. i want to use it to calculate account growth as (Equity/Deposit)-1
Good morning  I test my EA on the strategy tester with EURUSD , and it works , but when I test it with another symbol , it shows me a huge number of error , I try to close all the windows in the metatrader and restart it and try with another symbol ,it works , what confusing me , why didn't work...