Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | FX Fish 2MA

Idea by: Scriptor

MQL5 code author: barabashkakvn

Arrays are averaged using the functions of the built-in MovingAverages.mqh library.

The indicator consists of three indicator constructions:

  • Fish, drawing style DRAW_COLOR_HISTOGRAM - a histogram of colored bars. The main indicator buffer calculated by one of Price Constants;
  • Fish Aver, drawing style DRAW_LINE - a line with the specified color. Contains the Fish array, which is smoothed using simple averaging with the MA1period period;
  • Fish Aver Aver, drawing style DRAW_LINE - a line with the specified color. Contains the Fish aver array, which is smoothed using linear weighted averaging with the MA2period period;

Buy signals - Fish is below zero and is crossed by Fish Aver.

Sell signals - Fish is above zero and is crossed by Fish Aver.

Fish Aver Aver can be used either for a more conservative entry or as a position exit signal.

MetaTrader Experts, Indicators, Scripts and Libraries

21767