MQL4 and MetaTrader 4 - page 864

Hello coders, I would like to program a very simple indicator which displays an alert when the last bar's low is above the SMA20 and the space between the bar's low and the SMA20 must be smaller then the bar's size. Until now that is no problem. But the indicator should check this not only for the...
Greetings All! I am trying to get to the bottom of an incredibly strange issue, where my experts log and journal log are not matching up. The primary problem is that i am seeing two trades taken in the journal, but only 1 in the experts log, which from looking at the code is impossible. Please see...
I don't know why, but when i was making an indicator, i can't obtain a correct division. Is this bug or is missing me something?? Example: double ResultOf=5/2;// Should give the Result of 2.5, however in comment i have 2.// Anyone knows why?? or is one more Bug??
[Deleted]
There is a serious bug in MT4 for ipad version. I lost money because of it. When the keypad is open, if you hit the "SELL" button, "BUY" command is applied. VERY WORST BUG!! Note: I tried it on demo accounts of various broker companies. This problem does not occur on all of the broker companies'...
I developed an EA on EUR-USD pair using Eikon Reuters data but the results and signals on Reuters feed and Mt4 feed are vastly different. In Reuters,I am generating the signals on bar close,But in mt4 while doing strategy testing there is only an option for open price only. Even discarding this,...
Hi Coders! I have a DLL file (download) consists two functions for simulating new tick arriving. The functions are: IceLock_StartTicker() and IceLock_StopTicker(). Usage: #import "IceFX.TraderAgent.dll"   void IceLock_StartTicker(int a0, int a1);   void IceLock_StopTicker(int a0);#importint...
Someone knows how to access to the value of a compiling property? if we Define this property in the head of our ea... #property link " http://www.yotrader.com/ " How may I access to this value set in "property link"? because this not works... Print(#property link) Print(#link) Is there any system...
[Deleted]
Hello all. Just landed in the big world of forex trading and remeber when all you lot started out I have a ton of questions Have tested a few demo brokers made some profits made some huge losses but picked up loads of information along the dayabout forex some Ive digested some doesnt make sense Have...
[Deleted]
I put this question, as the leading free signal provider for MT4 has changed his signal from free to a subscription charge, in the belief that less people will subscribe. Consequently those that continue will sustain less slippage when trades are copied. Or is it that brokers have the foresight that...
Hi, anybody know of a program, indicator, ea, etc that will close my position when a candle closes on the wrong side of the stop loss, not when it punches through just to go right back in your favor, dramatically...? I hate those pesky stop hunters...
//+------------------------------------------------------------------+//|                                           SupportResistTrade.mq4 |//|                                 Copyright © 2008, Gryb Alexander...
[Deleted]
Hello, The Print command has no effect in a script? Thank you kindly confirm.
Heya guys (and gals perhaps?)! I´m new to metatrader, been doing some very simple ea's and slowly making them more advanced. I am now trying to make an ea that buys when RSI is below 10 and when the last periods MA50 is higher then it has been duuring the last 50 periods. I have been searching alot...
I saw it somewhere but can't dig it up. Don't even know how to describe it. In strategy tester you can move through the preceding bars (or ticks?) instead of hitting the pause button every other second.
[Deleted]
Hello sir how to show copy right on the chart lets say #property copyright "Copyright 2012" but this is not working on my chart ?
[Deleted]
  remove comment  (2)
hi can somebody tell me how to remove comment in a through code
my EA has written the value of "Bars" to the MetaTrader log file. Since yesterday afternoon there is an unusual phenomenon. Nearly every two hours, the value is reducing by 128 points. example given: time     value of Bars14:30    120014:31    120114:32    120214:33    107414:34    1075...17:41...
[Deleted]
Today i got a never seen before error when i tried to compile. It read like this "Variable name too long". I dont recall reading anything like maximum variable name length in mql4 book. Could this mean some things weren't published in the book?
[Deleted]
  When will mt4 market launch  (36   1 2 3 4)
Any updates on the launch date
[Deleted]
  NULL string comparison  (16   1 2)
Hi, I've read https://www.mql5.com/en/forum/46695, but I still don't know how to test, if a string == NULL. The following results in false: string Str;string NullStr;      Str = NULL;Print(Str == NullStr); So what's the solution? Thanx.
I have an EA where I call a custom indicator and have some simple code to read shift 0 and shift 1 and do some comparisons with it and when a certain condition is true I generate an alert signal. The problem is that instead of getting this one alert signal I get several signals and I cannot...
[Deleted]
  Please need help  (15   1 2)
hi guys, i have the following problem, Im using a High and Low Period check for opening trades in my expert. For example, (Highest+Lowest)/2 is MIddle point it must buy below the middle point and sell above the middle point double HM1ask =MarketInfo(M1,MODE_ASK); //M1 is the pair, it's multipair
I would like to program indicator similar to this one: ZigZag with Its Own "Channel",but instead of channel lines ends in ZIGZAG tops/bottoms, they should follow until price breakout/touches this line. Here is an example of such an indicator: I can see some issues regarding such an indicator, due...
[Deleted]
Hi can some body tell me how to close the orders when a new comes means when a buy comes it close all orders related to sell and when sell comes closes all the order related to buy?
Hello everyone, I find have a different candlestick on my broker MT4 platform and Netdania chart. So that, It effect to my strategy when i compare value : High, Low, Open, Close of any candles on chart. I thinks that Netdania chart is better than MT4 broker and best for price action. So, anyone can
Hi Guys, See below. I am using MT4 Build 509 on an Australian Global Prime ECN broker. 1. I cannot seem to use the loop variable i as the buffer array index directly. Have to change it to something else: shift = i, for example. Reversing shift and i give same result: a dark screen. No compiler...
[Deleted]
Hi folks, Help needed. My advisor creates support and resistance levels in the main window as the day goes.. Those levels have certain life duration, which I define. When TimeCurrent() > exp..., the lines are removed. Everything works fine, but only when there is just one pair of levels on the...
Hello, I am working on an EA and have a problem with my BE function. For Example: BUY 1.00 BUY 1.10BUY 1.20Calculation of the BE is easy, it would be 1.10, so close all Trades if < = 1.10 But what do I do if I have this situation? BUY 1.00BUY 0.80 BUY 0.85First the BE would be above the price of...
Normally in the Setting tab in the metatrader 4 mobile for iphone got a message option and in it to find the metaqoutes ID. Since last night, i stop receiving notifications and reinstalled the new version build 505 and message is missing.
Hey Guys, my skills in MQL4 aren't that sophisticated so I have no idea why I get the Error 4051 all the time. It would be also very helpful I one could explain in more detail to me what an invalid ticket is, maybe I'll figure it out by my own then. Thanks in advance! This should the relevant...