Bardo.Examples.Applications.Fx.FxActuator (Bardo v0.1.0)
View SourceActuator implementation for the Forex (FX) trading application.
This module provides actuators that agents can use to interact with the Forex trading environment, primarily for executing trades.
Summary
Functions
Handle a list of incoming signals from the neural network.
Initialize a new actuator for FX trading.
Cleanup resources when terminating.
Creates a trade actuator configuration.
Functions
Handle a list of incoming signals from the neural network.
This function:
- Converts neural network output to a trade decision
- Sends the trade decision to the FX simulator
- Processes responses (fitness, account updates)
Initialize a new actuator for FX trading.
Parameters:
- id: Actuator ID
- actuator_type: :trade
- fanin: Number of input elements
- cortex_pid: PID of the cortex process
- scape_pid: PID of the scape process
- agent_id: ID of the agent
Cleanup resources when terminating.
Creates a trade actuator configuration.
Parameters
fanin
- The number of decision signal inputs (typically 1)threshold
- The threshold for trade decision boundariescortex_id
- The ID of the cortex this actuator is connected toscape_name
- The name of the scape this actuator will control
Returns
- An actuator specification map