void maxloss(){ int total = PositionsTotal (); int orderType = ( int ) PositionGetInteger ( POSITION_TYPE ) ; double equity = AccountInfoDouble ( ACCOUNT_EQUITY ); double Lossdifference = balance - equity; NormalizeDouble (Lossdifference, _Digits ); if (equity > equitymax){equitymax = equity;}
Please can someone tell me about these results? Why is the sharpe ratio so high
Am a python programmer i programmed a triangular arbitrage bots for cryptocurrency. Now a good deal drove me to forex trading i want to build a triangular arbitrage bot. i tried to understand how to do triangular arbitrage manually on MT5 before building the EA bot for it but i understand None. i
I was traying to make an EA for triangular arbitrage ... and end up with this one 20 Sharpe Ratio
(18 1 2)
what do you think about this: I'm doing it for other days .... but think I've hit hard with this one... I'm now testing with other symbols and random days (its all from a random day). This result is for 1 h time frame for 1 day
Good Morning to all members, I have coded a Cross Moving Average EA. And I want to activate a trailing stop when trade is in profit the trailing stop must be set at a certain level after open price for buy or below open price for sell.the problem is that the trailing stop does not activate when the
Hi, I'm trying to run a optimization of an EA on my VPS , but for some reason it's only running 1 core while I have 24 cores available. I tried another EA and it does the same so it has nothing to do with the EA. Even when I have only a couple of tasks it doesn't load. Anyone know what the problem
I'm having a problem using the MetaTrader 5 API to retrieve trading transactions from history_deals_get . Although the API works fine for most transactions, there seems to be a constant delay in the availability of newer transactions. For example, transactions made a few minutes ago are not
Hi Please help me out to debug problem/error in my code. I am getting different values for Highest and Lowest prices, though the data set is for the same period. The CurrOpen, PrevOpen and PrevClose are calculated correctly on each NewH01 bar, but Highest/Lowest prices are changed. Relevant section
I offer the creation of an automatic trading robot on MT5 for free. The condition is to have a precise layman's idea of using charts, peaks, or indicators. You need to have a clear idea of what you want from the robot. You must not publish or sell the robot anywhere without prior agreement. You must
Another thread with the same issue in OOP class https://www.mql5.com/en/forum/467428 Now today I am trying to run an indicator where Highest values are calculated and I am getting price much lower than the Highest price. double price1 = iHigh (gSymbol, PERIOD_H1 , iHighest (gSymbol, _Period
Hi i try to include this library #include <Trade\PositionInfo.mqh> #include <Trade\Trade.mqh> in my common.mqh library i try with <> and not work , but i try also in this mode #include "Trade\PositionInfo.mqh" #include "Trade\Trade.mqh" and not work but if i remove folder and move file in main
Hello. I want to get the number of consecutive losses from the history but I want to filter the deals by comment" ". So I noticed that the DEAL_ENTRY_IN has different comment from DEAL_ENTRY_OUT. So how do I retrieve the information? Code below int MaxConsecutiveLosses(){ HistorySelect ( 0
Hi everyone Ive been playing around with a lot of EAs for some weeks now until I decided to test the Quantum Emperor EA today. I used the demo to backtest and the results were... too good to be true Checking the reviews and comments it seems that this guy bribes ppl who blew their account by giving
Looking at the journal, you can see it is trying to modify the same position with the same SL and TP every tick: 2024.05.23 13:15:36.661 2024.05.01 21:00:58 order performed buy 1 at 1.06904 [#6 buy 1 EURUSD at 1.06904] 2024.05.23 13:15:36.663 2024.05.01 21:00:58 CTrade::OrderSend: market buy 1.00
Hi , i try to look if exist a oreder all close , i find many article but all example have this include #include <Trade\PositionInfo.mqh> #include <Trade\Trade.mqh> but where i find this library ? thanks
Hi, Is it possible to add more than one EA to a single chart ? When I try, MT5 always remove the already installed EA... why this limitation ? Thanks! Erwann
So it seems that that 'classic' way to calculate ATR stoploss can fall apart depending on the brokers configuration for a <symbol> double CalcLots( double PctEquityX, double SlDistanceX){ double ticksize = SymbolInfoDouble ( _Symbol , SYMBOL_TRADE_TICK_SIZE ); //<-- Smallest px increment
Goal to get new specified Forex Session start-end times in CPRSession[] ... (Code in ' bold' letters) ForexSession are calculated and populated in cFxSession[day][sessionID] and arrayprint used to display calculated values. CPRSession[] is created to get particular sessionID start-end times (Broker
Hey everyone just wondering what peoples opinions are, I’ve come across this strategy quant program and the "quant analyzer" part of it looks pretty cool for doing the Monte Carlo optimizations.. I’ve been having trouble get good results in live markets even after getting good back & forward tests
Hi guys, I'm coding a range breakout strategy, and as the title says, I'm having difficulty with the that particular problem
void Partialclosing(){ double ask = SymbolInfoDouble ( _Symbol , SYMBOL_ASK ); double bid = SymbolInfoDouble ( _Symbol , SYMBOL_BID ); ask = NormalizeDouble (ask, _Digits ); bid = NormalizeDouble (bid, _Digits ); for ( int i = PositionsTotal ()- 1 ; i >= 0 ; i--){ ulong posticket =
Hello, Summary: I have an EA that loads several indicators as resources, and I've been using this EA since last year. My EA has been working correctly in the Strategy Tester until a recent MT5 release (I don't remember exactly which one), when I began receiving resource loading errors in iCustom. I
Hi, I'm facing a strange issue here. I have an Expert Advisor, "Main EA", which loads a custom indicator , "MW MSSS Rev Hammer.ex5" with iCustom. The whole code is stable for weeks and for weeks I have been doing backtestings without changing the indicator's source file, only the Main EA and even so
Hi, I'm trying to migrate an expert from mql4 to mql5, but I can't get the ticket of the new position that just opened. In mql4, OrderSend() will return the ticket automiticly, but in mql5, trade.mqh m_trade.Buy only return true or false. Please help me about how to get the ticket of position that
Dear MetaTrader Support Team, Iam Maurice Khalil .. highly value the innovation and efficiency that the MetaTrader platform offers to traders and investors around the globe. My extensive use of your platform has allowed me to deeply appreciate its powerful features, including the backtesting tools
hello, I can't access m_close (an array of close prices defined ) in ExpertSignalMACD.mqh that inherits from ExpertSignal.mqh even though CiMACD which is used in the ExpertSignalMACD needs it , because of applied price of MACD indicator . why in used_series of SignalMACD m_close does not initialize
i understand what the usage of ZeroMemory is. but then i see it was included on TradeRequest SL/TP modification . so, is it necessary to use it on pending order modification? because for each request-result action, the previous one will be overwritten right (cmiiw). all variables in my code will
I have been using AI to create custom expert advisor for my needs, I have provided code below for the custom EA that should send alerts to my telegram channel. There is no error in compilation. This ea sends initial message that "Alert system initiated" to my telegram which means that the API and
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.