Skip to main content

'On/Off' Block

Easily enable or disable trading rules directly from inputs.

Updated over 4 months ago

Purpose

The On/Off block allows you to enable or disable parts of your EA from the MetaTrader 5 input menu, making strategies more flexible.

How It Works

  • Assign a true/false input to toggle execution.

  • If set to true, connected blocks execute; if false, they are skipped.

  • Can be used to activate/deactivate specific EA functions.

Use Case

  • Turn strategies or trade filters on/off without modifying the EA.

  • Quickly test different trading conditions without rebuilding the strategy.

  • Add emergency kill switches for risk management.

⚠ Note: Changes only take effect when the EA restarts or reloads.

Did this answer your question?