Expert Advisors and Automated Trading - page 14

Please, where should I write the mq5 code to remove all objects when removing the Expert from the graph
Hi friend, I am running an EA test on EURUSD using my 24 core processor but Strategy Tester using only one core and it telling me the test will finish in 33 hours so I am asking if there is anyway to add the other 23 cores to the process? Regards
hello guys, I'm trying a very simple EA that should close position at the end of the week . it enters long when the price is above the last high and exit on friday at 23 or for a stoploss triggered. same thing for short position. during backtesting it enters and triggers stoplosses but does not...
  Open Files during backtest  (14   1 2)
Hello, when i place a file into folder files i can open this file when running or debug my expert. But when i run the backtest, the file is not found. Ok, after some research, i found the property tester_file. When i add this to my code: #property  tester_file...
I have successfully installed and used the MetaTrader5 package on Ubuntu without any difference on Windows. Here are the instructions. 1. Install Wine with the following command (skip if you already installed) sudo apt install wine 2. Install the MetaTrader 5 platform for Linux according to the
Can the timeframe be the input parameter when it is transmitted to the CExpert class? I try  input ENUM_TIMEFRAMES pPeriod = PERIOD_CURRENT;int OnInit() { pPeriod = iPeriod; if(pPeriod == PERIOD_CURRENT ){pPeriod = Period();} ChartFirstID = ChartFirst(); if(ChartPeriod(ChartFirstID)!=...
Hello everyone, I hope this message finds you well. I am encountering an issue while testing my EA today, and I'm hoping to get some insights. Yesterday, everything was running smoothly, but today I'm receiving the following alert: ``` 2024.03.01 09:46:07.550 Tester EURUSD: no history data from
  Icon  (1)
I did see some EAs with an icon and some not. How can I add an icon
  Info from DOM  (1)
Hello! Is there any function that retrive below info from market? Like how many contracts were sold and how many were bought at a price level
hai all, help me how to make ea for test only and dont display the indicator in test mode, im serach in google not get anything somone can help me.
So I'm pretty new to MQL5 and Metatrader in general but I wanted to build my own EA with simple moving average and stochastic crossover. I feel as though I have the code right but when run in the strategy tester it places no orders, even when the conditions to do so are seemingly met in the data. Is
Hello people, there is a thing that is bugging me out (you know, like "BUG-ging"). I know it probably is a feature. I just wanted to ask why on gods green flat earth (not literally, just a quote) do input groups inhibit the calling of indicators...?!? Here are three test indicators that work pretty
  tester alert  (2)
Hello everyone, I was wondering why I get this alert when testing EA : 2024.03.01 09:46:07.550 Tester EURUSD: no history data from 2019.01.01 00:00 to 2024.02.26 00:00 yesterday everything went well, today i only get this alert. thank you Ner
Greetings, Trying to understand the meaning behind the number in the backtest results for Margin Level %. At what level would it be considered a 'bad thing", ie, being margin called in possible future live trading? For example, some of my backtests show this level at 419%, other times it is 1765%. I
Will the broker allow me to open their account on the MT5 platform and use the EA to trade? Arch Dun
Hello there! My EA has a few inputs, including an input for "price" and another one for "volume". My question is: is it possible to have, inside the input tab itself, a line or variable that can multiply price and volume and give me the full value of the transaction on the same window? Which means
Hi Everyone, I am new to coding and would like to create an EA that would work with scripts that are triggered using hotkeys. These scripts would be placing and closing orders. I am not quite sure how the connections are to be made between the script and the EA to make that happen. Any assistance
Hi everyone, I'm new to MQL5 and don't have much experience. A few months ago, I bought an EA on the market. The EA seems to be working fine, but now I want to downgrade my RAM from 16GB to 8GB while keeping everything else the same on my computer. Do you think my EA activation count will decrease
Hi, I am still quite new to MQL5 programming and I am stuck writing the code for a grid EA. Basically, I want the EA to do the following: Step 1. If there are no open positions and pending orders, the EA should call the OpenNewTrade() function Step 2. While there are open positions or pending
Hi, I’m trying to convert this function from mt4 to mt5 but I'm not sure how as I'm not familiar with mql5 code yet. Any help would be appreciated. double GetFunction() { int j,k; double sumw = (Period1+ 1 ); double sum = sumw* Close[ 1 ]; for (j= 1 , k=Period1; j<Period1; j++,k--) {
Hello, I am scripting an EA to send post request using sockets in mql5. void OnTick () { Print ( "history-->" , HistoryOrdersTotal ()); int socket = SocketCreate (); // Check the handle if (socket != INVALID_HANDLE ) { // Connect if all is well if ( SocketConnect (socket
Hi, I been struggling for some evenings now trying to get the proffit/loss from the last closed order and have tried alot of different codes. When a run my Strategy Tester it feels like it misses orders? and i read somewhere that you can use it in Tick() or in Trade() function?? Should not this be
  Strategy Tester Report not found  (166   1 2 3 4 5 ... 16 17)
I get the message " Strategy Tester Report not found" EURUSD 1H. How can I solve this
When a visual test is started on mt5 strategy tester, the window pops up and there is a main chart which using whatever template is saved as tester.tpl, then other charts of the different timeframes that the EA is simultaneously working on. How can I from my EA, manage this other basic charts, maybe
Is there a way to get the MQl5.com user name if the user logged in via MT5
I'm not familiar to C# coding
  MT5 ... SWAP  (11   1 2)
Why is there a SWAP column in strategy tester under deals with no entries ... when trades HAVE carried overnight
I got several computers here, let me list them down: PC-R = AMD Ryzen 9 5950X 16C32T PC-5 = Intel Core i5-10400 6C12T PC-9 = Intel Core i9-10900F 10C20T The situation is, PC-R can add PC-5 and PC-9 to its Local Network Farm PC-5 can only add PC-9 to its Local Network Farm PC-9 can only add PC-5 to
  Strategy Tester  (15   1 2)
Is there a way to test all time frames in one run, that out puts all results per time frame?
Hi, I wan to ask about buy and sell or entry price. I've heard about the word 'buy at the ask and sell at the bid' but there's no one talking about spread. Using the code below I want to know which one is correct between adding spread or not. void OnStart () { int distance = 100 ; double entry