Expert Advisors and Automated Trading - page 118

I have had this code throughout my eas, scripts ands indicators but suddenly broke and returns wrong values. Then I surfed the forum, there is enough information on this but all the snippets i took also gave the same wrong answer. Is this a bug or Mql5 changed? HistorySelect ( 0 , TimeCurrent ());
I have a 3rd party EA that I use, however I have a couple of ideas for some filters to improve the EA. Not being able to edit the EA itself, I was wondering if it is able to build an EA with the add on filters, that calls the main EA if the filters conditions are met and be able to backtest the 'new
Utilizing the Sendmail function and i'm having trouble getting this right
2022.10 . 04 14 : 36 : 44.455 Tester Cloud servers switched off 2022.10 . 04 14 : 37 : 19.685 Tester F40: history check started 2022.10 . 04 14 : 37 : 30.494 Tester F40: history check timeout 2022.10 . 04 14 : 37 : 30.494 Tester F40: no history data from 2010.01 . 01 00 : 00 to 2011.01 . 01 00
Hi, when I use "every tick", "Open Prices only" and "1 min OHCL" in the strategy tester. I found that the Ask/Bid spread is not counted. Usually you use these modes for a quicker result. But when you are scalping in 1 min timeframe with 10 pips for profit. The difference is huge with or without
  Update EA  (1)
I have SignalReader-EA Telegram Copier, which is an EA that copies forex signals sent via telegram channels directly to MT4. I want to add some more signals to my EA, but I don't know how. Is there anyone here who can help me
  Candle time EA  (1)
Hello guys am just wondering how we can do time and candle condition as a basis of opening a trade example ; H1 CANDLE IS =60 MINS So i need to open trade 5 mins before current candle closes meaning i will open trade at 55 mins of the current candle close trade > close trade at 20 mins after
hi, Can I have multiple trades open per EA? My strategy that I want to consider is accumulating multiple, or aggregated, trades. I think you can only have 1 trader per Magic Number. In general, I am interested in no more 3-4 trades. Are there any example EAs where multiple trades can be opened
I am not using my EA in 100% automatic way, because I am changing direction of trades: long/short or trade disabled, but you know it's very exhausting to changing direction on 7 charts especially where is change on direction on more than 1 asset.... How to make it simplier? For example I am changing
I have a problem with a function that should set SL to 1 pip over entry price (buy mt5). In backtests it works perfect but in live trading sometimes not at all. That what it looks like in the code. // newsl double nsl= NormalizeDouble (op+ 10 * Point (), Digits ()); if (...)
Hi! I'm trying to figure out why this code only fires on one chart at 1AM, even though the EA is actually attached to multiple charts at the same time. Is my assumption wrong that globally scoped variables only apply to the chart that was attached? or are they in fact shared across charts? int
My coded mql5 when back tested works perfectly opening a trade one at a time according to my command but when I run the code on a demo live trade it opens multiple trades at a time why
Hi, I would like to be able to simulate balance withdrawal during backtesting. From the docs I see that there is a function: TesterWithdrawal() - However, as I'm testing an EA from the marketplace, I don't have access to the source code. Is there any way to simulate this without the source code
Hi, I'm testing an EA and I've added Max Drawdown Limits. However, when I run the tester, sometimes trades will at a drawdown much higher than what I've set it as. The strategy works great on demo testing over the last few months, and the Risk Limits work as intended. However I'm unable to get it
Hi, I want to know how the Print(...) function was coded, because I want to write such a function myself, which takes infinite number of parameters. Does anyone know? 
Hello , I am working with and EA which uses a table panel in which you can change symbpol in an slave chart. So I am using a Master EA that works with a Slave EA to do that. To Change symbosl I am using ChangeSymbolPeriod and as documentation says, all EA and indi are restarted. I saw some
  Error  (4)
Hi guys! Am getiing these errors: 2022.12.02 15:30:43.589 Notifications: failed send request [0] receive response failed [12002] 2022.12.02 15:30:43.589 Notifications: 'order #51652826 sell stop 0.06 EURUSD at 1.05287 activated at price 1.05080' not sent to '42C6B909' what would be the reason, as
Hi, I see that in some cases a backtest requires a lot of time (1hr+) and memory. Can anyone suggest what might be reason for this so I can try to resolve it? Thank you very much
Hello i'm a youg student trying to make it please guide me on what to read so that ican build my own trading bots and automate trading strategies please help
I have this script that is supposed to be used for risk management on my trading account. However, I have an issue taking profit. The script calculates the tp levels of 1:1,1:2, and 1:3 once a stop loss has been inputed by the user. My first tp level works flawlessy and using the same structure my
  MQL4 to MQL5  (7)
How do I rewrite these from mql4 to mql5? 1) asking1 = MarketInfo(" GBPUSD ",MODE_ASK); 2) int ticket=OrderSend("EURUSD",OP_BUY,Lots,Ask,3,0,0,"My EA",12345,0,Green);
  Cross over Code  (2)
can any one helpme i want a code to make numbers cross over when the values drop from 10 - 0 and also when they increase from 0 - 10
Hello, Ive tried developing own EAs from developers but its been struggling. However, I found appropriate results by using readymade EAs. Ive been using free EAs for last two months and they have somehow handled ups and down when market become volatile. My question is that can I depend on free EAs
For example, in my EA, i need to get the value from a trendline , but if there is a weekend, i will get different value by getting different testing period.(seems calculating weekend in one case) 1.If i selet 2022.8.1 - 2022.9.1 2.If i selet 2022.8.8 - 2022.9.1 The value return by
Hello, Is there any technique/way we can automatically copy trades from Binance Futures to MT5/MT4. especially for the btc and eth
Hi all Hope you are well. I've tried researching this question but have come up blank. I am creating an EA that sets Sell Limit orders in good time before the trade happens. However, in the demo account, the trade is being executed at a "worse" order price. E.g. If my order says to sell at 100, it
Hi, is there a way to write log files during optimization? I would like to print stuff while multiple optimization agents are running. Is there a way to see results of Print("...") commands somewhere? Thank you very much
Let's say I Input a market sell order, I want it to automatically come with a 10-20 pip stop loss from the price I entered the trade, This for Metatrader 5, can anyone help me
Hi All, What is this number meaning in MT5 Tester? I can't correlate it with Margin levels and other numbers. Seeminghly, on Demo accounts the system is closing the trade if Margin Level is going down to 50%. In the Tester though it shows approx 220%-230% as Deposit Load when the Tester stops Can
I keep getting the following error CHistoryPositionInfo::HistoryPositionCheck > Error: the selected position is still open . I presume it generated in the library module code but not quite sure what I should do to avoid the error (or do nothing as I do now) Do I somehow need to DESELECT