Expert Advisors and Automated Trading - page 115

I am using MQL5 in Borsa Istanbul. I trade in futures markets. In our exchange, just like in cryptocurrency exchanges, buyers and sellers place market maker orders, and this is how the market is formed. There is no spread like the FX markets, instead the buyer and seller meet at the best price and
Hi every one, Is it possible to find out from the asset description whether we can go long and short at the same time, or do we have to do the test ourselves and open 2 opposite positions? exemple on USDJPY here : Best Reguards, ZeroCafeine 😊
[Deleted]
Hello, I have an ea in my hand. but I don't have codes. When EA opens a transaction, is there something that will automatically reverse that transaction, disable the robot, and then activate EA again when the transaction is completed? Is this possible
#property copyright "Copyright 2023, MetaQuotes Ltd." #property link "https://www.mql5.com" #property version "1.00" #include <Trade/Trade.mqh> CTrade trade; int handlefastma, handlemiddlema, handleslowma; double Ask = SymbolInfoDouble ( _Symbol , SYMBOL_ASK ); double Bid = SymbolInfoDouble
  Rates position  (1)
Hi I'm traying to make this work, but can make it work propperly. I use this: MqlRates rates[]; ArraySetAsSeries (rates, true ); int copied= CopyRates ( _Symbol , PERIOD_CURRENT , 0 , 7 ,rates); if (copied<= 0 ) Print ( "Error copying price data " , GetLastError ()); but when testing
i am a newbie of mt5 trader. i was practicing my coding with the moving average strategy. but there is a problem happened. i can run my code but the journal always shows me "failed instant sell 0.001 EURUSD(UST+3) at 1.0906 [Invalid volume]" when i make the order. is anyone can help me to point out
Can any1 tell me how to get a specific time using it historical Ask price to backtest a EA THX
Why during mt5 backtesting shortkeys(+ for zoom in , - for zoom out) are not working
Hi all, I think it should be already included, but... 🤷‍♂️ The MetaTrader 5 package for macOS is perfect. It works perfectly with wine. But it doesn't come with python package. If the user knows how to use the wine command (like me) can try to install python into it. But, I don't know why the
Hello Community, I am new, and have been getting amazing results with back testing on a demo account. Once I open and fund a live account and apply the exact same EA and variables, should I expect similar results? I have watched some videos, and I do not expect the exact same results, but possibly
Trying to create an array, which will hold say 10 arrays each of size 5 made up of type double
Hello, I am not sure if this process has been explained elsewhere.. but I will proceed to ask the question here. I want to run two Expert Advisors on the same account. One would be executing trades and the other would be monitoring the daily drawdown then send an alert if it comes close to a limit
EA wont work. any help? i ve tried lots of clean install.. changed many setting. stuck,, it did work for a few day
  4 EMA bot  (2)
Hello guys. I am in the process of developing a bot for MT5 but I simply cannot get it to work as I want. It sells when it is above 55 and buys when it is below. It should make a buy when it crosses EMA 55 with EMA 8, 13 and 21 and vice versa. THANKS! :* File is added below
I'm trying to run this code I got from the documentation page: from datetime import datetime import MetaTrader5 as mt5 # connect to MetaTrader 5 if not mt5.initialize(): print("initialize() failed") mt5.shutdown() # request connection status and parameters print(mt5.terminal_info()) # get
How to create multiple Bitmap using CCanvas? I have coded a sample code below. When you attach it, you will see only 1 Bitmap instead of 2. Notice in the CreateBitmap function, both has a different name. #property copyright "Copyright 2023, MetaQuotes Ltd." #property link
  find Chart ID  (4)
I use two time frame in Strategy Tester . with function ChartID () i can find first chart id . who can i find second time frame (in this screenshot M30) Chart ID
Hello, may I know why I get different back test result with On Visual Mode & Off Visual Mode although all the settings are same? Which results are more accurate (with visual mode on or off)
title I've worked with python and used those, would like to make them dll to work with them in mql5. How can I do this
Happy and successfull new year, fellow Traders! Did anyone yet have the problem of the Strategy Tester giving you zero trades / zero results in the overall optimization window? When I start the optimization (as seen in the screenshot below) it does some optimization step and instantly finished with...
Hello, I have a working robot. The feature I want is this: When opening a position, if the value of the adx wilder indicator is less than 20, it does not open the position. If it is greater, it opens the position. In other words, it constantly checks adx
Hi everyone, I’m new in mql5 programming and I’m trying to create my ea, but I’ve a problem. In this ea when a position is open on a symbol, it doesn’t open another position on a different symbol.. I don’t kwon if it’s a code or logic problem. Thank you for your help
Hi, Could Metaquotes add the holding times statistics to the strategy tester xml files (and possibly all other relevant missing information)? There is a mismatch between the report and what can be exported. Thanks in advance
I have my EA running completely normal when testing but the mql5 tester always gets an error (invalid price), has anyone encountered a similar situation or is there any documentation that specifically explains the upload testing tool? of mql5 help me fix this error
account_info is work orders_get not work output No open orders found import MetaTrader5 as mt5 import requests from datetime import datetime # start the platform with initialize() if not mt5.initialize(): print( "initialize() failed, error code =" ,mt5.last_error()) quit() # login to Trade
i dont know why but its was wokring fine and i try multiple time too so only magic key other thing if i try to attach it will work
Hello community, I am new to FOREX, EA's, and MT5. I have been running a lot of backtests using [name redacted] EA, with amazing results changing the configuration. I have a demo account with the broker and I use a balance of $1000 doing the backtesting. Every time the test is finished, for example
Hey all, My EA is not entering trades on my VPS. I have the right currency pair, which in this case is GBPUSDx, but my journal logs from the VPS is showing GBPUSD, so I don't know if this is the reason the EA is not entering trades. I can't change any settings in the EA to point to the broker
The MQL5 architecture application is event-based, i.e., the EA is a client waiting for server signal of a tick, time, trade or transaction event . So, the code is organized to wake and respond well defined events in a self coordinated chuncks of code. Well, how can I get the equivalent behavior on
Hello i need help am trying to detect a spike on boom 1000 , i have noted that a spike is also there same as a bullish candle on the boom 1000 i have tried to detect this and count each occurance , the code runs without errors but i cant cant seem to detect anything can anyone help me. string bull=