Forum

Ulcer Performance Index aka Martin Ratio - problems on refresh

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

Strategy tester problems - suddenly no trades on multiple EAs

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

New MetaEditor compiler options not working

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

Trading daily close on daily timeframe

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

Having trouble coding Stochastic RSI EA - need help with iCustom()

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

MQL5 wizard MA & PSAR trailing stop not working if initial SL is set

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's your criteria for "good enough for live"?

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

Syntax problem with if statement

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

MT5 wizard EA, adding manual stop values kills profitability

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