saniok.ch

The MetaTrader bridge

One Expert Advisor links your terminal to saniok.ch. It can publish your trading as a signal, mirror the signals in your mix onto your account, or do both at once on the same terminal. Same features and same settings on MetaTrader 4 and 5 — pick the build for your platform.

Install

  1. 1.Put the file in your terminal's MQL5/Experts folder — MQL4/Experts on MetaTrader 4 — (File → Open Data Folder) and compile it in MetaEditor with F7.
  2. 2. In Tools → Options → Expert Advisors, tick Allow WebRequest for listed URL and add the site URL. The EA cannot reach us otherwise.
  3. 3. Create an API key on your account page and paste it into InpApiKey.
  4. 4. Attach the EA to any chart with algo trading enabled. It works off a timer, so the chart symbol and timeframe do not matter.

Publish a signal (provider)

The EA reports your open positions and every deal as it closes. The published growth curve is time-weighted, so deposits and withdrawals move your capital base without ever looking like performance.

InpPublish
true
InpSignalId
the slug of a signal you own, e.g. my-signal
InpHistoryFrom
0 to publish from now on, or a date to backfill

Mirror your mix (client)

Each position is sized as provider lots × (your equity / provider equity) × weight, so a mix of 60/40 lands on your account in that proportion whatever the provider's account size. Requires an active subscription.

InpCopy
true
InpMixId
empty to follow the mix you marked for the EA
InpMaxLot
a hard cap per copied position
InpSymbolSuffix
your broker's suffix, e.g. .a or m

Worth knowing

  • Both roles at once is safe. Copied positions carry the EA's magic number and are never republished as your own signal.
  • Copies open at market.Your fill will differ from the provider's by the spread and latency between your brokers.
  • Symbols must match. If your broker names things differently, map them with InpSymbolMap, e.g. XAUUSD=GOLD.
  • Partial closes are not mirrored yet: a copy is opened once and closed when the provider closes it.
  • On MetaTrader 4, the EA only sees the closed trades your terminal has loaded: right-click the Account History tab and choose All History before publishing. Mixing platforms is fine — an MT4 provider can feed an MT5 subscriber and the other way round.
  • Test on a demo account first. The EA places real orders on whatever account it runs on.