Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

Gaussian Auto EA - expert for MetaTrader 5

Views:
31
Rating:
(1)
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Gaussian Auto EA — Band Breakout Strategy with R-Multiple Trailing Stop

## Overview
Gaussian Auto EA is a trend-following/breakout expert advisor based on a Gaussian-filtered price channel with ATR-scaled bands. It enters on candle closes outside the channel and manages risk with a fixed R-multiple target and a dynamic trailing stop.

## Strategy Logic- Gaussian Middle Line: Exponential smoothing of close prices (Ehlers-style Gaussian filter approximation) with period InpPeriod.
- Bands: Middle ± (ATR(Period) × InpMultiplier).
- BUY signal: Candle closes above the upper band and opens below it.
- SELL signal: Candle closes below the lower band and opens above it.
- Optional confirmation: Requires the next candle to also close beyond the band.
- Stop Loss: Outer band (opposite side) or Gaussian middle line — user selectable.
- Take Profit: Entry ± (SL distance × InpRR).
- Trailing: Activates once profit reaches InpTrailingActivationRR × R, then trails the SL along the opposite band/middle line.

## Features
- Risk-based position sizing (% of balance per trade).
- Configurable Risk:Reward ratio.
- Two SL modes (outer band/middle line).
- Optional second-candle confirmation.
- R-multiple trailing stop with per-ticket state memory.
- Single-position per symbol/magic.
- Works on any symbol & timeframe.
- Fully MQL5-native (uses indicator handles, no MQL4 legacy functions).

## Inputs
- InpRisk (default 1.0): Risk % of balance per trade.
- InpRR (default 2.0): Reward:Risk ratio.
- InpSLType (default Outer Band): SL placement mode.
- InpMagic (default 999): Magic number.
- InpRequireSecondCandle (default false): Require follow-through candle.
- InpUseTrailing (default true): Enable trailing.
- InpTrailingActivationRR (default 1.0): Activate trailing at this R.
- InpPeriod (default 20): Gaussian / ATR period.
- InpMultiplier (default 2.0): Band width multiplier.
- InpVerbose (default false): Print detailed debug info.


## Recommended Settings
- Timeframe: H1 / H4
- Symbols: Major FX pairs, indices with clear trends
- Risk: 0.5–1% per trade (default 1%)
- RR: 1.5–3.0

## How to Install
1. Copy the .mq5 file to MQL5/Experts/.
2. Compile in MetaEditor (F7).
3. Attach to a chart, enable AutoTrading.
4. Adjust inputs and run Strategy Tester first.


## Disclaimer
For educational purposes. Test thoroughly in the Strategy Tester before any live deployment. No guarantee of profitability.
RH Trade Panel - Risk-Based One-Click Trading with Session Tracker RH Trade Panel - Risk-Based One-Click Trading with Session Tracker

Manual one-click trading panel for MetaTrader 5. Calculates the lot size from your risk % and stop loss (always rounded down), places SL/TP by pips and reward:risk, and manages trades with breakeven, trailing stop and Close All (only its own trades). Shows balance, equity, spread, floating P/L and an Asia / London / New York session tracker. No trading strategy inside: trades open only when you click BUY or SELL.

Tick-Only Spread Telemetry, Swap Decoder and 1-Lot Execution Cost Audit Tick-Only Spread Telemetry, Swap Decoder and 1-Lot Execution Cost Audit

Zero-DLL on-chart execution monitor tracking genuine tick-only Min/Avg/Max spread, Spread-to-ATR ratio, decoded broker swap modes, 3x rollover day, and 1.0-lot all-in cost.

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

MACD Signals MACD Signals

Indicator edition for new platform.