Expert Advisors and Automated Trading

Let's look at the results of the tests on one and a few characters. The tests will be conducted in All ticks mode. You can use your own multisymbol EA schemes to reproduce the problem and share your results. Let us denote the problem. For example, if you test one symbol, the test time takes 1
i apologies for my subject topic .Am having trouble with two pivotal logics of my project here is the code i am to enter a trade if there is a squeeze of bollinger bands and a crossing of two moving averages, fastma or rma and slowma as yma if the second crossing happens during a breakout happens
Hi All, need help with transforming a Source File into a running program for MT5. It's my first time. Thanks
Hello guys. I'm very new to coding started a few weeks ago. And I have build the following EA. But the EA only opens buy trades. Can you guys help me out? What is wrong with the else if statement. Please explain in detail because I wan't to learn as much as possible. #include <Trade\Trade.mqh> //
Hi all, I am new to coding and created a simple script for an EMA cross with periods 3 and 26. The EA is not catching all cross events , only some of them. Can somebody see what is wrong? I added print statemts so in the EA journal you can see the events not being captured as the change from
Can you tell me if this is a realistic tester figure? And is this a good or bad result for a year with a deposit of $3,000
  Self learning expert  (47   1 2 3 4 5)
Found this on Poul Trade Forum at www.kbpauk.ru the first backtest profit factor .99 2nd,3rd, and fourth backtest better this one attached is the 5th backtest with a profit factor 4.00+ and less than 3%drawdown for this year.Tried fwd. testing this week with no trades. Seems it doesn't work on fwd....
I like the feature of the MQL5 Cloud Network for assisting in optimization runs and I thought I would be able to approximate the run of my script by performing a small sample size run ~500 and then dividing the cost by the number of runs. My initial calculation was $0.00026 per run and I
hi vereyone How do I make profit appear above the candle? can anyone help me to get this code plz
//+------------------------------------------------------------------+ //| VWRSI.mq4 | //| Пользовательский индикатор для MT4 | //+------------------------------------------------------------------+ #property
see my code //+------------------------------------------------------------------+ //| TrendBias.mq5| //| Copyright 2023 | //| https://www.mql5.com |
What is MQL5 Wizard : The MetaTrader 5 Trading Platform includes the MQL5 Wizard , which allows to quickly generate code of an Expert Advisor (Expert Advisor builder). With MQL5 Wizard, knowledge of programming languages is no longer a prerequisite for creating trading robots . In the past, it
I had some random results trying to compare brokers and their spreads... So I wrote a little code to see where my spread values were going wrong - see below. Now I'm not sure at all! - the CopySpread function seems to be making it up!? See the example output (suggesting that the spread is either 6
Hi, Stuck into a problem. Using the standard MoneyManagement modules results in OrderCalcMargin always returns true and margin 0. in AccountInfo it's that call OrderCalcMargin (trade_operation,symbol, 1.0 ,price,margin) which with further execution leads to the usage maxvolume of the symbol
I am currently developing an Expert Advisor that performs arbitration between two symbols: WINV24 and INDV24 (Brazilian Assets). I run my backtests with WINV24 as main symbol and it works fine for receiving tick data. However, when trying to access INDV24 tick data during the backtest, all values
I currently have my EA calculate values on the last x amount of bars - this however creates a huge lag during back testing - because of the "for loop" it looks like it executes on every tick. This is how the value check stars: //CHECK ID10T VALUES FOR BUY OR SELL if(BUY_ORDER   == 0 && SELL_ORDER...
Hey all, I wonder if anyone can help me. I am trying to launch MetaTrader 5 using a batch file and then loading a custom ini file that I have created using the information on the https://www.metatrader5.com/en/terminal/help/start_advanced/start#command_line page. This is the current information
hi, i am looking for an ea that lets me move the stop loss automatically. This is what i need? open a position and once in a position i want that the stop loss move automatically once a specific price has been reach. and then once another price has been reach move again to another position
Dear Good day Anyone to assist? I have an EA which- uses combination of Palabolic SAR and two MA Crossing to execute trades. It is to buy or sell when Fast MA- crosses Slow MA Up and down respectively in support of Palaboric SAR. I have attached the EA on Forex pairs, Crude oil and Gold and the EA
Hi, I am having troubles deleting pending orders when I release the EA from chart. OnDeInit() I use the following code void OnDeinit ( const int reason) { //--- // delete pending orders for ( int i= 0 ; i< OrdersTotal (); i++) if ( OrderGetTicket (i)) if ( OrderGetString (
  News Alerts EA  (1)
Hi, i'd like to add some functionality to prevent a bot entering a trade a certain number of minutes after a big news event. In the line before a trade is placed, I have added a call to a sub routine named BigNewsAlert(); In this section, i'd like to check if any of the last 5 candles have got a
Hi When I download an expert ,the widget is not in the correct measurements to be useful.It happens with all experts I download,mostly for closing open orders or similar things. is there a way to fix this in the mt4settings or the laptop(Acer Swift)? Thanks for your insights
Hello! I have saved a GlobalVariable() on Friday, and today I had a computer crash, and after I have restarted and checked, global variable is missing . Should that happen
I have found accidently that the historical spread (Ask-bid) used to open and close orders during backtesting in the strategy tseter is different from those stored in the Mql rates. For example, you can get historical spread using the following code (Lets say your EA is attached on M1 chart)....
I tried searching; this must have been asked before but I couldn't find anything relevant; sorry for asking such a 'stupid' question but; I used ot use mt4, and in back tests it had a tab for 'trades placed' or 'results' or something... that used to show me the breakdown - SL/TP, lot sizes, P/L -
Hi. I can't get rid of these errors at compilation stage. It seems to me that I'm using a correct syntax but if there is an error then I'm definitely doing something wrong. Can you show me where the problem is? Errors: 'SymbolInfoDouble' - no one of the overloads can be applied to the function call
I'm new to MT5 and I was playing with the EA. I dont really understood how the EA work with the indicator but I have learned that the variable "Signal threshold value to open" and "Signal threshold value to close" is used to allow the indicators to turn on or off based on a calculation
Hi! I want to examine specific trades my EA took on the resulting chart produced after the backtest is completed. In e.g. TradingView.com, I just have to click on the trade in the strategy tester report, and it navigates me to the location of it on the chart where the trade was placed. I can't
i have a indicator that sends out signals in the form of arrows i have beentrying to automate the entry and exit of trades, i have been under the assumption that they were created objects (the arrows) but they dont show up on the object list and the code that i wrote used objectsTotal but it doest