Expert Advisors and Automated Trading - page 28

Hi Everyone, I'm developing my EA. The thing is that I want to make only one trade each time. How can I check If the current trade is open in order to avoid the enterTrade functionality while it is opened? And also I've noticed that I had some problems related to "failed market sell 0.1 XAUEUR sl
Hello guys! I created that topic because I am having some issues trying to set an expiration date in my orders. I am using the MT5 Python API, and that´s the structure: request = { 'action': mt5.TRADE_ACTION_PENDING , 'symbol': [stock symbol], 'price': [price] , 'sl'
Hi - is it possible to add more than 1 MQL5 signals to the same MT4 account? If yes, please provide some tips, pls. And can you trade say 90% of the account funds with one signal and say 40% with the other signal? Thanks
anyone can make a Simple EA from this alert indicator and when it alerts to place the order? based on alert message notification
Hello, I'm trying to verify the settings of the Options > Signals tab via MQL5. Is there a way to do it? The signal subscription keep disconnecting and I need to monitor that. Thanks
wanted : encrypt a string using AES256 method, format the encrypted data into hexadecimal string, then decrypt it again using same key into the original string. here's my try uchar src[], dst[], key[]; string Original_text = "bla bla bla" ; string SKey = "012345678901234567890123456789AB" ; string
Having trouble to opening sell trade on all currency that the second currency is JPY (AUDJPY, NZDJPY, etc). I've check stop level I've check freeze level I've check calculated lot against min lot I've check stoploss price above open price and take profit price I've check take profit price below open
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