Compile logCompiled
MetaEditor build 2425 · MT4 · 1 Dec 2026, 10:22 UTCcompiling FXN_RsiReversion.mq4✓ Result: 0 errors, 0 warnings, 3.9 soutput FXN_RsiReversion.ex4 · 25 KBsha256 081e31132b6e5ba2…9849a099
Files version 1.0
| File | Lines | Size |
|---|---|---|
| FXN_RsiReversion.mq4 | 525 | 18 KB |
| FXN_RsiReversion.ex4 compiled by the Lab | – | 25 KB |
FXN_RsiReversion.mq4525 lines
//+------------------------------------------------------------------+//| FXN_RsiReversion.mq4 |//| FXNook Lab Hub starter library - MIT licence |//| https://lab.fxnook.com/hub |//+------------------------------------------------------------------+#property copyright "FXNook Lab (MIT licence)"#property link "https://lab.fxnook.com/hub"#property version "1.00"#property description "RSI mean reversion with a 200 EMA trend filter; exits when RSI crosses back over a mid level, at the ATR stop or after max bars in trade."#property strictsinput string InpSep1 = ""; // ===== RSI and trend =====input int InpRsiPeriod = 2; // RSI periodinput double InpOversold = 10.0; // Oversold levelinput double InpOverbought = 90.0; // Overbought levelinput double InpExitLevel = 50.0; // RSI exit levelinput int InpTrendPeriod = 200; // Trend EMA periodsinput string InpSep2 = ""; // ===== Stop and time limit =====input int InpAtrPeriod = 14; // ATR periodinput double InpStopAtrMult = 2.5; // Stop loss (x ATR)input int InpMaxBarsInTrade = 10; // Max bars in tradesinput string InpSep3 = ""; // ===== Lot size and risk =====input bool InpUseRiskPercent = true; // Use risk % sizinginput double InpRiskPercent = 1.0; // Risk per trade (% of balance)input double InpFixedLot = 0.10; // Fixed lotsinput string InpSep4 = ""; // ===== Orders and filters =====input int InpMagic = 410108; // Magic numberinput int InpMaxSpreadPoints = 30; // Max spread (points)input int InpSlippagePoints = 10; // Max slippage (points)input string InpOrderComment = "FXN RsiReversion"; // Order commentsinput string InpSep5 = ""; // ===== Trading hours (server time) =====input bool InpUseTradingHours = false; // Use trading hoursinput int InpStartHour = 7; // Start hour (0-23)input int InpEndHour = 20; // End hour (0-23)//--- framework stateSign in to read all the code and download it
It is free. A free account lets you see every line, copy it, download the source and open a copy in your Lab. The compiled file can be downloaded without an account.