Expert Advisors and Automated Trading - page 59

Hi all, I am new to coding and created a simple script for an EMA cross with periods 3 and 26. The EA is not catching all cross events , only some of them. Can somebody see what is wrong? I added print statemts so in the EA journal you can see the events not being captured as the change from
I like the feature of the MQL5 Cloud Network for assisting in optimization runs and I thought I would be able to approximate the run of my script by performing a small sample size run ~500 and then dividing the cost by the number of runs. My initial calculation was $0.00026 per run and I
//+------------------------------------------------------------------+ //| VWRSI.mq4 | //| Пользовательский индикатор для MT4 | //+------------------------------------------------------------------+ #property
see my code //+------------------------------------------------------------------+ //| TrendBias.mq5| //| Copyright 2023 | //| https://www.mql5.com |
I had some random results trying to compare brokers and their spreads... So I wrote a little code to see where my spread values were going wrong - see below. Now I'm not sure at all! - the CopySpread function seems to be making it up!? See the example output (suggesting that the spread is either 6
I am currently developing an Expert Advisor that performs arbitration between two symbols: WINV24 and INDV24 (Brazilian Assets). I run my backtests with WINV24 as main symbol and it works fine for receiving tick data. However, when trying to access INDV24 tick data during the backtest, all values
I currently have my EA calculate values on the last x amount of bars - this however creates a huge lag during back testing - because of the "for loop" it looks like it executes on every tick. This is how the value check stars: //CHECK ID10T VALUES FOR BUY OR SELL if(BUY_ORDER   == 0 && SELL_ORDER...
hi, i am looking for an ea that lets me move the stop loss automatically. This is what i need? open a position and once in a position i want that the stop loss move automatically once a specific price has been reach. and then once another price has been reach move again to another position
Dear Good day Anyone to assist? I have an EA which- uses combination of Palabolic SAR and two MA Crossing to execute trades. It is to buy or sell when Fast MA- crosses Slow MA Up and down respectively in support of Palaboric SAR. I have attached the EA on Forex pairs, Crude oil and Gold and the EA
Hi When I download an expert ,the widget is not in the correct measurements to be useful.It happens with all experts I download,mostly for closing open orders or similar things. is there a way to fix this in the mt4settings or the laptop(Acer Swift)? Thanks for your insights
Hello! I have saved a GlobalVariable() on Friday, and today I had a computer crash, and after I have restarted and checked, global variable is missing . Should that happen
I have found accidently that the historical spread (Ask-bid) used to open and close orders during backtesting in the strategy tseter is different from those stored in the Mql rates. For example, you can get historical spread using the following code (Lets say your EA is attached on M1 chart)....
I tried searching; this must have been asked before but I couldn't find anything relevant; sorry for asking such a 'stupid' question but; I used ot use mt4, and in back tests it had a tab for 'trades placed' or 'results' or something... that used to show me the breakdown - SL/TP, lot sizes, P/L -
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() {