Deterministic Boltzmann Approximation

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Deterministic Boltzmann Approximation

Postby 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:

  • Positive Energy: Indicates a strong upward market trend.
  • Negative Energy: Indicates a strong downward market trend.
  • Energy near zero: Indicates weak or sideways market movements.

Indicator Parameters:

  • Lookback Period: Number of bars used to calculate momentum and volatility (default: 14, recommended range: 5-30).

Visual Settings:

  • Positive Energy Color: Green bars indicate a bullish or upward trend.
  • Negative Energy Color: Red bars indicate a bearish or downward trend.

Deterministic Boltzmann Approximation.lua
(6.05 KiB) Downloaded 297 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 38821
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Return to Custom Indicators

Who is online

Users browsing this forum: Google [Bot] and 104 guests