All work
MQL5 / MT5

Ultimate Buy/Sell: TradingView-Exact MT5 EA with Per-Timeframe Presets

A client's obfuscated Pine strategy decoded, ported to MQL5 with direction parity on 23,438 bars, and shipped as a locked live build.

Found the hidden date switch in the source, matched 409 of 416 entries against a Python TradingView emulator, chose per-timeframe gold presets from MT5 tester reruns, and delivered a one-input live EA plus a raw any-symbol version with session windows.

Ultimate Buy/Sell: TradingView-Exact MT5 EA with Per-Timeframe Presets — illustration
What makes it serious
  • Hidden date switch found in obfuscated source
  • 0/23,438 direction mismatches; 409/416 entries vs emulator
  • Presets validated in the MT5 tester, not just the sweep
  • Session-window and stop-to-cost logic verified exhaustively

The client's indicator looked simple but its source was obfuscated and behaved differently before and after a hidden date: before it used a higher-timeframe Supertrend with lookahead that no live system can match, after it used the chart-timeframe Supertrend. Decoding that switch was the key to an EA whose backtest matches TradingView. Direction parity was zero mismatches across 23,438 bars and entries matched 409 of 416 against a Python emulator of TradingView's execution.

The client also wanted settings per timeframe with a profit factor of at least 1.5. Presets for M1, M3, M5 and M15 on gold were chosen from MT5 tester reruns rather than the Python sweep, because the sweep runs about 0.02 higher and borderline winners fail in MT5. The honest caveat is recorded: the threshold is carried by the most recent months. A request for 100 percent a year with a capped drawdown on H1 was shown to be impossible on the data, and the one setting that technically hit it was flagged as curve-fit.

Deliverables: a live EA with a single Lots input that splits across three targets and refuses to run in the tester or on other symbols, a raw version for any symbol with IST session windows that closes everything at window end and moves the stop to cost after the first target (verified 157 of 157 and 491 of 491 exits), and a 15-minute Pine backtest strategy.

How it works

  1. Obfuscated Pine is de-obfuscated and the regime switch dated
  2. MQL5 EA reproduces the chart-timeframe Supertrend logic
  3. Python emulator and MT5 tester cross-check entries and direction
  4. Per-timeframe presets selected from tester reruns
  5. Locked live build and raw session-window build delivered
Stack
MQL5MetaTrader 5PythonpandasPine Script v6

Software and automation are infrastructure, not financial advice. No performance guarantees. Every live system needs staged testing, risk limits, and owner approval.

#mql5#supertrend#xauusd#client#parity#expert-advisor