OrderTotal() returns all pending orders. How can I make it specific to return only for a particular symbol and only for BUY_STOPS. I’ve been searching for hours in the forum. Only solution I found was written in MQL4. Is this even possible? Please kindly assist
Hi, im new to trying fx blue, but the ea cant run and it shows "can't reach ......." Anyone know whats wrong with this one
Is it difficult? Is a complete rewrite of the code required? I am asking for my EA seller. Because i want his EA can trade all 28 pairs at once
What the topic says, I have tried to look for some but all of them has to do with rewriting the whole mql4 in mql5, so I am here to ask if there is a simpler way
is there any EA which can close all opened charts and all opened trades when the price reaches a certain level
Hi to all guys , I am struggeling my head with a problem that sesms easy but i am not able to get rid of. the problems is with pair XAUUSD where my broker give me these values : Ticksize = 0.01 and contract size ( or lot size ) = 10. ( very poor value ) . the open price used is 2006.535 and the
preface : I know this is something i'm doing wrong 100% but i can't see it unfortunately so thanks and sorry in advance I'm using a union to quickly turn argb to 4 byte channels and vice versa union ucolor{ uint col; uchar argb[ 4 ]; }; Now , on init i'm creating 2 global ucolor objects and i'm
Hi, i'm learning so please have patience.... :-) I'm using the Strategy Tester function to try and write a simple program to auto trade based on RSI breaches, as a training exercise. These are the settings i've applied, which I think should buy at 30 and sell at 70. However when testing the...
Hi I have created a trading platform that automatically trades my strategies. I can open trades, but each time I try and close then, it fails. Open Position (Report extracted from the trade tab on the MT5 terminal): Symbol Position Time Type Volume Price S / L T / P Market Price Swap Profit Comment
If I let my chart run with all my indicators and EA, it will sometimes stop processing new events and ticks until I force it to get unstuck by changing timeframes. 1. No errors in the log 2. MT5 is still perfectly responsive (I can draw objects on the chart and change its settings while this is
Could anyone help me Pls!!!! I get this error after try to sell EA on the market test on EURUSD,H1 (netting) 2020.04.01 01:13:51 current account state: Balance: 658.00, Credit: 0.00, Commission: 0.00, Accumulated: 0.00, Assets: 0.00, Liabilities: 0.00, Equity 658.00, Margin: 0.00, FreeMargin: 658.00
During my backtesting, I encounter a few invalid stop errors when using the "random delay" setting. However, when I switch to the "zero latency, ideal execution" setting, the test runs error-free. Could this inconsistency be attributed to slippage issues arising from trade execution speed? If so
Hi Can anyone tell me how I can color (or highlight) a portion of the current candle on a chart? I have code I wrote that checks for a possible run-away candle that is based on a certain number of pips The code works except I don't know how to draw attention to that specific candle other than a
I have a news filter that disables / enables auto trading button before/after news releases. For this it uses DLL. I would like to share it for free. Can I submit this news filter on mql5 market
Hi, I have MT5 open with 5 or 6 charts. I use an expert advisor and various custom indicators . The charts move automatically, each tick is refreshed. But there comes a time, some chart stops, the ticks do not update, as if the market were stopped. The only way to refresh and resume tick event is
Hello, When running an expert advisor on MT5 with the broker AMP, the execution fails and returns error code 10017. This does not happen when utilising of brokers for trade execution. Has anyone else experienced this or have a solution ? Thanks in a advance
I wrote a code to calculate the values of the the fractals and put them in an array. At first, I had results of weird numbers but when I added the line that makes fractal=0 when the value of the fractal is "EMPTY", I started getting results as 0 on the chart. My question is, why is the value empty
Hello, I am encountering the "Invalid Stops" error message in my EA code. After conducting a check, the value that is being returned is 0. I have confirmed that the issue is related to the stop loss and not the take profit, as I am not placing a take profit at execution. I would like to know if you
Hello, can someone explain to me why this does not work? void OnTick () { myfunction(); } //+------------------------------------------------------------------+ //+------------------------------------------------------------------+
Hi there, I've been woring around this idea for some time and I still haven't found the way to make it work properly. The idea a is quite simple, on a multicurrency advisor , let's say 28 fx pairs and 8 traded currencies filter (do not trade) those pairs with an already traded currency. For this I
If I have an EA (MyEa.ex5) and a set file (Params.set). Can I use a python script to automatically start the EA, read the results when done, update the .set file and repeat the process
Hi I need any expert advisor for any trading system that is open source ( mq4 format) , provided that it is fully prepared for adding here on the site (market/mt4/experts) without errors in the code such as lot size and margin I will modify it and add my own strategy thanks
My EA is having an occasional issue calculating the correct lot size. Most of the time it functions properly but occasionally it will try to send an order for the maximum lot size that my broker will allow (I can tell this because of the journal tab, along with a 'not enough money' error). The EA
#include <Trade\OrderInfo.mqh> COrderInfo eapending; void DeletePendingOrder() { ulong ticket = 0 ; for ( int i = 0 ; i < OrdersTotal (); i ++) { if (eapending.SelectByIndex(i)) { string OrderSymbol = eapending. Symbol (); ulong Ticket
Hello I have an EA and I don't have the source code and I cannot modify it I activate it for multiple pairs and when he open a trade in one of the pairs I want to close the EA of the other pairs and only hold it in the pair the order was opened in
When are times that trading get trade disabled in back testing. The order details are as follows: Trade action: TRADE_ACTION_DEAL Trade symbol: EURUSD Magic number: 0 Order ticket: 0 Order type: ORDER_TYPE_BUY Order filling: ORDER_FILLING_FOK Order time type: ORDER_TIME_GTC Order expiration: 1970.01
Hello guys, is there a way to limit orders using magic number? For example i have 10 chart where run the same EA ,with 10 different pairs and 10 different magic numbers. I just want to limit number of pairs open at the same time at specific number, i can allow multiple orders for same pair but not
Hello guys, My first "bot" and i have a problem with ordersend How can i declared Bid ? int ticket = OrderSend ( Symbol (), 5 , lots, Bid- 1 , 3 , Bid+ 14 , Bid- 30 , "Pendu" , magic, TimeCurrent ()+ 299 , Green); Thanks for your help. Have a good day
Hi everyone, Here is the problem I am trying to solve I did not find materials for it on MQL5 yet, so I'm looking for your help. Is there a way to prevent any new orders from reaching out to the trading servers? In other words, I need to capture the event of sending order (manual, copy trade, or
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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.