Expert Advisors and Automated Trading - page 39

Hi. I can't get rid of these errors at compilation stage. It seems to me that I'm using a correct syntax but if there is an error then I'm definitely doing something wrong. Can you show me where the problem is? Errors: 'SymbolInfoDouble' - no one of the overloads can be applied to the function call
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
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
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
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() {
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
I'm totally at a loss for what the problem could be; I have the following request being sent to multiple accounts (held on various brokers and MT5 terminals): request = { "action" : mt5_interface. TRADE_ACTION_DEAL , "symbol" : pair, "volume" : lot_size
Hi all, When exporting the optimization cache file of an optimization and when importing them again later on in the Optimization tab, it seems the chart of scores becomes incomplete and shows a much lower number of passes (see enclosed pictures original vs saved/exported/reimported). Is it possible
MT5 has a very bizarre way of handling files... instead of defaulting to the directory where the executable is running it likes to mess things up and confuse the hell out of everyone but putting files in various places and give everyone the runabout... the reason for doing things this way escapes
I'm creating a Rectangle Label using the CHARTEVENT_MOUSE_MOVE event, for every time the event fires I invoke obj_rect_label.Create(foo, bar, lparam, dparam); my question is that, is this method safe in terms of memory management? or do I need to delete/destroy the previous object before recreating
Hello everyone. 1. I am trying to attach a template to chart and then take a screenshot. 2. I realized when I use ChartScreenshot too soon the template is not loaded yet and it is not visible in screenshot. 3. I use Sleep function to avoid this. I am wondering if there is a better solution
I'm unable to set any of the Left() / Right() for a certain CWnd instance. maybe Im wrong but I expect to change the dimensions of - for example - a CEdit object using these methods. could anyone provide an example for the use case? whenever I use CWnd::Left( 100 ) I can confirm that the output from