Expert Advisors and Automated Trading - page 27

Hello everyone am have been trying to count down or simply count a boolean condition where So in the code below I have tried to go over 20 bars and using time differnce check if there is a double ma cross over but unfortunately this code doesnt seem to work it neither recognizes the first nor the
Hello community, came across a strange problem: It seems that calculations of double numbers can get unprecise. The script below should demonstrate this. After a couple of runs, 2 double numbers which should be exactly the same are sooner or later not same. void OnStart () { double NetPosition=
I have been experiencing a lot of bugs in the forward tester. One is that if there are more than 65536 passes to do in the forward tester, right at 65536 it stops finishing passes. I get an error that says xx forward passes not processed and returned to task queue. If you try to stop it or close it
  MT5 forward testing bugs.  (18   1 2)
This post is about a some weirdly related (I think) bugs that happen when forward testing optimized results. Please read through it all. The first bug is that the displayed results from the top section of backtesting passes in forward tab are wrong. (Highest scoring passes in the backtest category
Hello, I added a couple of EAs to my charts, they work perfectly but I am unable to save my custom setting as ".set" files. At the same time the EA do not upload the factory files from the Author that came with the purchase. Someone knows if I have t activate or change something in the MT5 settings
Dear Traders I want to get Daily Changes that shown in Details tab of Market Watch. Thanks
Is there a way to override the WebRequest headers added by default, such as Accept-Language? The default value for Accept-Language, I suppose, depends on the system locale, so for me it's ru,en;q=0.5 which means ru locale with weight 1 and en locale with weight 0.5 . My goal is to get a response
How can I send multiple requests at the same time. When we send multiple requests simultaneously, there are several milliseconds between requests. What suggestion is there to eliminate the time difference request.
Hello so i'v got this Ea code that works fine but sometimes after 1 or 2 good sessions day's it stops working. I have been using it on VPS . Maybe i can past the code here and someone can help me. I have attached text file with code. File attachment corrected by moderator
hi i`m at my wits end trying to find out how to contact the developer of [redacted] trading bot . no matter where i go or what i try i just cant understand what is required to access support from this developer why does it look so complicated just trying to get in touch with the developer
Hi everyone, like the title I have this weird problem The onInit function is the following. The symbols are stored in the input variable Symbols separated by ",". I have some array for checking new bar in different timefrimes (such as TimeLastCheckTickProcessed) for each symbol and then I have an
Sir, I am getting 2 Warning but I tried " (string) (Font_name) " . double Balance = AccountInfoDouble ( ACCOUNT_BALANCE ); double Equity = AccountInfoDouble ( ACCOUNT_EQUITY ); string Balance_text = "Balance = " + DoubleToString (Balance); string Font_name = "Tahoma" ; // Set Create
How do I test an EA in the demo? I'm clicking the DEMO button, but nothing happens
Hello friends When running the code, how can it detect that Metatrader is closed and restart
Hi, besides EAs and indicators, there is this service-thing. I remember I read somewhere, that such can be used to support custom-symbols. Is this possible? What I would like to to is to restrict a given symbol, like EURUSD, and then restrict it to specific trading hours, e. g. from 7:00am to 7:00pm
Hi, I want to run a code once a month on OnTimer() function and here's how I do it. void CStrategy::OnTimerEvent( string & SymbolArray[], int numberOfTradeableSymbols, string FileName, TRADE_DIRECTION TradeDirection) { MqlDateTime dt; datetime now= TimeLocal (dt); //if not saturday and at
//+------------------------------------------------------------------+ //| SMABot.mq5 | //| Copyright MetaQuotes Ltd. | //| https://www.mql5.com/en/users/metaquotes&nbsp ; |
This function is taking only one trade, when the positions is greater than 1 then it is supposed to take entry on every 200 points. example. first buy trade was taken when market was at 1.5000 now the second trade is supposed to be taken when price reaches 1.4980. i am attaching my ea code file as
*edit: when I posted the thread, I was confused about the correct way to calculate position size based on entry price and stop loss price, so don't take anything I say here as truth, unless someone else verifies it in the comments.*
Hey guys, I opened a demo account , server is IC Markets Demo 6. However, in “create signal” page, there is no option for “Ic Markets Demo 6”, you may refer to my attachments. How to solve this? Many thanks
From what I remember, when I activated an EA on different installs of MT4 (tied to different accounts) on the same computer, I used one activation for each install. According to all the documentation I've read on this, it is one activation PER COMPUTER...meaning I can install the EA on as many...
  Invalid stops  (23   1 2 3)
I'm new to mql5, I don't know why it gives me an error, [invalid stops], it's a simple EA you must open a buy trade according to the condition and sell on stop loss or sell all trades on the next candle. I am thankful for any kind of help.... #include <Trade/Trade.mqh> CTrade trade; ulong
I know to get the highest price int bar_index= iHighest (symbol, PERIOD_W1 , MODE_HIGH , 0 , 0 ); double hg= iHigh (symbol, PERIOD_W1 ,bar_index); datetime bar_time= iTime (symbol, PERIOD_W1 ,bar_index) bar_time is the time of the candle but I need the time of the high price
Hi guys, Thank you in advance for your time and effort. I am very new to MT5/MQL5 and Python, trying to migrate from Pinescript to MT5 using Python for Auto-trading. I dont have much coding knowledge. Been using internet resources and some ChatGPT. I have come across a problem which i need help
There is a feature on cTrader that I think should be a standard, seen at the bototm of the page https://help.ctrader.com/trading-with-ctrader/orders/#stop-loss-and-take-profit or in the image below. Basically, instead of a standard stop loss which can be triggered by spread alone (the candleprice
I am working on this problem for several weeks now and I just can't find a proper way to solve it. I am looking for help. I want the following to happen: 1) Place 2 orders, n and n+1. n has a TP & SL level, n+1 has only SL level. SL levels are the same for both orders. 2) If SL is hit, fine. Both
When I read different material, I cannot figure out the exact formula for calculating 1 pip... I mean, number of pips, difference from opening and current price. is it (Current price- Opening price )/point? Please provide the exact formula that will calculate the number of pips for all pairs
Hi everyone, I hope you're well 🙂, I'm still a beginner on this famous MQL5 language, but I hope to make progress slowly but surely, However, I do have a few questions, even though I'm thinking of answering them myself one day in the future, but I can't hide the fact that I'm itching to know if
Hello folks, I would like to know if with the Strategy Tester, it is possible to step backward like forward?. With F12 key I can go forward (as I want), but I would like to go backward as well. Is there some way to do that? Thanks in advance, Cyberglassed.
I have built lots of indicators and EA's in my time and I have a chap who would like to purchase an indicator from me. I am happy to provide the indicator and we have spoken extensively of the risks and such. He is 100% aware of what he is getting into. I haven't however ever sold one of my