I want to have an expert advisor with following conditions. Somebody help please: 1- If the price is below of MA10=NormalizeDouble(iMA(Symbol(),Period(),10,0,MODE_LWMA,PRICE_OPEN,0),digitz) put a BUYSTOP at MA10. 2- If the price is above the
I am looking for help in trying to "call" this indicator (see attached) from my EA. icustom does not work because this indicator does not use buffers to store the values. Does anyone know how I can "Call" this indicator using an EA and get the values or does anyone know how to add buffers to this...
Hello dear traders and programmers. I have been working on a strategy idea for over months and after long manual backtesting and several adjustments I developed a fully working strategy. In this TS I scan pairs and find strong trends or high volatility symbols Then I at London break I create order
My saved input parameters changed themselves to an unknown version that breaks my EA. It rarely happens but it's at least the second time I notice this behaviour
as my title say can I store or get the last value of my AccountEquity() before it changes to its current value
This is the error I got when I running the EA. But some mt4 apps runs the EA perfect. But Exness broker mt4 gives this error to me. Anyone can help me to fix this.
Hello every one! I am coding a robot to which I would like to add the classic money management however I am encountering an OrderSend error 131 problem that I cannot resolve even though I am sure that my error is super stupid! The code : double Lots; { if ( OrdersTotal () != 0 )
Just a quick question. If I am backtesting an EA on the Model: Open Prices Only and I then use technical indicator functions(i.e iBands ); what would happen if I set the shift argument to zero. What would the indicator value be (Value of the indicator on open?)
Hi, everyone, I wanted to convert the following MQL4 Indicator to MQ5. Unfortunately, the compiler spits the error message: ARRAY OUT OF RANGE. The error message refers to the following line in the OnCalc(): " if(close[i]> close[i+1]) ". I do not quite understand the program logic of MQL4, which is
I'm struggle to set my TP the range of the previous bar I've manage to set my SL for a SEll trade above the previous bar range but i want to set my TP in the same way RISK TO REWARD WILL BE THEN A 1:1 Code for opening a sell position, but I'm not getting the Take profit section to work Any advise
Hi, I'm new to MT4 programming. I have a set of variables (of prices) that are from custom indicators which I have placed into the following variables as per the code below. CurrentPrice = Bid; Resistance3 = NormalizeDouble (ObjectGet("R1", 1 ), 2 ); Resistance2 = NormalizeDouble
Hi everyone, I'm interested to see people's appoaches when backtesting automated strategies... Here's my journey with backtesting so far: 1. I initially started down the route of using MT4 optimisation and strategy tester to find 'profitable' EAs which I have written. I then realised the hard way
[Metrader 4] Can we copy signal that have micro symbol name to account no have micro symbol name
(2)
I want to copy trade this signal this provider use broker XM micro.For my copy account is FBS cent account Can I copy this provider ? Provider account(Micro account broker XM) My account(Cent account broker FBS)
This is my completed indicator code : //+------------------------------------------------------------------+ //| Smart Arrow.mq4 | //| Copyright 2021, MetaQuotes Software Corp. | //|
I would like to change the " The Block Comment command (Ctrl+/) inserts single-line comment characters in the current position: " https://www.metatrader5.com/en/metaeditor/help/development/intelligent_management#comments in metaeditor. I would like a longer version of the " The Function Header
[Deleted]
- I want tp = 100pip initial sl = - 25pip sl = +1 when profit = 15pip sl =+20 when profit = 40pip sl =+40 when profit = 60pip sl =+60 when profit = 80pip please help me, i tried to install it but i can't
Hello, I'm trying to learn the code. But for the following problem I have found nothing in the documentation: How can I start the same buy-limit order again after it was closed? for example: buy_limit EUR / USD opened at 1.35, tp closed at 1.3510. Now I want that this order is always opened at 1.35...
Hey, guys, I'm having an issue with creating an object. I want to create 2 arrows, in MQL4. They are to be a lower low and a higher low. When I create the "first low" object it shows up on the chart, but when I add the second "current low" it doesn't show up. It's like it cancels out. Does anybody
I'm trying to create an indicator as part of a complete trading system, that generates an alert when a Heiken Ashi candle is closed that has no wick. So for a bearish HA candle, no wick at the top @ close -> Alert. For a bullish HA candle, no wick at the bottom @ close -> Alert. Any ideas how to
How can I change the "speed" of the chart when backtesting in the visual mode....?? When I move the "slider" to 32 it is way too fast....and 31 is like watching paint dry..... too very slow? Does anyone else have this problem??
Dear I have no idea why it does not delete pending orders after closing positions. It close open position in perfect way. Somehow, it does not delete pendings. Any help? void CloseAllOrders() { for ( int pos= OrdersTotal ()- 1 ; pos>= 0 ; pos--) { int Ticket=OrderTicket(); double
I was wondering if there is a way to draw candlesticks or bars from custom data like csv file or API feed ? I know there 2 ways to draw them using histogram like heikenashi candles indicator , or drawing small trend lines with thicker width from open to close price and trend line with thinner width
Hola a todos Disculpen la molestia Quisiera saber si me pueden ayudar a obtener los datos de el indicador personalizado que adjunto, para agregar un filtro a mi EA. Me ha servido mucho ya que identifica las tendencias de otras temporalidades basado en una MA con período común, y lo que quiero es...
Hello, I was searching options for investment and somehow got contacted by <broker name removed > and started trading with them. They´re methods are very aggresive and I now think I might be scammed. Is there a way if I have some money in MetaTrader4 to change brokers or have the money send directly
Hi to all, hope someone in the english section can help me. I try to create a GRID-EA. For the following problem I will use the assumption just trading long. 1. Step: using an input variable to define the gridsize --> Grid_Abstand = e.g.: 200 2. Step : find out the current price-level on the chart
Hello! Recently my MetaTrader 4 Market tab inside the Terminal window stopped working properly. Every Market tab (Main, Favorites, Purchased) shows a blank white screen. The same thing goes for all of my platforms running MetaTrader 4 version 4.00 build 1045 (3 Feb 2017). I have tried restarting...
Hey, I would like to ask a question for the my issue I've been experiencing. It's so weird. I have a for loop to close my orders. As you see on the code, the if(OrderType()==OP_BUY) block doesn't work. And more interesting than that this, this block works on a X broker, but doesn't work on Y broker
I am trying to display text on a chart with OPAQUE background but no luck so far. I will appreciate anysuggestions.
After i made a new expert with a new file name - the hosting service gives an error when i try sync: cannot open file 'C:\Hosting\instances\FC3A466BEEDF9BAD469E9411B477DA44\MQL4\Experts\MyExpert.ex4' [2] Why would this start happening with new experts i create and want to sync? I am still able to

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.