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
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 :)
Today I decided to check some info about price history in some pairs. I created new account, logged in and saw this. Can I change this somehow
I have Define variables 250 pieces , how to package them at the end of the code
Hi, I am working on implementing strategies developed in MQL4 into python here. The built in ADX function seems to use a different smoothing method than the conventional wilders smoothing method. The values differ by a significant margin(see screenshots). Is there any way to access the source code
Hi there... could anybody give an avice, pls? My EA sometimes stops due to an error. The error is shown in Terminal/Experts and EA stops. Is there a way how to duplicate this error mesage as Alert/SendNotifiction? I only have an idea to add a counter to it, then store it as a GlobalVariableSet, then
Hi; I have the following code that will draw a level in the installed CCI. if (PositiveLevel > 0 ) { // Check if the object already exists (to avoid duplicating it) if ( ObjectCreate ( "BuyZone" , OBJ_HLINE , subWindow, 0 , 0 ) == 0 ) //subwindow defined earlier { // If
Hi; I have the following code below to automatically increase the string instead of having to manually enter each character. // Display Divider ObjectCreate ( "Divider" , OBJ_LABEL , 0 , 0 , 0 ); ObjectSet ( "Divider" , OBJPROP_CORNER , WhichCorner); // defined earlier ObjectSet
[Deleted]
I have a DLL that I have re written to control my EA and in so doing I have introduced a memory leak. From forum readings I understand that this is likely do to not destroying the string arrays in the DLL. Rather than passing a string back as I did originally i simply pass the pointer to the string

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.