Skip to main content

Formula

Use math formulas to modify and calculate strategy values in real time.

Purpose

The Formula block allows you to calculate and assign values to variables using basic arithmetic operations like addition, subtraction, multiplication, and division.

How It Works

  • Use math operations (+, -, *, /) to calculate values.

  • Assign the result to a variable for further use.

  • Can combine multiple inputs, indicators, or trade data.

Use Case

  • Calculate moving averages or other custom indicators.

  • Adjust risk levels dynamically based on account balance.

  • Create custom price calculations for strategy refinement.

⚠ Note: Keep formulas simple to maintain EA efficiency.

⚠ Note: Formula blocks have adjustable value fields. An empty field in "Adjust value" and/or "Adjust result" means the value in that field is interpreted as 0. Be careful if you use a * (multiplication) operation, not to leave the fields blank, because it will result in a 0 outcome for your formula.

Did this answer your question?