Expert Advisors and Automated Trading - page 92

I have tried multiple approaches to this, based on the documentation and on information I've found in this forum, and I can't get anything to work. Simple version: void CloseAllPositions() { CTrade trade; while ( PositionsTotal () > 0 ) { trade.PositionClose( PositionGetSymbol ( 0
[Deleted]
MQL5 calendar is bad Taking today Ifo Business Climate as an example MQL5 Site: 17:30 Forex Factory: 5:00pm Investing: 5:00pm DailyFx: 5:00pm All are GMT+8 time zone. How can MQL5 missed report such an important event? Unbelievable!!! Can someone fix it
I would like to know if anyone has a clue how to program EAs much faster, without all the slow process of coding 2000 lines. I have seen somewhere Programming platforms that enable to develop EA in under 2 minutes, and work much better then MQL Linear Programming. Can Anyone share some information...
Hi can you help me how can i take a backtest with 99.9% modeiling qulality in mt4
Hi, I am a US resident, and I don't have access to Spot Gold trading. I want to subscribe to an EA that trades GOLD but then do a cross trade to XAUUSD with my US broker. So when the EA initiates a trade in GOLD, I want to initiate the corresponding trade in XAUUSD. Is that possible? If so, how
Hello. I have several MT5 terminals from the same broker on my server. I renamed each instance so I can run them independently. Now when I try to connect to the marketplace it is not allowing me. It says to make sure the "web address res" is correct. It's pointing to a web address with the name of
how to write fast working expert advisor hello, I wrote an expert of medium complexity, but his backtests are progressing very slowly. It tests 10 days in 20 minutes. It's very slow because maybe I'll have to test the last 5 years. Some experts, which are more complex than mine, can be tested very
  Vps hosting  (9)
How many MT4s does metaquotes vps host
I rented a VPS here. At the time of registration, the page showed that NY's VPS connection to my trade server was delayed by 0.72ms, but looking in the VPS log found that the VPS did not connect to the trading server in New York, but connected to the trading server in China, resulting in a delay of
My idea is: i want to be able to manually place my fibonacci on a chart and have the EA send me an email notification when the bid price hits a specified level(example: 50%, 61.8%,etc...) in the EA. But my only problem is i'm having trouble getting the fibonacci levels while using the string
Hi guyz, Please I'm new to Mql5 language, I wrote a comment line, but while running the backtester the comment is not available. If the EA is placed on the actual chart, the comment shows. Is this an mql5 thing, i don't experience such with mql4, and i need the comment to always get more info about
i am thinking of buying a robot on the market of mql5 can any one give me advice of how to setup a demo so i can test before i buy
As a newbie, I want EA to open maximum of three positions each with a difference of 100 point when condition is met. Anyone who could help us with a general idea, which will help us all thank you
hello dear programmers!! Can someone program an Ea for Metatrader 4 from a Trading View indicator
hi my friends I wrote an expert that works well and has no errors and I checked it in the backtest But when I want to put the codes in the base code section, I get an error Can anyone help
I have been currently testing my EA with difffernt brokers to gather data. However I got this weird error: [ market closed ] With metatrader demo, it was working fine. Below was for Oanda demo, but I had the same with Vantage demo as well. Build version 3550. For extra info I did create the demo
I am trying to make my EA based on the Fractals sample form the Indicator-->Examples folder. Here is the code that I tried: #include<Trade\Trade.mqh> CTrade trade; void OnTick () { int test = iCustom ( _Symbol , _Period , "Examples\\Fractals" ); MqlRates rates_price[]; if (rates_price.high ==
Good day All! I am trying to create a method to check if trading is allowed, if the trading context is busy, if the symbol has restrictions (long only/short only), etc. Here is what I came up with, I am wondering if anyone would have some suggestions concerning other Account/Symbol related prechecks
Hi! For an EA I use a custom indicator with iCustom. It works fine so far. But for the strategy I need to change the indicators parameters at some point of time. I can get a new indicatorhandel with iCustom(...) with the new indicator settings. this works fine too. But then I will have two...
  EA
<Deleted> <ex5 file Deleted > Moderator's note: If you want to discuss your EA in the forum, you must attach the source code
  disable trading  (5)
Hi everyone , I trade using a trade assistant EA and wondered if it is possible to restrict trading on my account / EA once 1 position is opened not allowing me to open further positions until it is closed ? Kind regards
how can i solve this problem. When backtesting an expert I received this error message in the log C:\Users\MARG\AppData\Roaming\MetaQuotes\Terminal\BB16F565FAAA6B23A20C26C49416FF05\MQL5\Indicators\Indicators\Examples\CustomMACD.ex5 open error [3]
Building artificial intelligence in MetaQuotes involves developing algorithms that can learn from data and make predictions or decisions based on that data. In order to build AI in MetaQuotes, you will need to have a solid understanding of machine learning, programming, and the MetaQuotes
Hi! Any EA, of any source works on one of my computers. I have many EAs that I use every single day. I have other people using the same EAs that I do and tonight I went to trade the Hong Kong opening as usual, loaded the EAs on my multiple charts, different strategies and none of them worked. So I
how to specify the number of decimal places that should be kept after performing operations with data of type double
I place pending orders on a certain price level, however sometimes these pending orders are close to the live price which (I think) causes the pending order to be invalid. How can I fix this problem
So I have been testing a Expert advisor for a bit. I was using metaquotes demo as it was the most convenient. However now I am switching to other brokers. For the first I tried switching to Forex.com demo. However the data I get seems to be confusing. Strategy tester is build 3550, using Every tick
Hi, i am writing an ea based on the zigzag indicator. I dont understand what happens here but for some reason, sometimes price is zero and date = 1970 , I do check the buffer if its empty to zero //+------------------------------------------------------------------+ //| searching for candle lows &
Hello fellow programmers, first of all thanks for reading. I have a dilemma, the thing is that I use the "Only Open Prices" modeling in the strategy tester and in the optimizer for more speed. The issue is that since I can only use temporalities that are non-multiple timeframes as it says in this