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 Script | Scalp All

MetaTrader Experts, Indicators, Scripts and Libraries

Two variations are available;

[ScalpAll]

  • this script opens random positions with multiple symbols on marketwatch.
  • take-profit and stop-loss levels are calculated by multiplying current spread with "Take Profit Ratio" and "Stop Loss Ratio" respectively.
  • count of trades to be opened can be limited by "Maximum Trades".
  • only symbols having spread below "Maximum Spread" are considered.

[ScalpRandom]

  • this script opens a random position with single symbol that is selected randomly on marketwatch.
  • take-profit and stop-loss levels are calculated in same way with ScalpAll. maximum spread limitor is also available.

[CloseScalps]

  • this script closes scalping positions tagged with magic number 999.
  • only positions in profit can be closed by setting relevant input to true.
27162