Expert Advisors and Automated Trading - page 4

I'm new to MT5 and I was playing with the EA. I dont really understood how the EA work with the indicator but I have learned that the variable "Signal threshold value to open" and "Signal threshold value to close" is used to allow the indicators to turn on or off based on a calculation
Hi! I want to examine specific trades my EA took on the resulting chart produced after the backtest is completed. In e.g. TradingView.com, I just have to click on the trade in the strategy tester report, and it navigates me to the location of it on the chart where the trade was placed. I can't
i have a indicator that sends out signals in the form of arrows i have beentrying to automate the entry and exit of trades, i have been under the assumption that they were created objects (the arrows) but they dont show up on the object list and the code that i wrote used objectsTotal but it doest
I found a solution for the many charts that the strategy tester opens automatically in MT5. Till now I closed them one by one with Ctrl F4 and than clicking on the next chart tab. But this goes faster: On your keyboard: Alt W ... this opens the Windows List. Now select the first of the charts you
double FastEMAValue[ 2 ], SlowEMAValue[ 2 ], ATRValue[ 1 ], TrendEMAValue[ 1 ], HigherTimeframeEMAValue[ 1 ]; double MACDValueMain[ 2 ], MACDValueSignal[ 2 ]; int copiedFastEMA = CopyBuffer (FastEMAHandle, 0 , 0 , 2 , FastEMAValue); int copiedSlowEMA = CopyBuffer (SlowEMAHandle, 0 , 0 , 2
hi. I have error in my expert. you can find my codes and errors in below. please advice me. thanks. //+------------------------------------------------------------------+//| crossma.mq5 |//| Copyright 2020, MetaQuotes
hello everyone im moj, im working on an expert , i need to identify Highs for my sell and lows for my buy each trick i use like ihigh or ihighest , have problem for example is set sl too far i want to get exact high befor price fall
Hi, I just finished a backtesting with optimization using genetic algo . After optimizations finished I saw below log in journal tab. I am a bit confused why a pass could vary so much. I have not manually added conditions to terminate the tester pass in the code. So its baffling. 1. Could it be that
Please Help me. the expert should enter first trade after a Ma Crossover then need to wait minimum 3 candle for the next trade. if 3 consecutive bullish candles happens. there should be a buy order & after that more three candle need to wait if this 3 candle is bullish expert should open another buy
Hello everyone. Here is a simple spin edit code. It is working fine except that every time I change time frame the previous value is not shown. In order to keep the previous value I am using a global variable called: spin_value. My experts log proves that the value is passed correctly after time
  Buying or Selling all 7 pairs  (27   1 2 3)
Dear All i was trying a trading strategy to buy or sell all the USD Currency pairs together, i only check the daily strength of the USD, then i take decision to buy or sell (open 7 positions), then i check after so many hours, sometimes waiting for days looking  for total positive profit after that...
  Multi Currency EA  (19   1 2)
Hello I'm trying to build a multi currency ea that works in the mt5 strategy tester. i'm not a professional programmer but i tried i've read the articles on this website about that and tried but with no luck i couldn't understand the method because they use about 3-5 include files linking to each
A must ! Before using it or asking any question : please read the Online Help (Also accessible by F1 on your MT5 platform) Strategy Tester For Traders General overview of the possibilities. Overview of results : Visualize a Strategy in the MetaTrader 5 Tester The general information about
Dear all, Me EA based on the MQL platform seems to be malfunctioning. I can't even close my EA trades manually. No bulk operations on either desktop or mobile help. My CPU etc. is incredibly low, like 8% capacity. Regards
Hello, I am encountering this error.. What does it mean ? test on EURUSD,H1 (netting) strategy tester report 3 total trades test on XAUUSD,D1 (netting) strategy tester report 6 total trades test on GBPUSD,M30 (netting) disconnected there are no trading operations
Is there a way to debug the runtime to see exactly where in the process the EA is getting stuck on in the MetaEditor or elsewhere so I can try and modify it. Thanks in advance
Hi everyone, Im just wondering if there is a software or EA that copy trades to others accounts but copy each trade as manual orders. Normally when using copys EAs they copy trades with magic numbers even using magic equal to zero is not a manual order
I used to be able to read news on forexprostools.com, but now getting error 5004, "cant load file"..... has something changed there? Here is my code: string ReadCBOE() { string cookie= NULL ,headers; char post[],result[]; string TXT= "" ; int res; string investingUrl=
I wanna loop through history deals but why am I getting print zero here? i tried HistoryDealsTotal() and HistoryOrdersTotal() both printing zero, what seems to be wrong here? tks all. double totalProfitLoss = 0.0; int totalDeals = HistoryDealsTotal() ; Print("Total historical deals__:"
Hello everything is fine? I need to make changes so that my robot operates only within the open market, so that it does not operate in auctions and after the closing call, I saw that there was nothing native for this, so I developed the following methods that run every tick: bool IsMarketOpen() {
When the following Expert is initially attached to a chart, The SpinEdit value 25 is displayed. If the timeframe is changed, the value 25 is no longer displayed. However, clicking the up/down arrows will re-display the value. Changing timeframes again will hide the value. Is there a way to keep the
Please help me understand: I am running the tester strategy with an expert of the MT5 market on gold with four different brokers Dukascopy, Swissquote, FP-Market and Ava-Trade and I get completely different results. In particular with Swissquote and Dukascopy the result from 01.01.24 to today is
I have been testing a new custom EA and have it running on 6 separate computers. Each with a different demo account. About 10 days, the 2 Dell laptops (both I-7 16 G) suddenly stopped entering orders. Journal on both Dell laptops simply says "activated for drlipsitz". Everything is normal on the non
Hi everybody, I'm experiencing a problem with Metatrader 5 optimizer which I've never encountered before. I don't know since when this is happening. When I run a single test from the optimization result list, sometimes the result is different: different number of trades, profit etc. Here is an
Hey guys, My recent optimization results are not what they seem to be. When double-clicking an entry in that table, both backtest and a visualized strategy run yield a totally different result (results of backtest and single visualization test match). Not only the profit is mismatching, but also the
As I run optimization test ,get result and run single test result not match the result. Get huge deviation, not sure it's optimization get error or single run get error. It's so confuse me. I do lot of tests base on this version code,over one month. MT5 base on version 5, build 2981. Always skip the
Hello, I've been testing some EA on MT5 strategy tester. But I'm getting 2 totally different results from running the strategy tester with and without visual mode. I think It should be reasonable to believe in the results of visual mode testing. And since the optimization results are based on
I am not a professional developer and I am trying to make an EA based on published examples, my personal additions, my limited general programming knowledge (html, php, databases, but not MQL5) and the help of the AI Assistant built into the MQL5 Meta Editor. I have made several small EAs and none
Hi I am new to MT4/MT5 and I'm trying to backtest some EAs. There are a couple EAs I've tested that will place trades like the <Deleted> bot but I tried 4-5 others and they all fail to place any trades. I noticed in the journal that the bots do not initiate any buy trades but has many sell trades
I was testing an EA that a developer put on the codebase for trading Gold ( based on Keltner channel and EMAs) . Here is how the backtest looked on "Real Ticks" modelling: Here is how the backtest looked on "Every Tick" modelling for the exact same setting, same leverage, and same time range (same