Expert Advisors and Automated Trading - page 29

Hey, guys! As the documentation well says, the function TesterStop can be used when the account reaches a pre-defined drawdown or when a certain amount of trades are executed to stop current testing. But I'm looking for other usages for it, since it drastically speeds up the optimization testing
There is a ea with a license key only for 1 account number . Can the account number simply be changed in the heading of metatrader 4
Hey everyone, been running into some problems and i'm a good 4 hours into spinning my wheels and i'm about to go down the rabbit hole in the forums/books so i figured it might be worth a shot to ask. I've been testing my EA on the strategy tester and for some reason when there's definitely a trade
  Python & MT5  (4)
Hi I used mt5. history_orders_get (f,t) and mt5.history_deals_get(f,t) but I got an issue understanding what are those columns : ['ticket', 'time_setup', 'time_setup_msc', 'time_done', 'time_done_msc', 'time_expiration', 'type', 'type_time', 'type_filling', 'state', 'magic', 'position_id'
Hi ! I created an EA based on SAR indicator, I have excellent results in backtesting (over 3 years) but as soon as my EA runs on a real account, it's catastrophic! Example: this Friday: loss -10$ in live in 18 trades, in backtest today (same EA): gain +50$ in 15 trades. I'm lost, can't be only
I am trying to figure out why only me and a couple other people experience certain bugs when doing forward tests ( https://www.mql5.com/en/forum/454524 ). I believe the bugs might be hardware related. After some experimentation I found out that the bugs happen when the number of inputs
If I am trying to output multiple lines, how do I do this? Comment("Apples");Comment("Oranges"); The code above will only output: Oranges As if it is being re-written on the same line again
Calculating a moving average on price data usually means the first few values of the MA buffer (usually the period), is empty. That makes sense. But on closer inspection I found that the first 8 values of the iDEMA buffer with period of 5 contains a random float value, far removed from the price
I have scripted and EA to get post request to my server with the required response but I am not able to add it to any chart it is getting removed automatically , however it is working perfectly when i am using OnTick() function , please do resolve this error
Hi, Since yesterday my copier doesn't work anymore on 1 account... I reinstalled, logged out and in etc but nothing changed. Any help here what to do? Broker says everything fine on their side
Hi, I want to write a set file inside an EA. The condition is like this, if time frame is PERIOD_M15 using this set value for this variable if it's PERIOD_M5 using this set value, in code would be like this FileWrite (filehandle, ... StringFormat (
I want to create a "robot" that would automatically find strategies, based on the indicators requested and some basic operands (>, <, ==, etc) the key is that I want to backtest using only OHLC data, NOT as an expert advisor. the way I test indicators now, is that I make a "backtest" but within an
[Deleted]
Hi guys, I was interested if anyone have some EA that is working stable on prop firms like FTMO and similar. All of them I was trying, free and paid were not good at all. I also tried freelance with job offer, here I was not successful as well with anything stable and performing for long term
Greetings, I run Backtest and Forward Test for an EA using two different modellings ("Every Tick" and "Every Tick Based on Real Ticks") in MT5 and I got totally different results "Every Tick" modelling was in profit and "Every Tick Based on Real Ticks" was in loss ! Which one is more valid and why
if I buy an expert advisor from MQL5 market with (let's say) 10 activations is it legal for me to re-sell the purchased EA for 9 activations? (me and another 9 traders use the same EA)
Hello Gurus, Need to execute the trade when Average True range meet the level in minuts time frame when new candle form after level reached, SL in points, TP in minutes, input martingale if loss. Thanks
Hi guys, I have my own EA to test it in my broker. While testing, it shows swap fee but it wasnt showing before. It happened after updating mt5. How can i fix it? Is there any idea
I try send EA for validate. its Validation completed with errors test on EURUSD,H1 (netting) 2021.02 . 04 20 : 00 : 00 position stop out triggered at 45.98 % [ # 2 buy 5 EURUSD 1.2104456 tp: 1.22345 ] stop out occurred on 2 % of testing interval strategy tester report 1 total trades I try fix its
Hi all, I am looking for a way to define the parameter combinations to use in strategy tester based on a list rather than creating a full set of all possible combinations as done by standard optimization. simplified e.g: 5 parameters with different ranges, p1 from 0 - 10 step 1 p2 from 5 - 20 step 1
I am suddenly not able to see open trades in my MT5 app. These trades are still being placed by my EA from the desktop terminal but will not show any chart info during or after. I can still view history to see my profit/loss after closed. I noticed yesterday my journal showed the following
Hello everyone! I'm facing an issue with an MQL5 script that executes a buy order but returns the ticket number as 0. I have verified that the order is executed correctly, but when printing the value of ticket , I always get 0. Here is my code: #include <Trade\Trade.mqh> CTrade m_trade;
Hello, I have a Bot in MQL5 that runs perfectly on my MT5 Demo Account and refuses to work on my Deriv MT5 Real Account . Any suggestions ? Thanks
Hello, Im trying to find the mql.exe compiler that in MT4 new builds is not included. I need it to make a WFA software work. Really appreciate your help. Rgds
I need someone who can make the code for free. The strategy is not very difficult. Maybe there is already a ready-made template for this code
  Callback to MQ5 code from DLL  (25   1 2 3)
A DLL is a major part of my expert advisor. This DLL should be able to send signals to my MT5 terminal. This would either require polling, or a callback. Such callback could for example be utilized to make a trade copier. But it does not seem possible to pass functions as parameters in MQ5, neither
Dear coders, I ordered a freelancer to code my custom EA which worked well most of the time, but occasionally, it opened 100 lots of trade, and he could not yet figure out the cause. The lot calculation, TP, SL, are calculated based on risk percentage towards symbol pips value, daily ATR value and
I have a grid system which takes Buy trades whenever market hit lower Bollinger line. and then it keeps on trading after every -200 points and then my ea calculates the average price and set take profit of all running trades to 250 points. the problem is that right now my system is working on single
Greetings, Does this long bar has to be fully green in order to consider the Backtest/Forward Test valid , because some Backtest/Forward Test I get this bar fully green and others I get some of it green Or is having History Quality 100% is enough
I have a complex Ea - which can use many things - If I switch all off - and only use the Ma - when price touch the Ma it must buy or sell --- most of the time it does (i am watching the exact same ma on chart - so i can see when it should) -- but many times it touches ma and does not open trade --