MQL4 and MetaTrader 4 - page 26

Hi, Just wrapping up a script which sends tick data to MySQL database. Successful, but when I went to add some more variables in the string I got the compile error: '(time_posix INT UNSIGNED NOT NULL , th INT UNSIGNED NOT NULL, dow INT UNSIGNED NOT NULL, date_time VARCHAR(40) NOT NULL, date
  Balance Update  (2)
For the 2nd time this week. I've got an unknown 'Balance Update' showing on my history which is deducting money from my account. Is there anyway to find out why it is doing this. I'm currently on a practise OANDA account, but i'd like to understand if this is a charge i'd see if trading for real....
Hi I'm trying to send a webrequest, but it says "Http request failed" error code: 5203 I searched so much on the internet but i couldn't find something that resloves this. I added the "http://localhost" permission on the setting, but it's not the problem. It doesn't work neither with GET, or POST
  mql4 bmp sources  (15   1 2)
hello everyone are there any sources to download .bmp files with different sizes to use in mql4 coding ? thank you in advance
Hi, when loading an EA via Template, the EA will be "loaded successfully" but no OnInit Call will be executed. There is no chance to get code executet if the EA was loaded from a Template. The "Expert" Tab in MetaTrader will print "loaded successfully" but also missing the log line "initialized". If
I've been looking for the answer to the captioned question, but been unable to find it so far. CHARTEVENT_KEYDOWN can only pass code of a(one) pressed key by lparam. Thus it can not tell "shift + z" key input from "z" key input. Is there any way to capture a set of two key inputs, like "Ctrl + a"
Suppose I want to run a scan through all markets available with my broker to look for favourable trades. Say I want to look for any stocks that have reached a yearly minimum. Can I do that with MQL4? I note that the technical indicator functions all have a symbol parameter, so clearly they don't...
Hey Guys. I tried to run my EA and it's supposed to set two Sell Limit orders at the top. However, only one Sell Limit order is placed. I checked the error and it says "Trade Operations Not Allowed By Settings". The thing is, I already enabled automated trading button, checked the boxes that allow
  indicators issue on mt4  (17   1 2)
Hi Guys. I bought some indicators few years ago. Everything was working perfect until about 3 months ago. When my mt4 in not running for few days and when I want to open it, it freeze. I already noticed that when I delete the indicators that I bought from MQL4 then mt4 is opening with no problem. So
Hi everyone, i'm new to MQL4 and i'm working on an EA similar to an MA ribbon. I shared both the indicator and Ea versions. I had no issue with the indicator version, but i was getting "Array out of range" error in the EA version, so i added the arraypush method as a solution. However, i don't
My trading strategy is martingale that if there is deficit and next order is ready to open based on signal. I coded some functions for handling buy and sell orders seperately. Problem 1. if I change the cindition from "if (ticketBuy[position] == -1)" to "if ( orderType == OP_BUY &&
Hello, I'm preparing to call a DLL within MT4 and I've come across one construct which I can't get to work. The original C++ code is here: typedef void (TA_CC * TrialCallbackType)(uint32_t, void *); TURBOACTIVATE_API HRESULT TA_CC TA_SetTrialCallback(uint32_t handle, TrialCallbackType callback, void
I tested a trading robot on one broker's account, and the results were positive. However, when using the same robot on another broker's account, the results were negative, even though I chose the same time and currency pair. What could be the reason for this difference in results? Even though I
hi guys I'm trying to make a label on my EA that will display the possible loss amount of my current open multiple sell orders. I have a horizontal line that will give the price, the price that was given by the horizontal line is will be used as Stop Loss price on my formula that will compute my
Hi everyone, I'm facing an issue with my Expert Advisor (EA) on MetaTrader 4 , connected to a demo account with [name redacted by moderator] . When I try to place an order with a predefined Stop Loss (SLO) , I receive the Error 130 ( Invalid Stops ) , even though I've already tried the following
Hello, I've modified this indicator but somehow candles and other indicators display on top of its background. How to get the Background on top of the candles and any other indicator? I tested modifying this but it's not working: ObjectSetInteger ( 0 ,name, OBJPROP_ZORDER , 0 );
Hello everyone, First time posting on here. I created an EA but for some reason I'm not sure of, it's not trading. Can someone help me diagnose the issue? I can share you the EA file. Best, Michael
Hello, I found that MT4 Build 1422 is using an unusually high amount of CPU, even though I'm not running any EAs. The VPS I'm using has 3 CPUs and 4GB of RAM, so it's unusual for MT4 to have high CPU usage and become unresponsive. I tried hiding all currency pairs in the Market Watch menu, and it
Hello Experts, I was made one of MT4 EA, problem is normal orders working fine but Martingale orders cannot placed according to given pips value. Please help me, I am very thankful to yours. EA code already attached. Note: This is multicurrency EA, need to attached only in one chart
My patience is seriously wearing thin right now. Why am constantly getting this stupid, bloody warning despite everything being correctly initialised? Why is it only focusing on the on those variables with the second iteration, i.e. CandleBody[ 2 ] CandleOpen[ 2 ] CandleClose[ 2 ] I am seriously
Hi, Does MT4 has the same restrictions in the latest update ? Terminal: Restricted access to MQL5 trading and history functions if the account is subscribed to a signal This basically restrict using any algo trading on a signal account in mt5. https://www.mql5.com/en/forum/473035
New MetaTrader 4 Platform Build 830: Hotfix MetaTrader 4 platform update is to be released on Monday, May 25, 2015. This hotfix update build 830 follows the previous major release. The new version features corrections in the CopyTime function and fixes of issues reported in crash logs. We strongly...
Hello All I'm attempting to get this indicator to update every 15 minutes, but it's not working, and switching the timeframe period manually makes it work. The objective is to print the line on the last previous LOW that is above the SMA, and the indication Print line once this LOW it come below the
I want to know, If I set the spread in backtesting to 10, does that actually backtest the EA as if it was spread of 5 or 10 at the time? EUR/USD on a live demo environment has 5-10 spread on FTMO, if I set spread to 5 or 10, will it actually give realistic results as if spread was 5 or 10 during
Hi,Some time ago I tried to do a simple arithmetic function as follows double lots = 0.01 ; double lot_1b = MathRound (lots* 1.5 * 100 ) / 100 ; Print ( "lot_1b : " +lot_1b ); The calculation above should produce 0.02, right? But when I run the script in MT4 on one of my VPS the resulting number is
Hello, like in topic, if I don't have a tick, can I place pending order in OnTimer interrupt at specific time
hello friends, I am trying to code a hedging strategy. I know very little coding. this is what I developed from chatgpt. This is what I want , when ever I or another EA places a buy or sell order, the EA should place a hedge order of same lot but one as a limit order and other as a stop order . It
I create a function for open orders as below and shows only buy orders. The EA allows both buy and sell orders and others remains no difference. However, if I remove the words in red (i.e. orderType == OP_BUY and orderType == OP_SELL ), both buy and sell orders are open. Any advice why such
How do you export to a file the data calculated by a specific indicator (indicator figures from a chart for a given historical period)? MT4
Hi guys, as title... I want to implement a function that close all orders when price touch the line i draw by myself... Is that possible? What can i do? thanks for any reply :)