Expert Advisors and Automated Trading - page 155

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
Since two years we are facing the same bug in MT5 which wasn´t there before. 2755 was the last build which made no problems, all builds afterwards come with the same issue. There must have been a general change within the task management of MetaTrader 5, but we got no help from MetaQuotes to isolate
  2 simple MA crossing  (12   1 2)
Hi, Can someone help me whit this EA based on 2 MA crossing. I have used the MQL Wizard to build it, however I am wondering how to add the buy and sale options to this and also the SL and TP? Thank you all for the the help. Also if this was already posted and resolved please point me in the right
  Normalizedouble  (2)
Below is a section of my code // count open positions int cntBuy, cntSell; if (!CountOpenPositions(cntBuy,cntSell)){ return ;} // check for buy positions if (cntBuy== 0 && bufferRSI[ 1 ]>=( 100 -RSI_Level) && bufferRSI[ 0 ]<( 100 -RSI_Level) && currentTick.ask>bufferMA[ 0 ]){ if
Hi, i just want to know if there is any way to get the name of an EA that placed an order that is already closed. I ve got the history of transactions in my terminal and i was looking old trades and there ir a period where the profitability was really good, but i do not know which EA i used. I think
Good evening everyone.. Is there an expert advisor or scripts that close losing deals based on the percentage of capital, for example, 3% or 5%
Is there a function in MQL4 allowing an expert to add an indicator to a chart