Download MetaTrader 5

MQL4 and MetaTrader 4 - page 378

To post a new topic, please log in or register
Hi guys. Im not a programer but i managed to do this script from several other scripts, so excuse me if something looks weird or nonesense. I thought I had finally nailed to program a quick and helpful script for a hedging strategy. Although its not very trustworthy. When i go ahead and drag it...
I need to compare Bid prize with Moving Avarage. This is need to open a position. 1feltetelLong=1CriteriaLong. This is an INT number, and it will be =0 when a position is opened.
I have compiled the code & got 6 warning but no error. I even don't know how to fix those error. Please see the attachment. The code too long to post. Thanks!
I wite code       double price_Open = iOpen(Symbol(),0,1);      double point = MarketInfo(Symbol(),MODE_POINT);            if (  Ask > price_Open   )        {             OrderSend(Symbol(),OP_BUY, B_lot, Ask, 0, Ask-B_SL*point, Ask+B_TP*point,"BUY one ",MagicNumber,0, Green);       } it is...
Hi everyone, I copy my indicator from one PC to the other and this notice shows up even though it works fine with the first PC. "possible loss of data due to type conversion" Also it take long time for the MT4 to upload the old indicator. I notice the different of MQL4 wizard when I open it. Is that...
Hi! It's been 3 years since I saw MQL for the last time so I forgot a lot of stuff. I need some help with my EA. I want to use EA only for giving me signals (not buying/selling, only signals). And I want to use two indicators: Momentum and ZigZag, can someone please tell me how should I "attach"...
Looking for a little guidance here. Hopefully just a simple Q&A I need multiple instances of MT4 running simultaneously for testing and development of differing EA's. My original install was to the standard program files directory. That installation stored my EA"s in...
Hi, I created a sample EA but it keeps getting the error "... is not expert and cannot be executed.". Any thoughts? Thanks, Young
RaptorUK told me to not double-post. I understand, but wanted to make a separate thread since I see this as something particularly easy for MetaQuotes to fix if they so desired, and an important subject that IMHO affects sessions, news, pivots, etc., so my original posts can be seen here: https...
I have a need to retrieve the last 5 ZigZag swing prices & times for multiple iterations of ZigZag Depth. With an eye to efficiency, what is the best mode of attack for this? 1. iCustom call 2. Incorporate ZigZag into the indicator as a function 3. Makes no difference between 1 and 2 4. Something...
I'm trying to keep in the spirit of the new build using low / high / open / close etc rather than Low / High / Open / Close etc. However, because these are declared in OnCalculate I can't access them directly in functions. So what am I missing? Should I continue to use Low / High / Open / Close...
Good afternoon. When I hit the "start" button in the "test strategies" function , Mt4, is not testing the strategy. Does anyone know why this? The code is correct (I also tried with two EAs that come with MT4). I also made ​​sure I have historical data for selected period. Nothing happens. Does...
I just created a default EA template via the wizard and added/removed nothing from the code. When I attach this empty EA to a chart, the option to "Allow DLL imports" is greyed out and cannot be changed by the user. Can someone tell me why this is happening and how to re-enable the option to choose...
I have tested out two indicators, moving averages and RVI with live trading and the strategy tester. They seem to differ evetime. I cant seem to backtest and get perfect matching to calculate my winning strategy I have two screenshots attached of live chart and a strategy tester chart. Its off by a...
I noticed that this is no longer present in the current mql4 documentation so I though I would add the "old" documentation here for future reference . . . ConstantValueDescriptionERR_NO_ERROR0Trade operation succeeded.ERR_NO_RESULT1OrderModify attempts to replace the values already set with the same...
  timing code (8)
How do I write a code to prevent a trade between a certain time span? Example: I want to enter the time of a certain news announcement. (Daily Fx lists announcement times in GMT... I think) My broker is GMT + 2 hours. And I am in Mountain Time Zone in USA. So, I would like to input the date of the...
Hi, If you're here, you may need help using OrderSelect() in your EA, right? Add this custom function to your EA and when called upon, it will return the count of that EA's orders. As you know, OrdersTotal() will return the total numbers of orders not just the ones place by a particular ea. So,...
Does anyone know how to do this?
Hi Since friday my email notification EA that uses SendMail() function to send me signals has stopped sending me emails but the "Test" mail works... Any reason for this? this is the code I use: SendMail(" OverBought ","(Trend NEUTRAL) "+DoubleToStr(lastclose,Digits)); Regards, Edd
I'm hoping to get some help! I'm very new to this site and the use of EA's. I've got the Molanis EA builder software - but struggling to understand the Manual. There's very little on Youtube that helps me too. I'm trying to create a very simple Hedging programme. It's probably been tried many...
what functions would i use to count the last 10 bars from price and measure each bars volume from bar open to bar close?
  LG G2 (5)
I don't know whether here is a right place to post. I used MT4 on my Samsung Note 2 to trade for while. It was greater. However, when I buy a new LG G2, MT4 does not work on it. It always show "Unfortunately your device is not supported." However, when I go back to Play Store, it said all my device...
Hello, When I put the following, "=MT4|BID!AUDUSD" into an excel cell, the AUDUSD BID is not being exported successfully to excel. how could it happened? is there any other way to export MT4 Price to Excel? Any help is greatly appreciated. Thanks, Phil
If you are a dedicated and committed forex trader but you are always or most often losing, please contact xx.
  Forex-Brokers (1)
I am a new trader and I would like to knowabout forex brokers . Do you have any recommendations? What about forexresearch?
Critical Bug! FileReadString couldn't return correct result in Build 613. I lost many profit!!!!!
Pre build 600 (which I have on one trading station), the switch statement allowed expression types of doubles. However, now as of build 600, it appears doubles are no longer allowed to be expression types? Is this a bug, or is this the new and improved MQL code feature that breaks old code? Seems...
Hi All, Have a full day today to try and get this now unworkable script re-written in MQL5. Grrrrr. A simple FileOpen() procedure that has worked for years now returns a value of -1 The SourceFile and Executable are way down there in the hole AppData/.../Scripts and the .csv's are in AppData/.....
Well it took a little while but I'm glad that last script modification didn't take all day. One more thing to solve. How to remove that new and non-checkbox-removable, symbol and timeframe label in the upper left hand corner of my charts. That label is clutter in useful space for me. YL