Expert Advisors and Automated Trading - page 38

I am trying to debug my deinitialization with the visualizer, but I don't see any evidence of deinitialization in the visualizer's Journal. Is there a way to get normal deinitialization in the Visualizer Tool? Here is the basic EA I wrote to check to see if I could get any reactionary print in the
Hi there, I noticed, that on some mashines the Metatester consumes a lot harddisk... in the windows ressource monitor the harddisk is used with 100% ( running 10 tasks f.e.), therefore the process is more or less stalled ... this only happens on some mashines.. the RAM is not used at all , so there
  CheckVolume  (3)
hi, can anyone explane me why i can't find the method CheckVolume in the MQL5's guide?? please help me thanks
Hello champs! So I'm trying to test and optimize my strategy using two Parabolic SAR indicators with different inputs. //... signalPSARHandle = iSAR (symbol, timeframe, signalStep, signalMax); if (signalPSARHandle == INVALID_HANDLE ) Print ( "Error creating Signal PSAR handle" );
Hi I am new to mql5. I want to write the code to connect the close prices of candles to each other in an expert advisor file. In Pine script, it is: plot(close) In mql5 I can use something like this, but it creates numerous parallel lines. int numberOfCandles = Bars ( _Symbol , PERIOD_CURRENT );
  Notification  (6)
Hello! I keep receiving this notification on my terminal send request failed(invalid certificate). This notification starts once I open the first trade on terminal. I closed the trade, notification keeps coming. If I restart the terminal, notifiation stops until I open again one trade. Kindly
Hello! I'm creating an EA primarily using OnTick() and to confirm it's working properly I was using CopyTicksRange() to double check the results. The issue was that they were diverging and upon further investigation I noticed that the Ticks from one are completely different from the other, even from
Hello i need some info if it is possible, i have made a demo account for mt5 and i copy the main mt5 folder to have 2 terminals on the same computer . It is working i have the demo and the live account on 2 terminals but when i copy the EA's in the data folder of the demo terminal , the terminal
Hi, I have trying to put a panel around some labels that are just getting certain information, to make it look better i have colour schemes. The colour schemes have background colours. //+------------------------------------------------------------------+ // Enhanced Panel Functions
Hello, I am running 1 EA on 28 different pairs, using 28 different charts. At present, I attach the EA to each chart one by one, which is quite time consuming. What is the quickest way to attach this bot to all the charts at once? Is this something possible? Are there any alternatives? Thank you in
After adding multi line comment to my EA i noticed huge spike in CPU usage while Backtesting in Visual mode on every tick string comment = "First Line\n" ; comment += "Second Line\n" ; comment += "Third Line\n" ; Comment (comment); So i decided to crate my own Comment function and it turned out to
today is saw a great tutorial about a newsfilter. The filter calls the events and check if there important for the pair im trading to. nice way to escape voilent moments... but i really like to try to work with the calender. i want to call the actual value of the last event. So i can check if the
Hello, I am reaching out regarding the integration of Python with MetaTrader 5 (MT5). I have encountered difficulties when trying to integrate Python with MT5 for automated trading and analysis. Currently, I am unable to utilize Python in conjunction with MetaTrader 5 despite following the python
[Deleted]
How is it that the POSITION_COMMISSION property is not indicated in the documentation on the properties of positions, nor proposed in the code completion in MetaEditor? https://www.mql5.com/en/docs/constants/tradingconstants/positionproperties#enum_position_property_double However, we find the
Hello everyone. Compiling this code I am getting the following error: "function 'Test::test' already defined and has different return type" template<typename any > struct Optional { any value; }; class Test { public: template<typename any > Optional < any > test(); };
double CalculatePoint() { if (Digits == 3 || Digits == 5 ) { return 0.0001 ; } else if (Digits == 2 ) || Digits == 4 ) { return 0.01 ; } return 1.0 ; } Improperly formatted code edited by moderator. Please always use the CODE button (Alt-S) when inserting code
For example, if my model has 200 factors and I've exported an ONNX file using Python, but MQL5 needs to handle the data for all 200 factors, it can be quite cumbersome. Is there a good way to handle this
So i made a strategy wich uses data gathered by me manually , and for this i need my EA to calculate on tuesday morning (3am ) my monday range (high-low) but doing this taking into consideration only the candles printed starting from 3 am (server time) , i tried doing this using a static value by
What's the difference between Every tick and 1 minute OHLC modelling in strategy tester ? Why is it that all strategies that look profitable using 1 minute OHLC modelling went badly if I were to change it to every tick modelling? All of the strategies are in higher time frame, such as 15 min, 1 hr
Hi All. I am unable to figure out this. 1) Step 4: Code - Stuck at 20% Not sure what to do here. I believed my code is compliant with the code standards. Can anyone provide any advise? screen shot link is below, 2) Unable to insert img from codebase and forums. Insert img icon is missing on both
Hi! I have set my strategy back tester to back test a EA against a daily time frame over a year's worth of data. I have checked and Exness is able to provide tick based data for this time frame. One of my conditionals before submitting a long or short trade is to check whether the bid or ask price
The specific idea is as follows: EA has inputs: int countorders= 1 string timeclose = "5:00" double lot = 0.04 ... After running, EA returns a result set of inputs in a file as follows: countorders = 4 timeclose = "7:25" lots = 0.04 ... Start testing again with that input and continue repeating X
Hello all, I have been developing EAs for a little while now and have noticed not every broker or server provides the same amount of data. For example on EURUSD you may be able to get the data from now to 2020 for a 1 hour chart but if you switch brokers you can get the a longer period of data for
Hello Folks, Does anybuddy can tell me, how the CScrollV works? I have a CScrollV in my Panel, an the CScrollV Element packt with dummys. One is allway overlapping down there, but most confusing is: I can not tell, how to get the Entrys move, while scrolling (I can move the ThumbBar) I can not put
Hello, I am seeking a method to get deposit and withdrawal record by code. MT4 and mT5, any idea and experience share ? Many thanks
I know how to publish settings to VPS, but how can I view the settings on the VPS at a later date from within MT5? I know there are journals but is there any easy way to see my EA settings? I have multiple VPS so it would be able to click a button to see the EA settings
I am trying to get my EA working that calls on Open Ai API for chat gpt to make trades automatically based on current price and history. Maybe news too. But i keep getting these errors - Yes i know my API key should not be hardcoded but for testing purposes i have put it in. Also open ai api url is
Hi, I'm working on an indicator which makes the same calculation process for each symbol of an internal list selected by the user (for exemple : EURUSD, USDJPY, etc...). The event which initiate a new calculation process for a given symbol shall be a new tick of this symbol. Important : This...
Hi, I ran an EA on Strategy Tester and it seems like the profit calculated for the trades does not match the lots and the pips. For example, as you can see in the picture there is a trade of 3.84 lots opened at 1.43611 and closed at 1.44403. This results in a profit of 2106.11 according to the...
Hi! I added into my EA that my positions should close on a specific day of the week. I understand that the int values for each day of the week is as follows: Monday = 1 Tuesday = 2 Wednesday = 3 Thursday = 4 Friday = 5 Saturday = 6 Sunday = 0 The code I made is as follows CTrade trade; input double