The strategy follows a three-line Alligator structure filtered by a 200-period EMA. It buys when the close is above the EMA and the lines are ordered upward, sells short on the mirror condition, and closes on the reverse condition.
Best run of 13. USD/JPY, Daily, spread 1, from run pf:2026-10-12-USDJPY-D.tsv:53.
| Period | Up to 2026-10-12 |
| Instrument | USD/JPY, Daily |
| Spread | 1 points |
| Starting capital | 1,000,000 |
| Costs | Spread only. Commissions and overnight financing are not included. |
| Bars | Up to 200,000 bars, fewer where the instrument has less history |
| Last tested | 2026-10-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 2.42 | 193 | 29.53 | 3,526,970 USD | -398,000 |
| Silver | 1 hour | n/a | 2,010 | 22.64 | 612,739 USD | -567,835 |
| EUR/USD | Daily | n/a | 185 | 31.35 | 158,788 USD | -42,208 |
| EUR/USD | 3 min | n/a | 3,763 | 19.72 | 103,350 USD | -33,083 |
| Nikkei 225 | Daily | n/a | 182 | 25.27 | 51,412 USD | -33,106 |
| GBP/USD | Daily | n/a | 215 | 31.16 | 23,089 USD | -7,424 |
| Nasdaq 100 | Daily | n/a | 148 | 35.14 | 22,252 EUR | -5,670 |
| US Crude Oil | Daily | n/a | 207 | 29.47 | 12,002 EUR | -7,919 |
| S&P 500 | Daily | n/a | 214 | 28.97 | 4,450 EUR | -1,198 |
| Gold | Daily | n/a | 210 | 28.10 | 3,880 EUR | -1,108 |
| Gold | 1 hour | n/a | 1,907 | 25.12 | 2,060 EUR | -1,284 |
| Gold | 5 min | n/a | 3,528 | 21.60 | 1,242 EUR | -776 |
| Gold | 3 min | n/a | 3,575 | 22.18 | 907 EUR | -906 |
Charts
Top 10 of 13 runs. The full list is in the table above.
The code
// ============================================================== // Alligator Trend EMA Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false jaw = WilderAverage[8](MedianPrice) teeth = WilderAverage[5](MedianPrice) lips = WilderAverage[3](MedianPrice) trend = ExponentialAverage[200](close)
18 more lines: the entry and exit rules.
Setup
Questions
Yes. The code is ProBuilder and runs as an automated ProOrder system. Backtest it on your own account with your own spread and position size before trading it live.
It was tested on 13 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 2.42 over 193 trades.
The best run had a maximum drawdown of 398,000 USD at the tested position size, against a net result of 3,526,970 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.