Hi, I'm now in programming and I have this error with this function void CheckEquityLoss() { if ((AccountEquity() < AccountEquity()(1 - EquityLoss/100))) { if(filterMartingala) Chiusura(); CloseAllBuy(); CloseAllSell(); } } in this function I want to close all trade if my
Hi all! I'm coding my very first trading bot, but i'm stuck on this point since a while, even if i've looked to the guide deeply... I have coded a bot that i sending telegram messages every time that i'm doing an action on MT4, and is also saving the operations to a csv file like this one: Order
Good morning, I would like to tell you my little problem and see if you can help me. I am new to programming. I have programmed a robot that when doing the backtest works perfectly and carries out the operations in the way I want. The problem is that when I switch it to real, the robot closes the
I have an existing EA that i use on different brokers with the following formular to calculate it's position size: double GetLot(double risk, int sl = 0) { double Free = acc.Balance(); double tick_value = smb.TickValue(); double tick_size = smb.TickSize(); if(sl <= 0 || tick_value <= 0)
Hi, I would like to do the following: EA.mq5 #define FILE_TO_INCLUDE "Env1.mqh" #include "Body.mqh" Body.mqh <... som stuff ... > #include FILE_TO_INCLUDE Its not working right away -- is that possible with some trick
MT5 question. I want to build a system that gets in and out of 10 pairs at the same time.
Q: When backtesting, am I able to set a custom spread for each of the 10 pairs, and a custom SWAP for each of the 10 pairs, that takes effect during backtesting?
I need to be able to see that my multipair...
Hi. I am trying to extract timeCurrent inside onInit() and onTick() to get optimization starting time and current time, but it returns 1970 when I try to Print these variables during onTesterPass or onTesterInit. Does anyone know what is the problem? Thanks
Hi, I just backtesting my EA and I saw an abnormal behavior in the graph shown below, After looking into the chart there isn't any particular trade that resulting in that drawdown. I looked into the journal log and found that after 2022.06.30 the strategy tester restart the equity of the strategy
MetaTrader 5 has the Debug/Profiling section on its Options at the taskbar. But the MT4 does not have it. So how to code debug/profile and have same or similar details and results as using the Code Profiler but on the MT4
Hi . Is it possible to set a time limit on the backtest ? I found an expert advisor who does not open a position even in the backtest from 2021 to today. Several people commented that this expert only opens positions based on the history that is placed inside it, and its strategy is fake, and it
According to the documentation of OrderCalcProfit , "The function calculates the profit for the current account, in the current market conditions, based on the parameters passed. The function is used for pre-evaluation of the result of a trade operation. The value is returned in the account
I need somone to build to me an expert advisor for my strategie based in martingale and hedgin . the role of this ea is to close trade at profite this depends on the number total of open trade in symbole '( ) for exemple : profit target = 10$ coefficient = 0,85 nombre of trade =1 profite on closing
When I want the effect: It starts when the profit reaches an increase of 300 points. If you hold a BUY order now, and every time the price rises by 100 points compared to the entry price, adjust the position of SL to SL+100 points. If you hold a SELL order now, and every time the price drops by 100
I am testing my EA using the strategy tester and I have been getting a wierd issue. This is for dec 12 3550 build. metatrader demo account I noticed that when I run the EA withought visual mode on, it missed trades. So when visual mode is on, it takes all of the trades. I narrowed this issue down to
Hi, I created an EA which makes trades if some conditions are satisfied and I'd like to optimize two parameters - the SL (in pips) and the risk-to-reward ratio - which do not affect those conditions. However, when I perform backtest, I see that for most of the combinations no trades are actually
This morning, I purchased an EA from a seller who promised to provide the settings and personal bonus by contacting him. I have left several messages for him. So far, no response. The product is practically useless without the settings. I opened a ticket with the service desk. Does anyone have
I have tried multiple approaches to this, based on the documentation and on information I've found in this forum, and I can't get anything to work. Simple version: void CloseAllPositions() { CTrade trade; while ( PositionsTotal () > 0 ) { trade.PositionClose( PositionGetSymbol ( 0
[Deleted]
MQL5 calendar is bad Taking today Ifo Business Climate as an example MQL5 Site: 17:30 Forex Factory: 5:00pm Investing: 5:00pm DailyFx: 5:00pm All are GMT+8 time zone. How can MQL5 missed report such an important event? Unbelievable!!! Can someone fix it
I would like to know if anyone has a clue how to program EAs much faster, without all the slow process of coding 2000 lines.
I have seen somewhere Programming platforms that enable to develop EA in under 2 minutes, and work much better then MQL Linear Programming.
Can Anyone share some information...
Hi can you help me how can i take a backtest with 99.9% modeiling qulality in mt4
Hi, I am a US resident, and I don't have access to Spot Gold trading. I want to subscribe to an EA that trades GOLD but then do a cross trade to XAUUSD with my US broker. So when the EA initiates a trade in GOLD, I want to initiate the corresponding trade in XAUUSD. Is that possible? If so, how
Hello. I have several MT5 terminals from the same broker on my server. I renamed each instance so I can run them independently. Now when I try to connect to the marketplace it is not allowing me. It says to make sure the "web address res" is correct. It's pointing to a web address with the name of
how to write fast working expert advisor hello, I wrote an expert of medium complexity, but his backtests are progressing very slowly. It tests 10 days in 20 minutes. It's very slow because maybe I'll have to test the last 5 years. Some experts, which are more complex than mine, can be tested very
I rented a VPS here. At the time of registration, the page showed that NY's VPS connection to my trade server was delayed by 0.72ms, but looking in the VPS log found that the VPS did not connect to the trading server in New York, but connected to the trading server in China, resulting in a delay of
My idea is: i want to be able to manually place my fibonacci on a chart and have the EA send me an email notification when the bid price hits a specified level(example: 50%, 61.8%,etc...) in the EA. But my only problem is i'm having trouble getting the fibonacci levels while using the string
Hi guyz, Please I'm new to Mql5 language, I wrote a comment line, but while running the backtester the comment is not available. If the EA is placed on the actual chart, the comment shows. Is this an mql5 thing, i don't experience such with mql4, and i need the comment to always get more info about
i am thinking of buying a robot on the market of mql5 can any one give me advice of how to setup a demo so i can test before i buy
As a newbie, I want EA to open maximum of three positions each with a difference of 100 point when condition is met. Anyone who could help us with a general idea, which will help us all thank you

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.