Download MetaTrader 5

MQL4 and MetaTrader 4 - page 596

To post a new topic, please log in or register
GetLastError() returns 0 which means NO ERROR. So, why does OrderSelect() failed? Did anyone encounter this problem?
i want to know 1/ if start function trigered by ticks, if we can get every ask/bid value from server, 2/ if get ask/bid value by markitinfo(symbol,mode_ask/bid) function,is it same by use ask/bid directly, is there some value missing ?,and may it use more time to get the value,may it get...
Hello everyone, hope someone might help me to understand the meaning of "Lookback" and == I was looking at an example in the code base and this newbie is not familiar with these basics yet In this example: if(Close[i]>iMA(Symbol(),0,Lookback,0,MODE_SMA,PRICE_HIGH,i+1)) If the Lookback value was...
Hi everyone, I have some (easy) ambiguity with function iMAOnArray My basic code is below. When I run MT platform, function Alert() write value function iMAOnArray, but this value is error. Return value very big number= 2147483647. When I do then compile again indicator code - Alert() write value...
Vytautas
Hello, so i am not gona be asking your knowladge for free. I have bunch of EA's coded by my self, and all of them ar missing one MM thing. In case of lack of time at the moment for learing, i need some coders help by adding orders counter. Ok so i'll try to use my english as best as i can to...
Here's a function that checks to see if there is an openorder. I'm a rank beginner at coding in MT4 so I welcome your comments. But itdoes seem to work. bool NoOpenOrdersExist() //True when no open order, False when is open order{    int total = OrdersTotal();    for(int i = 0; i < total;...
How can I get the previous order type ? Is there such a build in function or sth. ?
  PING FAILED (1)
Friends, While running my EA, I am getting a message in Journal as "22292: Ping failed" where 22292 is login id What is the meaning of this?
Hey all, My demo account in the strategy tester uses lots of two decimals, 0.21, 0.55 etc etc. When I call OrderLots() I get a one decimal value, 0.5, 0.6 etc. What is even more problematic is the OrderProfit() and OrderSwap() is calculated from the OrderLot() with one decimal thus if I manually...
We remind you that starting on June 1, 2012 the support of client terminal builds below 416 will no longer be provided. Therefore we strongly recommend that you update your terminals to the latest build (419). If you have an older build of the client terminal, but the update window does not appear...
Hello, is anyone esle having an issue where you are placing an alert to produce a sounds when the rate is reach and when processing the alert the system closes. I am able to set teh alert parameters but when I click submit, the platfrom is closing. If anyone has any informaiton about this I would be...
help with transforming efs code into mql4. no joy for me. help please anyone. P.M for code.
Hello to everybody, I was wondering if someone has aby idea howto make metatrader reading live tick data from my server and not from broker server. My client has access to specific CFD's trading feed and would like me to program some custom indicators based on that feed. But I need to get the...
I want to know some details about Trailing stop (set up manually) - Can we set it for an existing order in market close time (Sat, Sun) ? - Basing on Ask or Bid is it executed ? - Which kind of price (O/H/L/C) is the base that Trailing stop will be moved forward ? + High/Low of current bar...
Could someone please help? I want to ordersend only once per bar (no matter 5mins bar or 1hour bar) with max lots. It means only one order should be sent per bar and then another only one order should be sent per bar at least 10 bars later & the lower price than previous order opened with if...
Hello! I want to insert a very simple custom indicator that I use to an EA but I have some problems with the syntax! iCustom(NULL, 0,"BBStop v3", 5500, 0, 14, 0, 1 ) is which line? the yellow one? and if yes how can I express the green line? Here is the custom indicator I use Thank you for your...
  ASAR (37   1 2 3 4)
I am finished paying people to build my EAs. It's finally time that I do this myself. I would like to create a template that I can further build upon called ASAR (ATR Stop And Reverse) but am unsure of how to begin as this will be my first EA. Because the unmodified template would just be an ATR...
how can i view the gold, crude oil charts on MT4 client terminal build 432? there shows only Forex in File-new chart option.
Spread = 16 points, StopLevel = 10 points, TP = 1 point, no errors generated. How is this possible?
Hello, Will someone help me, how to change MQL file to ex.4 file. will someone explain me how the connection between them is ? thank you before
Hello guys i have a good grid trading as well as scalping trading system which i want to make it as a EA i need some one who can help me to make it as a mql4 EA. let me know if anyone can help me out in this.
Is it a fact, that applying mt4 updates wipes out all the chart history ? If it is shouldnt there be some kind of warning about this before the update installs ? I did not update my terminal since late 2009 so I had 3 years continuous 1 minute chart history most of which was created directly from...
i recently downloaed the software (mt4) to my laptop. when logging on to the platform there are error messaged displayed on the chart screen. the message indicates that usd/jpy currency is incorrect and also do not see the smiley face in the top right corner which would indicate a connnection. i...
Hi--I'm a new member and am trying to load a bug fix from Miss Pips that was referenced last March 13th (ref #23508)--the one where an extra row of indicator boxes was showing up in new builds of MT4. I've downloaded the indicators shown, but when I drag the "bug fix"-- SwissArmyMixedhistoV4...
Hello, when using the Strategy Tester my EA stops placing new orders once the balance has reached about 20 mio. The tester is still running and the progress bar expanding. I don't have any conditions in my EA which would cause it to stop trading so I think the strategy tester stops itself for some...
Hi I suddenly can't connect to M4 today, the usual popup window asking to allow the software to change harddrive in Windows 7 pops up repeatedly without making the change as usual and connecting. At lower right corner where connection status is displayed says old version. Thanks
Hi Is it possible to give access to an MT4 account as read only, or launch it as read only Thanks
Please refer me to a link for an existing EA that will let me enter a buy or sell with a take profit and a stop loss. Nothing more. No method required. I just need to run on the Tester with different history periods, different currency pairs, different lots. Thanks,
  History files (2)
Hello, Is it important to delete history files from your hard drive? I've been optimizing a lot lately and i have read several times that you need to delete history files but nobody ever explains why or how to do it just the fact you need to. Is this correct or does it really matter? Thanks
If I right click on a symbol I can view a tick chart. it shows the past 100 ticks or so. Is there any way to get programmatic access using MQL4 to this short history of ticks? I'm guessing not as I can't find anything on the forum about it, but I thought someone may have a trick up their sleeve...