MQL4 and MetaTrader 4 - page 883

To post a new topic, please log in or register
I am NOT new to Forex, but I am new to MQL4. I succesfully programmed my EA but when it comes to OrderSend I keep receiving Error 130. I read some other posts here that maybe it's a problem with the Bid Function, so I hardcoded the values (looking in the real charts) to see what hapen, and YET not...
  Price + EMA (1)
Hi all, I suppose what I need already exist but I could not find it. I need just need to know the code to detect when the price cross an EMA (in my case EMA's 62, 200 and 800). Thanks a lot in advance!
  Text message (2)
Hello, Does anyone knows how to print a text message above an horizontal line (For example: Like the one above the pending orders with the order number)?
also this message - optimization stopped, x cache records were used, x cache records rejected what exactly does this mean and how do I get around it? Thanks
Is it just me, or do most avatar images show up as 'broken image links'? I am using Chrome, but it seems to happen in IE as well here.
Some brokers do not support all pair currencies, is it possible to add missing ones to load historical datas within metatrader and possibly programmatically ?
Ok, I know this sounds like a silly question, but what is the best method to export an EA and send to another user? I had copied my MQL code into an .mq4 file and emailed it to the guy, but he seems to have problems viewing the parameters in MT4. Did I do something wrong? is .mq4 supposed to be...
I built an indicator that shows +1 when stochastic is above +80 and shows -1 whent it's below +20. I would like to biult one other indicator which sum +1 for each time the stochastic remains above +80 and sum -1 for each time the stochastic still below 20. I know that I need to do a Looping, but I...
Just an odd question if I may, any idea where I can buy Stochastic giving me a signal (sound) My problem is patients, I have none, so I need a signal system, I can then check, enter or not, then leave alone. With the Trade Builders Stoch ( I like the Stoch) the signal comes to early, running down...
I'm using the comments to know if an order has been closed by TakeProfit or StopLoss... I've realized than in MIG BANK (real accounts) they have removed the tag "[tp]" or "[sl]" in the orders... my EAs are working in the demo account but not in the real cause they have removed the tag... I'm...
Hello Everyone, Does anyone know how I can convert a date to a week number in mql4? Thank you for your Time EK
  Margin issue (2)
Hi all, I am a new beginner with MT4 EA and hope to get some helps in resolving a problem. Thanks. I was approached by my broker that my MT4 margin is calculated wrongly for those non-USD based pairs. Eg : if buy/sell USDJPY 1 mini lot, the margin shown is 200USD (which is correct) but when buy/sell...
Hello All, I'm trying to find a broker and a metatrader plataform to install with the following: Ethanol Aluminium Crude GAS EURUSD EURGBP GBPUSD EURPLN and Hot Rolled Coil is nice to have But I'm not getting any. If is not possible to find a broker to negociate all this at least explain me how to...
How do I get the instantaneous volume of the current minute bar? I tried Volume[0], but it appears that the values are being sampled discretely.
This is the code that I am using in creating dll with VC++ . My function DataCollection1(). shall return 2 variables stored in a array DataCollection1Return[2]. MT4_EXPFUNC double __stdcall DataCollection1(int Var1, double Var2, double Var3) { if (some condition) { if(Some condition)...
Is there any way by which we can increase the lot size of an existing order without having to place a new order each time?????
Has anyone ever experience this ? I've search the forum for viruses nothing resembles came up. I left my old PC without antivirus when connecting this past month. Some viruses & trojans are listed when I installed some local antivirus. 'W32 Sality ad', 'pedopa', 'ilwe' are among what I suspect is...
Hi all, I think I may have found a wee bug with OrderSendReliable2Step. I'm hoping the author reads this forum and sees this post. It would appear that I'm using v3.1 (I have no idea if this is the latest or not). What happened was: my EA issued a sell stop order on AUDJPY to sell 0.23 lots at 81...
i tried using SetIndexBuffer so as to use the pivot level but my EA cant find it using the iCustom, cant sombody please help me out?
Hi Guys, Does anybody know if it is possible to display EA variables in the Data Window in MT4? This would be unbelievably useful but looking through through the documentation it looks like only MT4 coded tools (indicators etc;) can only be displayed! thanks
  modify script (3)
I have this code: /*----------------------------------------------------------------| // Indicator Export Expert v1, by juanchoc & neo | //----------------------------------------------------------------| // | //...
High[0] Low[0] Close[0] all return the open value of the bar... am I missing something here? Doesn't make sense why if I do the following: Print("Open = ", Open[0]); Print("High = ", High[0]); Print("Low = ", Low[0]); Print("Close = ", Close[0]); They...
any reason why the following code would print out the same value for iBullsPower and iBearsPower in the following code? - bool newBar = false;int start()  {    newBar();   if (newBar == false) return;     double bullsPwr = iBullsPower(Symbol(), PERIOD_M15, 13, PRICE_CLOSE, 0);   double bearsPwr =...
I have an EA and i want to test it with the optimization, is the optimization any good?
I must be having a brain cramp because I cannot figure out what I've done incorrectly... EA named MSZ...first 4 lines below: #property copyright "Kris" #property link "" #include <stdlib.mqh> #include <MSZ_Variable.mqh> In the MSZ_Variable file, I have declared external and global variables. I...
  Guidance needed (12   1 2)
I'm writing an EA based on MACD. Though it is based on MA, MACD is quite different, as you people. I've put following conditions... extern int FastEMA=12;extern int SlowEMA=26;extern int SignalSMA=9;bool buycond=true;bool sellcond=true;extern double takeprofit = 150;extern double...
Vyckaa
Hi, i have my EA working well, but i just need a little help, i am not coder but i understand a bit. I just need to add code line to my ea that would double the lot size every time when it loses, and go back to default when it wins, something like hedging...I think the line should be easy, or even...
Hi Sometimes when opening positions with OrderSend function, it accepts the position and returns true, but it may take some times for the position to be opened and listed in open trades list, could someone please tell me how we can know that there are some positions that are accepted but still...
New article Technical Analysis: How Do We Analyze? is published at mql5.com: This article briefly describes the author's opinion on redrawing indicators, multi-timeframe indicators and displaying of quotes with Japanese candlesticks. The article contain no programming specifics and is of a general...
hi I have a indicator, it' separate chart window. This indicator show signal by strings " BUY" or "SELL" ....I want to get this "signal" by get string "BUY" or "SELL" when its output. But I'm not find any function can search string in this indicator. I was try functions : WindowFind(), ObjectFind()...