I'm trying to create a recency-weighted performance indicator that averages the annualized performance of various lookback periods. For each lookback period, it uses a 5-day moving average to avoid the problem of idiosyncratic results depending on the daily results of the specific lookback day. I'm
I've written an indicator for the Ulcer Performance Index, also known as the Martin Ratio. It works, but on chart refresh, it often doesn't recalculate and update the display correctly. I used code from the Ulcer Index to try to prevent constantly recalculating the whole thing, but it still has
It seems like suddenly (recent build maybe?), I have several EAs that have stopped working at all in the strategy tester - they make no trades at all. I haven't recompiled them - they just quit working. Some are my code, some are market EAs. Happening on multiple terminals, multiple brokers. I
So apparently in the new version of MetaEditor, there are options to compile different versions based on your CPU architecture. That's all well and good — I appreciate anything that boosts performance. But it's not working, and I can't find any information to help. I managed to find one thread in
I'm trying to implement a strategy that trades on the daily timeframe based on the daily close. The problem, of course, is that the instant the daily candle closes, the market is closed. So I need to catch the next open (not necessarily NYC - in fact, don't want to wait on that). It seems to me in
I have tried to understand how iCustom works, but I guess I'm just not getting it. I'm trying to build a simple Stochastic RSI EA. I have tried using both of these indicators: Free download of the 'Stochastic RSI' indicator by 'GODZILLA' for MetaTrader 5 in the MQL5 Code Base, 2011.11.25 Free
This has been driving me crazy, so I finally ground through and figured out exactly what is going on. In the MQL5 wizard , if MA or PSAR trailing stop is selected, it doesn't work correctly (an otherwise profitable strategy becomes unprofitable) if the initial stop loss is set to anything other than
What metrics do you use to objectively measure performance of your EAs? And what do you consider good enough to put into production ? At the moment, I'm focused on prop trading, and using that as a good reason to focus more on minimizing drawdown and maximizing consistency, more so than maximizing
I'm working on an EA in MQL5. I have tried just about every variation of parentheses I can on these lines, and I keep getting some variation of "open parentheses expected" errors. Here's the minimalist version with only the parentheses required by if, plus one required by the logic grouping: if (bid
I have an MQL5 EA I built using the wizard, but I'm kind of stumped on something. It uses a PSAR trailing stop. If I set no manual stop loss , I get 2794 trades within the test period with a profit of Recovery Factor of 4.04, profit of 9510.91. If I set any initial stop loss (I've tried everything