Expert Advisors and Automated Trading - page 202

Hi, I am getting requotes in backtest when backtesting from 2019, getting the EA into some trouble for making the right actions. I have tried m.symbol.RefreshRates but it makes no difference, even before closing each order. I do not think in real it would give a requote having a refresh just before
Hi all, I'm now trying to integrate my bot developed in nodejs with MetaTrader5. I could install the npm package called mql5-connector-js but I don't know what to do in the MT5 side to make all features work. Has anyone done this before? Thank you
Hi all, This code is supposed to open an order when the 200 EMA crosses the 800 EMA, but it isn't working. Any thoughts? It's the first time I've used trade.OpenOrder so it could easily be a dumb mistake. if (IsNewBar) { if (valEMA_200_15M[ 2 ] > valEMA_800_15M[ 2 ]) {
Hello, There's a way to call an native indicator in my EA, with two additional custom limits line ? Example: Call native RSI from MT5, but he doesn´t parameters about his limits. Then, i want to call the native indicator, but input manually in my EA the limits parameters. is it possible? I dont want
[Deleted]
Problem sorted by using Different Magic No for different strategy ... Hi I am having problem (most likely) to place check condition for OrderComment field (highlighted in light blue). Also is it necessary to define ticket, tp, magic etc (highlighted in green), while I just wanted to update / trail
1_ When the price crosses the level of 100 fibo, suspend the sell stop at the level of 100 fibo, the stop loss is at the level of 1.382 fibo, and the target is at the level of 61.8 2_ when the price is below the level of 0 Fibo, suspend the buystop deal at the level of 0 Fibo, stop loss at the
Hello All Forex FX Masters Here, Im Looking For Help from you all guys. I Need EA Which Can Set Stop Loss, Trailing Stop & Trailing Step. But here No Need Take Profit Because Stop Loss Will Act As Take Profit Function. But Please See My Explanation In Detail Because I know that There Are Many EA...
  Money management  (2)
Can anybody please explain to me what "use moneymanagement" mean? What is the EA doing then? Thx
Any recommendations for such a program that work with meta trader 4, MacBook Pro? Thanks
Hi friends! Has anybody tried <Deleted> I have tried more than 30 times to download and test to no avail, However, when I tried a different EA, <Deleted> , it downloaded and tested almost the first time. Is there something I didn't do correctly, or a problem with the EA itself. Pls help if you have
Hi, Let's say I have 6 pending orders, tagged with a comment. At a certain point I want to check which ones have been triggered by reading the comment on the positions. The ones which are triggered I want to flag off. I wrote a small function which runs through all open positions, reads the comment
I'm copying this MQL5 signal https://www.mql5.com/en/signals/35539 with 2000$ and my lot sizes are way lower than the MQL5 signal account has. I mean the lot size is way lower than it should be. This account shows a 28,000+$ balance and mine is 2000$. So my lot size should be around 0,06+ lots...
Good day, I am trying to limit the number of trades per candle to 1. I am using a method that has previously worked for me but I can't figure out why it doesn't work in the function below: void BuyAndSell() { static int CandleOpenTime; if ((CandleOpenTime== iTime ( "XX" , PERIOD_M5
An hour after subscribing to a signal, the provider's account has been suspended. How do I get a refund? From the 'Rules' section I see this: "Paid subscription canceled by Subscriber is not refunded."
Hi I get error: 2021.01.28 18:52:37.389 2019.06.02 00:00:00 failed to load debug symbols EA run on Strategy Tester visualisation but EA not stop at breakpoints Only I can STOP debuging! Where is a problem? Best regards J
I had an EA perform a (scalping) test on two demo accounts. It went well for a few hours until the message "Trades '4113XXXX': rejected market buy 0.01 EURUSD" appeared. I could also no longer manually place positions, only close. What is the reason for this and can this also happen live
Hello, I would like to create a descendant class of CExpertSignal. I plan to use make it callable by the EA wizard, as demonstrated here: https://www.mql5.com/en/articles/367 . An instance of this class will be added as a filter in the CExpertSignal generated. In addition to giving a buy or sell
I can not use any of installed EA what I bought or demo what I downloaded everything before 12/21/2020 After Windows 10 upgrade month ago . I don't want to install it again because I will lost 1 of activation and also some of the EA no more exist I still want to use it. What can I do it? How Can I
Hi, I'm looking to make an EA works with multiple currencies, there's a lot of indicator that show a meter based on a score or a index. Unfortunately, none of them's code is available. I've googled to find the formula, but ... didn't find nothing. Anyone knows such a formula please ?
Hello. I developed a multi currency indicator, when i put in my ea im getting 0.0 value and something more. When i call with iCustom i need to inform a _Symbol, but my indicator already have all _Symbol that needs, how can i fix this if is it possible? I call the indicator from the
  robot update  (6)
Hello! I paid a robot rent for a three-month trial period on a demo account. I identified a dangerous bug in his settings and informed the owner to fix it. The programmer reported that adjusted and asked me to upgrade to test. I just didn't get to update the robot. I have already uninstalled and
hello, I have a multiline separate indicator with 4 line graphs and I want to print the latest value from line index 2 from TDI indicator I tried this //Expert advisor double buff[]; //buffer array int h; //handle for icustom chart int OnInit () { h = iCustom (
I've just purchased a grid EA and I've noticed (via backtesting) that it needs to be reset periodically. What is the safest way to do this? I've asked the developer and tried to do my own research but I'm hoping to gain extra insight here. The bot will be running on a VPS . So I assume a reset would
Hello everybody, I have a question for you: Has anybody a code that allows me to setup a take profit based on the whole basket of buy/sell orders open? Let me explain... Let's say I have 1 buy order with TP se at 20 pips, the market goes against, I open another order and I need to setup the TP for
Hello! Could someone suggest robots with the break out feature, i.e. setting that allows you to limit the loss of the balance, as occurs in signal signatures
Hi All, I hope you are all well safe... I am currently trying to put together an EA that is only allowed to take LONG/BUY positions above the Senkou Span A and only allowed to take SHORT/SELL positions below the Senkou Span B. So for example, say the price crossed the lower bollinger band and i
Hello, during testing, I receive the message [invald volume] please help #property copyright "TradeBOT" #property link "TradeBOT" #property version "1.00" #include <Trade\PositionInfo.mqh> #include <Trade\Trade.mqh> #include <Trade\SymbolInfo.mqh> #include <Trade\AccountInfo.mqh>
I have added two RSI indicators using two RSI handle variables and it creates two indicator windows. I want both RSI indicators to be in same window like in the second image. What changes should I make in my code for this to happen
Hello! Can you help me and write a simple EA. I've got no time to learn writig mql5 code, but i've got a simple strategy and i want to test it if it is profitable. There is no need of indicators. The strategy is pure martingale. The EA must open long position in the begining with 0.1 lots, stoploss
Hey Guys! There is a question hovering around my head for a while when I am backtesting EAs. After every backtest, the Chart related to that test stays open in the MT5 Terminal. I have attached a screenshot of the issue. Am I missing something in my code to stop MT5 keeping the trace of the