Expert Advisors and Automated Trading - page 303

how can I make my indicator that givs buy arrow and sell arrow work as an expert advisor
Hi, I have encountered an interesting issue - my live account with a particular broker has 1:30 leverage (and that's also what ACCOUNT_LEVERAGE property says), but for some instrument types (cryptocurrency-based CFDs, e.g. BTCUSD) the leverage is reduced to 1:2 instead of 1:30. Nevertheless, when I
hi all, i want to do a currency strength type of EA So, let's say i want to long EU I want to see if euro part of the pair is in also long in EJ, EG so is it possible to automatically identify Eur in the EU on my chart and then find the euro direction from EJ, EG ? hope you understand my...
What is the maximum lenght of the body that GET request can send in MQL4 (I am using webrequest) ? Also Can I extend it
Hello, i'm trying to write expert advisor to send alert signal to a microcontroller board attached to my computer in COM3. I inspired to try this when i saw video on youtube to communicate to arduino with C++ languange (code attached). I have already upload the code to arduino and it's look like
Hi, I`ve been trying to create an EA but i am having trouble with the Trailing Stop, i have tried everything and it wont work, when i compile everything is fine, no errors, but when i simulate the Trailing Stop does nothing. I would like that everytime i am having 40points gain, my stop loss would
hello Can I make the strategy tester visual mode runs faster
I used EA for trading by MQL5 VPS. But when I removed EA from chart, go out and turn off my laptop. When I came back home and turn on laptop, the EA automatically triggered one entry. Then, I stop connected to server MQL5, manually exit the entry. Then I turn on MQL5 server on Navigator tab, even
Hi folks, I'm facing some issues, because when I'm running a backtesting in "Real Tick" mode, the prices between ticks and m1 (one minute chart) are not matching. Because of that, my EA is getting differente prices. I don't know why MT5 need to use one minute data when we are running "real tick"
string symbol = Symbol(); int stop_loss = 150; int take_profit = 100; double lot_size = 0.01; int slippage = 10; double open_pip = 50; double close_pip = 18; double bid = MarketInfo(symbol, MODE_BID); // Request for the value of Bid
Hi All, I wanted to ask what some of you are getting results in Backtest. What results in backtest do you consider are good, and are enough to start forward testing? Thanks Pascal
Hi I hope someone can help me with this issue. I am migrating a chart with an EA attached to MQL5 VPS server. The migration fails with the below message in the Terminal journal: 2019.12.23 20:50:15.652 Virtual Hosting 6092025: failed to send migration data (173.231.184.89:443 receive response
Since a few builds, there is never a last line visible in the chart. It worked in the past, but its gone since a while. Can anyone agree
Hello, Is there anything to do when my account is calculating the wrong lot size of the signal that I'm copying? My balance is: 6097 USD Signal Provider balance is: 215441 USD Both have leverage of 1:500 I allowed 95% use of margin Signal have a position with 1.85 Lots But my account opened only
Hello, i have a problem with pendings orders in backtest, this is my code int OrdiniApertiPending() { ulong ticket; int Magic; int Totale=0; string type; int iOrders=OrdersTotal(), i; for(i=iOrders-1; i>=0; i--) { ticket=OrderGetTicket(i); if(ticket!=0)// if the order
hey everyone I have create multiple EAs for money management and they don't trigger any trade.and because of that, the website doesn't allow me to upload them as products . Can I get a tip? thank you
I am interested in traders' thoughts on automating the search for strategies, not necessarily within MQL4/5
Hi, How can we get the market value of a symbol in stock market using MQL5 code? My broker is Mofid Securities (mofidsecurities-server). Or how can we can the number of shares of a symbol in the stock market. Thank you
Hello i need help, I have start the code of my ea, but i have one error "int start" already use. I see who i have 2 line int start, but by which I must replace the 2nd (i am novice) can one user send to me the correct syntaxe ? thank you int ccc = 123; int start () { if (AccountNumber ()! = ccc)
Hi guys, I'm looking into the code of adding the economic calendar in an MQL5 EA. I would be interested in understanding how a code is built around, for example, not trading on the red days of the related currencies. I read through this, but I would like to see an sample code
Hello! I am wondering how I can allow my script to work on multiple pairs. I know that scripts are limited to the pair you start them on, but there must be a way to automatically get the Symbol of a pair when you know which pair you want. E.G I know I want "EURUSD" but my graph is on "GBPUSD". I
Copybuffer takes up to 24hts to load daily ATR for my EA on new charts sometimes sometimes not....any ideas on how to avoid this
Hi I am having trouble with Parentheses. I know i should'nt but i can not figure out how to add a simple extra if statement. This code works int init(){if(60*EndHr+EndMn<=(60*StartHr+(StartMn+15))) { Print("invalid trading time"); return INIT_PARAMETERS_INCORRECT; } But this code throws up
//Place a pending order sell using a fixed amount of account risk (1)void SellPendingOrderWithRiskFixed2(){ double lotsize = MarketInfo(Symbol(),MODE_LOTSIZE) / AccountLeverage(); double pipsize = 1 * 10; double maxlots = AccountFreeMargin() / 100 * BalanceRiskPercent2 / lotsize *
Can anyone help? I purchased an EA...it installs fine on my stand-alone PC but when I try to install it (or activate or even see it) on my VPS running the same MT4 software I get the following error message: Line: 64 Char: 249 Error: Unable to get property 'title' of undefined or null reference
[Deleted]
  Countdown  (1)
Hello programmers! How can I set a countdown of, say 5 seconds that restarts when the value is equal to zero? I will appreciate your help please
Can someone help me add a local time filter to my EA? I want the EA to only look for trades in local time between something like 7:25 to 8:05. I can do it for hour only, but adding the minutes got me confused
Hi. My ea has been deleted on my computer but is still trading on the server. If I synchronize with the server, I think it is only computer to server. That is one way only. Is this correct? If it is only one way, how do I download from the server? Thanks in advance. regards Trevor
Few years ago EA worked perfectly, now EA dont take first trade if I put it on. If I put EA to scalp (1M timeframe, about entry every 10 minutes) then it works fine. On normal timefrime, 1H where it suppose to work took last month 1 trade out of 10. I have tested settings, spread, MA on/off, changed
Since build 2280 I cannot migrate any EAs to MQL5 VPS server. On the VPS tab I click MIGRATE, and I get a message saying "MiGRATION SUCCESSFUL", but the EA attached to the chart does not migrate. In the VPS journal, I can see a message "Expert xxxx removed" (see attached image). Anyone else having