Expert Advisors and Automated Trading - page 28

I have my reporting logs and I sometimes see something like Sell ticket = 2303414370 request.price = 1.07751 request.volume = 0.16 type = 1 iRes = 1 price = 1.07747 volume = 0.16 is TRUE MyComment = EURUSD_40117263422_S My_error: 4756 Trade request sending failed The command 'Sell' appears to have
Hello, I'm subscribed via the terminal to a Signal. Its showing un the navigator under my account. However, when running the following in my EA I'm always getting 0: Print(SignalInfoGetInteger(SIGNAL_INFO_ID)); Any idea why? This is essentially the only code in the EA. Thanks
I have create this RSI EA with MA as a filter but wont take trade is there any one can help help check the code below //+------------------------------------------------------------------+ //| RSI.mq5 | //|
the EA runs on my laptop (after i reinstall MT5 with the latest version) but the VPS is not able to run it, keeps showing failed with code 1 and remove the EA it was fine before. can anyone help me
I was using an EA perfectly fine before the latest mt update about 3 weeks ago and now it keeps giving me a "failed with code -1" error. Nobody else in my telegram group seems to have this issue so I don't know what's going on. I've tried reinstalling mt5 twice now but still nothing. Any
I have a few indicators I use often. I would like them to appear right under the " Insert ->indicators" menu in MT5 I notice when I go to Insert -> Indicators on the MT5 menu, there are 5 indicators, that I never use, then, other indicators in the submenus, and sub-sub menus. I tried to see if this
  Backtesting Issue...  (42   1 2 3 4 5)
Hi, I'm encountering a data loading issue when trying to backtest on UK100 symbol. The errors log from the journal is shown below. Looks like the error is "Cannot add tick event (events' array size is 35782656)" I also encounter the same problem when trying another broker account. Any ideas what is
Hello, I'm doing in Strategy Tester a lot of backtesting in "Fast genetic based algorithm". I'm looking for a way that once finish the backtesting, to automatically "Start" again. It could be possible to be done with Metatrader 5 Running from the Command Line? to create a .bat file with the command
I've been trading a few years for myself, I have some success for a few months then fall into same old traps of chasing, FOMO, hanging on, basically discipline! So wasting a lot of time trying to get it right! I would like to try a few EA's that can stick to the rules! But where do you start looking
I am trying to get the value of a trend line drawn by the user on the chart. Any ideas? I can't figure out a proper way to draw a trend line since there is so much personal intuition on what a pivot point would be considered. Is there a way to get the value of the trend line so I can use it to code
  Whatsapp to Metatrader 4/5  (13   1 2)
Hello guys I am watching for a EA which copies Whatsapp messages to an EA. Does anyone know an EA? i already build a program to read out SL TP and BUY SELL. If i copy them in a Text is it possible that an EA can read them and copy in to a signal? Hope for help thanks. Regards Steve
Wishing all a happy weekend. I have coded a IsNewBarSession, which is supposed to return true at first cross of timeStamp with cATS.checkTimeCross(vHour,vMinute,vCurrTime,vPrevTime). I could not apply a proper logic/condition to return [false] if timeStamp have been crossed. For Asian Session start
I would like to "just" add + 3 columns of user criteria, as I would like to come out with 3 different formulas straight from 1 optimization instead of running the optimization again to come out with another user criteria value. I made the 4 user discretion options in OnTester. But my question now is
Hi, All the variables bellow are double s, I'm accumulating them summing with other double s like: profit = ( double ) HistoryDealGetDouble (deal_ticket, DEAL_PROFIT ); but in the end, when trying to do a`MathRound`, simple as this, it returns error: withdrawn_sum = MathRound (withdrawn_sum, 2 );
Hello friends I want to implement the FiboFan object on the chart with the help of standard MQL functions. But it seems I forgot something because nothing is displayed. Is it possible to guide me? #property copyright "Copyright 2023, MetaQuotes Ltd." #property link " https://www.mql5.com "
Slippage is int value or double value? extern int Slippage = 3 ; //OR extern double Slippage = 3.0 ; OrderSend ( Symbol (), OP_BUY, SendOrderBuyLot, Ask, Slippage, BuyStopLoss_SendOrder, BuyTakeProfit_SendOrder, SendOrder_Comment + Li_12, SendOrder_Magic, 0 , Green);
Hi~Guys! Is it possible to cross time frames in practical EA development? For example, I want to go long when both 1 hour and 4 hours are long, or short when both 5 minutes and 1 hour are short. Can the code be put into practice? There will be no problem with the program logic during backtesting
Hello anyone know where i can find Magickeys mq5 source code ? cant see it in any of my folders
Hello! I need some help. I have an MT5 EA working right now based on the RSI Strategy. It works very well, but I wanted to make a change and I can't get it to work. There is only one position open at a time. Even though I have coded stoploss and take profit, I have them both with value 0. My buy
Hello! I have downloaded this EA which is free on mql Market Place " Candle by Seconds ". It works fine, however, cannot place any trades on the new chart created. Manually or by another EA attached , I get this [ invalid request ] error
//+------------------------------------------------------------------+ //| Naz Sell EAs (1).mq5 | //| Copyright 2023, MetaQuotes Software Corp. | //| https://www.mql5.com |
Automatic validation of all my products is stuck, how can I restore it??
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