Skip to main content

What is a Variable?

Track, store, and modify data dynamically for advanced strategies.

Updated over 9 months ago

Purpose

A Variable is a storage unit inside your EA that holds data, such as numbers or true/false values, which can be updated dynamically while the strategy runs.

How It Works

  • Variables store information (e.g., trade count, indicator values).

  • They can be modified during execution based on logic.

  • Can hold data types like double (numbers), boolean (true/false), and strings.

Use Case

  • Track the number of open trades in real time.

  • Store price levels for dynamic stop-loss adjustments.

  • Create advanced conditions based on past price movements.

⚠ Note: Unlike Inputs, variables can change while the EA is running.

Did this answer your question?