Expert Advisors and Automated Trading - page 155

  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
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
Hi, first time asking here, thanks in advance. As the title implies I am looking for a script/function to account trade deals as "net lots" or "net position" per symbol, while working in a MT5 Hedging account. One good thing about this requirement is that its a conversion for complex to simple (as
I want to hedge but my ea will only open trades both(buy & sell) at the same instead of 10 pips. please help if you know the problem #property copyright "Copyright 2022, MetaQuotes Ltd." #property link "https://www.mql5.com" #property version "1.00" #property strict #include
I have loop with variable begin date-time, what move to the future time ... Example: totalTicks = numpy.array([]) while True: utcBegan += timedelta(hour= 4 ) ticks = mt5.copy_ticks_range( Symbol , utcYearBegan, utcYearEnd, mt5. COPY_TICKS_ALL ) totalTicks += ticks or
hi, can anyone help with the inputs of my purchased EA. its not making profits
[Deleted]
DoesWebRequest works in backtest
if using agents or multiple cores for optimising parameters, more than one year. Mt5 generates \tester\Agent*\temp\bar*.tmp files. every run. It slowly gnaw/nibble SSD storage. In mt4 read only fxt files was a solution. How about mt5 ? if using multiple cores,mt5 generates files for every local
Hello, Greeting, I want to change a number according to the changes in the prices of ask and bid. It means that, for example, for every two point change in each of these two ask and bid prices, my number changes by one point, just like what happens in the trail of a position. Can you tell which
Hi, my broker has mini lots forex 0.01 while for indices 0.1. Doing an expert test on GBPUSD 0.01 and 0.1 profits correspond to lot size. With indices the results are huge, as if it were a whole lot. Who has this happened to and what could be the problem? I can't test the indexes correctly thank
i am getting this error during verification 2020.02 . 03 00 : 02 : 30 current account state: Balance: 1.00 , Credit: 0.00 , Commission: 0.00 , Accumulated: 0.00 , Assets: 0.00 , Liabilities: 0.00 , Equity 1.00 , Margin: 0.00 , FreeMargin: 1.00 2020.02 . 03 00 : 02 : 30 calculated account state
Hello I was wondering if spreads were taken into account when backtesting in Metatrader 5
I am debugging an EA in strategy tester visual mode and found cases where stop loss (and also take profits( are not triggered timely. As you can see in the attached screen capture: 1- A sell order was executed on Jun 1srt, with a SL of 1.11285. 2- On the next day/candle, the price exceeded the
Hi all, I have written an ichimoku trading expert to place buy and sell trades when certain criteria are met. After deriving all of the individual variables using copy buffers, I use the following code to trigger the buy signal: if (tenkanSen > kijunSen && tenkanSen-1 < Kijunsen-1 &&
I am not using the cloud network, it is disabled in my adviser window. How do i fix this error?
Hey, So essentially I have been testing stuff using the metatrader strategy tester . I have been using a custome expert advisor for a while and it was working completely fine. However like 1 or 2 days ago, all the data seems to be wrong. Getting multiple issues now, with below being the 2 main
Hi , I have a simple question about MT4 platform and order executions by EA’s. Can an EA check the terminal price and the chart price prior open a trade ? Let’s say it won’t be more than “2pip” difference on price comparisons to confirm an order execution . I think an EA can check the chart price
Combine these 3 indicators in the way described here in this video and it will put you well on your way to consistently profitable trading. The indicators used are Stochastic RSI (K line only), CM Slingshot system (cloud only), and ATR stop loss finder. Play around with this simple trading strategy
Hi, I need to edit something in an indicator if you can helping me, please
Hi there, I'm lookin to log the onTradeTransaction() -events of my EA. Where can I find/activate the log files? Similar to the log file I attached. Thanks a lot
Hi all, I have had quite a challenge in that my code opens positions up to the limit of PositionsTotal()<=say 10. I wish to have one position per currency pair at any given time. Kindly find attached part of my code for that part which is not limiting open orders. Please point me to what I could am