https://c.mql5.com/3/395/eventimportance.png Hello, I use CalendarValueHistory to get historical calendar data. datetime date_from = D'24.10.2022' ; datetime date_to = D'25.10.2022' ; if ( CalendarValueHistory (values, date_from, date_to, CountryCode)) { //.. But the most important parameter
I have all the requirements in detail. Reply if you can code a Hedging bot. Thanks
Having uploaded an app to the expert advisor and put in the appropriate inputs for a single use, I'm only getting a "waiting for update" on a -BLACK SCREEN- Any suggestions
I tested my EA system and found that when calling the system indicator, the CopyBuffer step will take a lot of time, and the time for calling the number of 1000 and 10 is the same. Does anyone know what causes this problem
Hello, i want to remove a last limit order with python. Can who help me
if I want to run different ea on different chart, so lets say I create "EURUSD" and "USDJPY" this two ea, I open two positions from this two ea, one from "EURUSD" and one from "USDJPY" if I want to change the position SL from "EURUSD", do I need to write magic number to let ea identify it, or I
Hello is there something that can I do if I don't' want to show my indicator when I backtest my EA ? Is a mq5 code
I noticed that TimeToString and StringToTime is making my EA a lot slower Is there anything I can improve on the code below? It is a function to check if the market is open for trading //+------------------------------------------------------------------+ //| Expert tick function
Hey how do we get text object to show inside a rectangle pannel mine engulfs the text objects
Hi everyone I have written an EA. Everything seems spelled correctly. EA normally opens and closes positions. However, after some time, he closes positions and there is a message like this: Position close by symbol magic, close posytion ticet#0 After this message, EA disappears from the chart
Hello Everybody, I am still learning when it comes to mql5. I'm trying to code a script that will find support and resistance levels. I'm having problems populating arrays that will hold high values for resistance and low values for support as well as sorting them in ascending order to merge values
I did do an expert here, but it does not work, the developer wants the money the same says that the indicator repaints. Which indicator does not repaint? I asked, but he doesn't answer me
I am using the following code to access a rectangle object manually drawn on a chart: void FindTradeInRect() { static datetime lastTime = 0 ; datetime currTime = iTime ( Symbol (), PERIOD_M1 , 0 ); if (currTime>lastTime) { for ( int i= ObjectsTotal ( 0 , 0 , - 1 )- 1 ; i>= 0 ; i--)
Hello, I am learning mql5. I have developed a module that validates the inputs and numerous indicators that confirm it, or not. In the strategy tester I can manually run the module one by one with each of the indicators/oscillators. I want to develop something from OnTick that allows me to execute
[Deleted]
#include <Trade/Trade.mqh> int handleDarkPoint; int barsTotal; CTrade trade; int OnInit (){ handleDarkPoint = iCustom ( _Symbol , PERIOD_CURRENT , "Market/Dark Point MT5.ex5" , "" , "DP_" , 40 , 3 , 1.0 , "" , 14 , "" , true , 0.8 , true , 1.6 , true , 3.2 , true , 1.6 , true , 3.2 , true , 5.0
Hello traders, I have a question regarding scripting in Metaeditor. I have an rsi bot that buys under 30 rsi only it does this once. Does anyone here know how to place a buy order every new candle under 30rsi? I'm not a scripter myself, so I can't figure it out. i put a file with it, i think it most
When copying historical data from "VIX_X2.a" (IcMarket) it gave error 4401. How to avoid this error
Hey fellas i need some help with my EA, for example when the "Buy" condition is true, i need it to place buy orders one after the other when the tp is hit, and the same for "Sell". currently it only opens one order only here is my code below... if (newBar){ //Buy Condition: if
Hi I need your help... i need E-books or learning material of how to create an Expert Adviser using mql5
Hello, sometimes the strategy tester stops short before completing the backtest. Then, after a couple of minutes it throws the following error: CS 2 11 : 43 : 38.525 Tester cannot add tick event (events' array size is 35782656 ) CS 0 11 : 43 : 38.589 Tester DIS,Daily
I'm trying to code my EA in mql5 and after a certain condition is met I would like the EA to loop through all the open orders and modify the SL, to just a few pips above/below the order open price but after double checking over and over it keeps on reporting Error 4754. I check and ensure that
2022.10.21 23:54:24.531 Trades '1043221': failed market buy 0.1 BTCUSD sl: 19145.00 tp: 20190.00 [Trade disabled] Can someone please explain how to get around this error. I'm running my EA in debug mode on live data, not sure how to resolve. Thanks
Hey. I have created a file called python.py in Scripts/Python.py I just need to call/run that file from my .mq5 expert advisor... Is that possible
Hello, I want to add additional features to my robot. Sell if the k line on stochastic rsi crosses below 80. I wrote this condition as follows. but it didn't. Could you help? else if(CountOpenedPositions("buy")!=0 && (signal == "sell" || ((InpKPeriod(0) > 80.0 and InpKPeriod(1) < 80.0 )))
How to write this on MQ5? if (Spread<MaxSpread&&Hour()>=StartHour&&Hour()<StopHour){ Thank you in advance
Custom EA is returning error code "initializing of 'Name of my EA' (US30,M1) failed with code -1"
(2)
Good day everyone, So, I hired someone on Fiverr to create an EA for me that's foundation is reliant on a Date/Time String Variable input (I believe is the term) and there's 15 separate entries all of which underneath the Date/Time entry, have other variable inputs. He is now MIA and I am trying to
I had created a simple crossover strategy for my expert advisor, the problem I'm facing is that a new trade order executes after fulfiling a take profit or stop loss criteria. As an example I had created 50EMA and 200 EMA crossover strategy, as soon as the 50 EMA crosses above the 200 EMA placing a
So I have a strange problem. I tried to verify NewBar appearance with the following code from Samuels article "Step-By-Step Guide to writing an Expert Advisor in MQL5 for Beginners". I tried the code on System Tester and I saw that is no trade. Than I saw that the Old_Time variable take the value of...
Hello Experts, I would like to know that Can I sell EA in this market if I create EA from Open Source Indicators? Like, I want to create an EA based on support and resistance and I want to follow this codes and convert to EA. Can I sell? That's the code I wanted to use for my EA
bool PosOrdCheck( const ENUM_ORDER_TYPE OrderType) { for ( int i = OrdersTotal ()- 1 ; i>= 0 ; i--) { if ( OrderSelect (( OrderGetTicket (i)))) if ( OrderGetString ( ORDER_SYMBOL ) == _Symbol ) return false ; } for ( int i = PositionsTotal ()- 1 ; i>= 0 ; i--)
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.