fxcodebase-backup

Deterministic Boltzmann Approximation

Source: https://fxcodebase.com/code/viewtopic.php?f=17&t=75788
Forum: 17 · Topic 75788 · 1 post(s)


Deterministic Boltzmann Approximation

Apprentice · Wed Apr 02, 2025 11:03 am

EURUSD M1 (04-02-2025 1802).png

Deterministic Boltzmann-like Energy Indicator (No randomness)

Description: This Lua indicator for FXCM Trading Station 2 calculates a deterministic “Energy” value inspired by Boltzmann Machines. It provides clear signals regarding trend strength and direction based purely on momentum and volatility, without any random or stochastic elements.

How it works: The indicator calculates two main components:

  1. Momentum: Difference between the current closing price and the closing price from a defined lookback period.
  2. Volatility: Average absolute price change over the same lookback period.

Using these two components, the indicator calculates the “Energy,” which indicates how strongly price is trending:

Code: Select all Energy = Momentum / Volatility

Interpretation of Energy Values:

Indicator Parameters:

Visual Settings:

Deterministic Boltzmann Approximation.lua