Expert Advisors and Automated Trading - page 99

Hi, If there is £1000 in the balance, and I want to run 2 different EAs for 2 different charts, is there a way I can organise/split the funds, e.g. 1st EA can have £700 and 2nd EA can have £300 to trade? Or do they have to all trade from the total fund of £1000? I am new to MT5 so would really
Hi, Requesting Help with Test report for Version 2.0 [Invalid Volume] Im trying to list a EA and the Test Report is giving me an Invalid Volume. I have tried different methods but it has the same error. I am also trying to make my trades based on Percentage input double Lots = 7 ; if (Condition){
To help gain a much better understanding of quantitative trading, I want to give you an overview of all the different algorithmic trading strategies that exist. Besides improving your understanding, this should also help you decide what kind of algorithmic trading strategy you want to learn more
I have installed mt5 on the ubuntu 22.04, the 'uncomment lines' is ctrl + ; , it conflicts with the paste action's keyboard. Is it possible to customize the shortcut in mt5
Expert works in Strategy Tester but not working in demo account in live market, how can I fix it? I already have the base code and I didn't create it
  MQL5 to Telegram  (4)
Hello guys, I've found a way to send out trade details from MT5 to telegra using the following function (Sorry I can't find where I got this from!): void telegram_send( string token, string chat_id, string message) { string cookie= NULL ,headers; char post[],result[]; int res; string
//+------------------------------------------------------------------+ Indicator::NormalizeComponentValue( const double &componentValue[], const datetime &strategyTime[], double &output[], int ltfShift)
Today my first EA sent its first order, which was at the place of the blue arrow, Buy order EURUSD @1.08420. What I confused is, why my EA sent this two order? The design logic of this EA is, when MA35 crossed MA20, the buy order can be send. But as I can see from picture, there is no any MA cross
Hi everyone I wrote a trend following strategy. It was firstly tested on python, the results looks good. But when I wrote it in mql5 and the results seems different and bad. The backtesting plots shows entries of trade on places that it never traded in the past. It is way above the high and low. Can
Does anyone have any idea or tips to help me with my first ea - ive done everything I need to do in the EA to make it work and run well - however im having a little trouble with my findHigh and findLow functions Im wanting to place an order on a high after having 'x' amount of candles that are lower
Hi, I have a function which closes open long positions when my virtual stop losses are hit. I am about to extend this to short positions as well. The function is about 500 lines long. I was already about to copy paste the function and change respective parts to fit the closing of open short
I am looking for a solution on how to get my ea to copy trades and for it to show "trade placed manually" label instead of "trade placed by expert". I know it can be done because I've ran into a few EA's that arbitrage trade and they show trade placed manually, which is impossible to be done by a
Hello guys, I have some years of programming knowledge in different languages, but i am really new in MQL5. To automate a strategy I am working profitable with since 1 year +, I need some functions, which I dont know how to start with. I hope you can help me. Basically its simple... There has to be
Is there a programagic way (like SymbolInfoDouble, or AccountInfoDouble) to get the broker's commission per lot. From the market watch window, I can get it by right click on a symbol -> symbol specs. Anybody has an idea how the market watch window implemented it? I suggest this feature should be
Hi everybody, i would like to gernerate a MT5 EA code which closes trades after certain days. I loop all open trades and after a holding period of e.g. 10 days I would like to close them Anybody an idea how the loop could look like? Th
Hi, I'd like to confirm my logic to limiting my trading EA to given hours (start to finish) and days. //setting up trading session input string SectionLabel = "Trading Session" ; extern string StartTime = "01.00" ; //EA starts hour extern string EndTime =
Hi guys, how to set initial balance and currency for the strategy tester? I cannot find the setting for that. Thanks
Hey everyone, I recently attempted to backtest an expert using MT5 demo servers and experienced extremely profitable results. However, when I tried to use the historic data of my broker, FBS, I had 0% gain or loss on all pairs. I used the default settings and even raised the deposit load up to 70%
  MQL4 to MQL5  (2)
Hello, How can I write the following MQL4 condition to MQL5? if ( OrderSelect ((IT_E2565O - 1 ), 0 , 0 ) == true && OrderMagicNumber() == MagicNumber && OrderType() != OP_BUY && OrderType() != OP_SELL);
Hi, I'm using the macOS version of MT5. Hoping there's some way to install this EA while still using macOS (i.e., without having to use virtualizationi). And Bootcamp is not an option as I'm using an M2 Mac... Any help would be much appreciated! Thanks so much
Hi how can i get the time of 10th candle later on H1 timeframe?
Hi all, please see screenshot string str_start = TimeToString (start, TIME_MINUTES ), str_end = TimeToString (end, TIME_MINUTES ), str_now = TimeToString (now, TIME_MINUTES ); I'm getting 00:00 for start and end How can I determine that the market is open for trading
Hi, some of us use the timer to check chart settings for synchronizing etc. I figured out, that some simple executions of ChartGetInteger() can produce a drastic delay of up to 100ms already already in this simple sample. Problem is as usual: Once you use such a timer and you have 10 Charts opened
Hello, I'm new to trying Expert Advisers for ES futures. I've previously used them for Forex with mixed results. Do you suggest trying to purchase one, or to try writing my own first? What are your experiences
Hello guys, I need help adding trailingstop into my EA. Please assist me in identifying the issue so that I can fix it and update my code.👇. if ( PositionSelect ( _Symbol ) == false ){ if (StdDevVal>StdDevAVGVal&& Ask > MaValine && MaValine > MAValue && MAValue > MAAvalue) { int ticket;
double calcLots( double riskPercent, double slPoints){ double ticksize = SymbolInfoDouble ( _Symbol , SYMBOL_TRADE_TICK_SIZE ); ticksize = NormalizeDouble (ticksize, _Digits ); double tickvalue = SymbolInfoDouble ( _Symbol , SYMBOL_TRADE_TICK_VALUE ); tickvalue = NormalizeDouble
Below in the coded section, I have a CGraphicalPanel class representing my Panel . But I see when minimized the panel in X dimension, bit too narrow. How would I change the the size of the panel when minimized? Would like the panel to be large in X dimension when minimized. All I know that
I tested my EA in tester and suddenly discovered mysterious problem. EA does not trade YEN pairs except USDJPY. But has no problem with live trading, all yen pairs works there. Digits as always: int digits_adjust= 1 ; if (m_symbol. Digits ()== 3 || m_symbol. Digits ()== 5 ) digits_adjust= 10
So here is part of my program, in a function designed to loop through all the Symbols in Market Watch: Print ( "assetlist = " ,assetlist); bool selected = assetlist == "SELECTED" ? true : false ; Print ( "selected = " ,selected); if ( StringFind (assetlist, "," )< 0 ) number = SymbolsTotal
Hi, Just working with an EA, and would like to have some safeguards put in. Wondering if there is an EA that closes all positions based on account drawdown from max, say 35% drawdown, closes everything (making sure the entire account doesn't drop to zero. But I also want it to turn off the active