PivotHeiken 3
This EA combines Pivot Point levels with Heiken Ashi candlestick analysis to generate trade signals. It identifies entry opportunities when Heiken Ashi candles confirm direction near pivot support/resistance levels, and manages trades with take profit and stop loss based on pivot structure. The strategy aims to capture reversals or breakouts at key pivot levels confirmed by Heiken Ashi trend direction.
Open the interactive view (equity curve, symbol switch)Key facts
Backtest results (H1, about 1 year)
| Symbol | P&L | Annual | Max DD | Trades | Win rate | Sharpe | Recovery | Losing streak | Per trade | Status |
|---|---|---|---|---|---|---|---|---|---|---|
| EURUSD | -5.16% | -4.50% | 7.56% | 144 | 44.80% | -1.12 | -0.68 | 5 | −$3.84 | Reliable |
| GBPUSD | -10.54% | -9.23% | 11.89% | 144 | 39.20% | -1.80 | -0.89 | 6 | −$7.54 | Reliable |
| USDJPY | -2.60% | -2.26% | 7.29% | 160 | 44.00% | -0.46 | -0.36 | 10 | −$1.54 | Reliable |
| XAUUSD | -100.00% | -100.00% | 100.00% | 37 | 45.90% | -1.82 | -1.00 | 4 | −$361.57 | Account stopped out |
Profitable on 0 of 4 markets with reliable results.
Converted from MQL5 to Python and run with the same rules for every EA. Positions use MT5 lot sizes (100,000 units per FX lot, 100 oz per gold lot) with 1:100 leverage, one order at a time, and a stop-out below 10% of the starting balance. Sharpe is computed from the equity curve. Results marked as unreliable are shown for completeness only.
Month by month
| Market | Months with a gain | Best month | Worst month |
|---|---|---|---|
| EURUSD | 31% | +1.56% 2026-09 | -2.50% 2026-07 |
| GBPUSD | 23% | +1.10% 2026-05 | -3.17% 2026-04 |
| USDJPY | 54% | +1.53% 2025-11 | -3.21% 2026-09 |
| XAUUSD | 25% | +3.11% 2025-11 | -100.00% 2026-02 |
From the backtest equity curve, sampled about every two days; only reliable results.
Blow-up risk: High
- Hit a stop-out in our backtest (equity below 10%) on XAUUSD
High: stopped out in our backtest, or martingale/grid sizing without a stop loss. Elevated: martingale or grid sizing with a stop loss, or several positions at once without a stop loss. What the label means and what we found →
Strategy analysis
The strategy concept is based on traditional pivot point calculations using daily open, high, low, and close prices to derive support S1/S2/S3 and resistance R1/R2/R3 levels, combined with Heiken Ashi smoothed candles for trend direction confirmation. Entry conditions: go long when price approaches pivot support and Heiken Ashi candles turn from red to green; go short when price approaches pivot resistance and Heiken Ashi candles turn from green to red. Exit conditions include fixed take profit and stop loss based on pivot level distances, plus signal exits when Heiken Ashi color reverses. Position sizing uses either fixed lots or percentage-based calculation tied to account balance. Money management sets stop losses beyond adjacent pivot levels to ensure risk is controlled. The overall strategy logic is clear but depends on pivot level accuracy and Heiken Ashi's ability to filter false signals in choppy markets.
Strengths
- Double confirmation with Pivot Points and Heiken Ashi reduces false signals
- Trading based on key market support/resistance levels is logically sound
- Pivot levels auto-update daily, adapting to market changes
Weaknesses
- Heiken Ashi frequent color changes in choppy markets generate too many false signals
- Fixed TP/SL doesn't consider volatility indicators like ATR, may not suit all market conditions
- Lacks multi-timeframe confirmation, single timeframe analysis may miss major trends
Possible improvements
- Add ATR-based dynamic stop loss and take profit for volatility-adaptive adjustment
- Add multi-timeframe pivot confirmation, entering only when H4 and D1 pivots align
- Add volume or RSI filter to reduce false trade signals in ranging markets
Risk assessment
Overall risk: Medium
- Fixed stop loss can be easily triggered in high volatility conditions
- Lacks maximum drawdown control or account-level risk limits
- Frequent signal reversals in ranging markets may lead to consecutive losses
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
Lots | 0.1 | Fixed trading lot size |
StopLoss | 30 | Stop loss in points |
TakeProfit | 60 | Take profit distance in points, 0 to disable |
PivotTimeframe | D1 | Pivot calculation timeframe |
HeikenAshiTimeframe | H1 | Heiken Ashi timeframe for signal judgment |
MagicNumber | 12345 | EA magic number for identifying managed positions |
MaxSlippage | 3 | Maximum allowed slippage |
Similar Pivot Point EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.