MOEX Sentiment Pro
- Utilità
-
Musa Khunarikov
📊 Trader professionista dal 2014 (oltre 10 anni di esperienza).
💱 Mercati: Forex, Azioni, MOEX, Metalli.
💻 Sviluppatore MQL4-MQL5. Specializzazione: analisi dei volumi, analisi dei cluster, footprints, delta, profilo dei volumi.
🧠 Esperienza e Approccio: - Versione: 1.0
- Attivazioni: 5
MOEX Sentiment Pro
Expert Advisor panel for MetaTrader 5 that displays the positioning of Russian market participants in Moscow Exchange futures. It shows the ratio of long and short positions of retail (physical) and institutional (legal) entities. Official open exchange data is used (ISS API). Does not open trades.
ATTENTION! MY INDICATORS DO NOT REPAINT. I DESIGN THE CODE SO THAT HISTORY AND REAL-TIME FULLY MATCH. YOU GET AN HONEST BACKTEST AND STABLE SIGNALS IN REAL TRADING, NOT A "BEAUTIFUL" CHART IN THE TESTER.
Important data feature
The free Moscow Exchange API (ISS) provides open interest data (FUTOI) with a delay. The panel automatically requests data for the current and previous days but displays the latest available snapshot, which in free mode may have a delay of up to 15 days. The panel shows the exact date and time of the displayed snapshot.
What the panel shows
-
Retail long / Retail short — the share of long and short positions of physical entities in futures for the selected stock, in percent.
-
Inst long / short — similar data for legal entities.
-
Two metrics to choose from — by the number of contracts or by the number of persons. Percentages by volume and by number of participants may differ.
-
Session date and time — the time slice of the data is displayed. If stale, a mark (stale) is added.
-
Number of contracts in the aggregation — all expirations of one underlying asset are summed.
-
Dominance status — Long / Short / Neutral according to a configurable threshold.
Key features
-
Instrument auto-detection: the panel matches the stock ticker with the futures root (SBER → SBRF, GAZP → GAZR, etc.). Broker suffixes are supported.
-
Manual override: ability to set the root or an exact list of contracts separated by commas.
-
Three matching modes: by prefix, by substring, exact match.
-
Shared cache: one exchange request per interval for all open charts.
-
Dragging and collapsing: the panel is moved with the mouse, position and state are saved for each chart.
-
Automatic theme: light design on a light chart, dark on a dark one. Manual selection is available.
-
Opaque background: the panel is drawn on top of the candles.
-
Built-in diagnostics: if there is no data, a list of available tickers is output to the journal.
-
Weekend sessions handling: the panel is not blocked by day of the week and shows the last published snapshot.
Installation
-
Open the MetaTrader 5 terminal.
-
Go to the "Market" tab, find MOEX Sentiment Pro and install it.
-
Allow the exchange address: Tools → Options → Expert Advisors → "Allow WebRequest for listed URL" → add https://iss.moex.com .
-
Enable the "Algo Trading" button on the top panel of the terminal (required for the update timer to work).
-
Drag the panel from the "Navigator" onto the chart of the desired stock.
Login and password are not required.
Recommended settings
-
Liquid stocks (SBER, GAZP, LKOH, GMKN): InpMetric = Contracts, InpUpdateMin = 60, InpSignalRatio = 45, InpMatch = Contains.
-
Second-tier stocks: InpMetric = Persons, InpUpdateMin = 60, InpSignalRatio = 40, InpMatch = Contains.
-
Currency futures (USDRUB, EURRUB, CNYRUB): InpMetric = Contracts, InpUpdateMin = 60, InpSignalRatio = 45, InpMatch = Contains.
-
Index futures (RTS): InpMetric = Contracts, InpUpdateMin = 60, InpSignalRatio = 45, InpMatch = Contains.
-
Manual contract list: InpMetric = Contracts, InpUpdateMin = 60, InpSignalRatio = 45, InpMatch = Exact.
Trading scenarios
-
Crowd extreme: retail share in longs above 80% at significant resistance — a reason to wait for the market reaction.
-
Retail vs. professional divergence: retail increases longs, institutions increase shorts. You can see whose side the volume is on.
-
Metric shift: by contracts the crowd is long, by number of persons — short. Indicates concentration of large retail accounts.
-
Setup confirmation: technical signal coincides with non-extreme positioning.
-
Normalization after an extreme: return of the retail share to 50% means overheating is removed.
Parameters
-
InpUrl — primary request URL.
-
InpTryDates — search data by dates (default true).
-
InpBackDays — search depth in days (default 15, accounts for API delay).
-
InpSecid — futures root or exact contracts separated by commas (empty = auto).
-
InpMatch — matching mode: Prefix / Contains / Exact (default Contains).
-
InpMetric — metric: Contracts or Persons (default Contracts).
-
InpUpdateMin — update interval in minutes (default 5).
-
InpSignalRatio — dominance threshold for status (1–49, default 45).
-
InpStaleHours — after how many hours to mark data as stale (default 30).
-
InpShowYur — show the institutional row (default true).
-
InpForceRefresh — ignore cache once (default false).
-
InpDebug — diagnostics to journal (default true).
-
InpPos — initial corner for panel placement (default Bottom Left).
-
InpOffsetX, InpOffsetY — horizontal and vertical offsets (default 8).
-
InpTheme — theme: 0 = auto, 1 = dark, 2 = light (default 0).
-
InpRememberPos — remember position and collapsed state (default true).
-
InpResetPos — reset saved position (default false).
Implementation details
-
Pure MQL5, no DLLs or external libraries.
-
Parser by column names (resistant to changes in field order in the exchange response).
-
Deduplication of slices by maximum seqnum.
-
Aggregation of all expirations of the underlying asset.
-
Response cache in a common terminal file + timestamp in global variables.
-
Repeated error messages are not duplicated in the journal.
-
Panel objects are updated in place.
-
Network requests are not executed in the strategy tester; the panel shows neutral values.
Important warning
The panel shows open interest in futures, not spot stocks. This is a proxy estimate of sentiment for the underlying asset. Futures are not available for all Russian stocks. If there are no published positions for the instrument, the panel will show N/A. The exchange publishes data with a step of about 5 minutes, however, with free access to the API, historical snapshots of open interest are available with a delay. Crowd positioning is not an entry signal and does not guarantee profit. All trading decisions are made by the trader.
About the developer
Created by Musa Khunarikov — a practicing trader with 12 years of trading experience. He has 51 certificates from the Finam Training Center.
Support
30 days of free support after purchase. Fixes for confirmed bugs — within 48 hours.
