Download MetaTrader 5

MQL4 and MetaTrader 4 - page 577

To post a new topic, please log in or register
I've been running into a 136 error frequently when my EA has been trying to place an order. What's this really all about? And apparently NormalizeDouble is an important part of the EA placing orders. I searched through my code and I'm not using NormalizeDouble. Could this be part of the problem?
Hi, to make it easier to develop and work with the EA code I want to hide away simple standard functions that are fully finished. In the file I put only the functions, like this:...
Hi is it possible to reduce lot size when trade is losing? Just asking.
Hello all, Wondering if anyone can point me to a good range bar indicator for mt4. I got one from: https://www.mql5.com/en/forum/178540 but it doesn't seem to work for me. Thanks!
I am a new user of the mt4 plateform, i just got a software from a friend claiming that it can be used to plot the daily pivot automatically on my chart. I need help on how I can go about installing the software or any other of such on my mt4 plateforms please.
is it possible to add symbol letters into magic? fex: int MagicNumber = Symbol()12345;
Hi, I had been testing some EA's and I got really confused now. I had been testing EA's on demo FXCM MT4 then I decided to open a Alpari demo MT4. Made same EA, same time frime same setting ect... But the results are not the same between FXCM & Alpari. http://picturepush.com/public/3576871 -...
I want to prevent my EA from open new order if bar is older than 10 min ... is there a simple function i can use which returns 0 if bar is older than 10 min?
I write EA which save each tick. I don't know why function start() don't save ticks. Function start() should execute when new tick appear. Am I right? Please help. Where may be a problem? int start() { string strSymbol="EURUSD"; double bid =MarketInfo(strSymbol,MODE_BID); double ask...
Hi guys did anyone of you experienced a strange thing like the one below OrderMagicNumber() returns negative value and which is strange is that it repeats the same negative value across the history - anyone experienced something like that before? here is an example of such things: 2012.06.21 19:40...
It is my understanting that the Start() function works tick by tick. Is there a way to use real-time data from the computer clock and update every second? Not tick by tick but every second? If so please give me some help. thanks
Friends, The value stored in variable TL3 is becoming zero after finishing the count no 37 using FOR statement. How to store the value in TL3 got from FOR statement even after count is over. In my EA FOR statement stops executing after BeginTime 8:00 am. The value in TL3 is lost after 8 am How to...
hi I get the following error what can I do to fix it ?
Guys, I have installed the a couple of Expert Advisors to my MT4 platform. It does show a smiley face, however, no trades are happening. Live trading has been activated and Expert Advisors tab has been checked on the tab. Please help. -- Rahul
Hi, Is it possible to replot a new candel stick/OHLC chart based on data from an existing pair? Im looking to recreate a pairs chart based on an indicator ive come up with. If this is possible, could someone point out some general samples as im unfamilar with MT language. Thanks for your time
Does anyone know whether there is something similar to WindowTimeOnDropped() for indicators? (I know that WindowTimeOnDropped() is for scripts or experts only).I would like to use the info from the bar I dropped the indicator onto in the calculations done by the indicator. I would like to display...
Hello! Me Simon. I have CTRL-C -> CTRL-V coded EA. Then I have bit recoded it, since I have learned bit on the go. Had problem with 'lastIsBE' function. So recoded it again, especialy this mentioned function. But... still have same problem as before - although last open order is break even, EA says...
Hi experts. I am new with MT4 and am trying to pick it up with all the great resources freely available. I tried my hand at putting together a custom indicator but just didn't work. No errors upon attaching to chart but no signal was drawn. The effect I am trying to achieve is to multiply EMA(Vol)...
Hello, I am researching the best options to protect an EA. Any recommendations ? I do realise that 100% protection is impossible, but deterring the 90% is all I am interested in! So, thus far the options I am thinking are : 1/. dll+mql file, with real time license mql file 2/. mql file real time...
for example when your buy order is in negative profit,send another buy order with increased lot size x2.
Greetings, I use three CCi's - Pink(9), Yellow(19), Green(50) I use the known formula - iCCI(Symbol(),PERIOD_M5,9,PRICE_CLOSE,0); (sorry, in this example it is M5 not M15 - but the difference shows in all periods) Oddly, when I calculate the relative condition between the three CCi(s), I get a...
Hello, I new member and i learn MQL4 but i don't start where? I need a EA basic can you help me? Thanks for much
  New Order (1)
just dowloaded the platform met4 on a demo mode, while clicking the new order icon - the buy and sell icon respectively is not active, hope you can help me go around with this scenario. Thanks in advance :)
Below is the page of the discription of reversal fractal https://www.mql5.com/en/code/10686
Greetings.... In my trading strategy, i'm only allowing a max loss 0f 20% from initial deposit for a specific period, and upon reaching a profit level ..lets say 15%, the trade criteria will follow a new sets of lotsize and other set parameters specific to a higher band and no new trades shall be...
Hello, everybody, i am quite new to MQL4 programming, and i have a problem :)   if(OrdersTotal()==0)  {  double account_ballance=AccountBalance();  GlobalVariableSet("account ballance(start)", account_ballance);  } As a result to the coding above, i would like to have a global variable declared...
  Alert Timing (2)
I want to be alerted when a variable is met in the LAST time frame. Right now I'm alerted at the end of EVERY time frame because this criteria was met sometime in the past intervals. Not sure how else to explain it. Here is the relevant code. if (bCountdown==13) ~~~Should something go here...
Hello all.. I new to this and learning to code... and it will be a long process with no prior back ground in coding.. However, I'm looking at building an e.a. that trades with the candle patterns: I like the Hammer pattern;Inverted Hammer; for example and of course staying with the trend... Anyone...
I noticed in ArrayResize() the formal parameters are defined as such: int ArrayResize(object &array[], int new_size) Is object&array[] a way to allow the passing an array of any type as a refered parameter and why cant I do that in my own functions ? (I tried and it seems mql4 wont recognise object)...
1...570571572573574575576577578579580581582583584...1244