Bardo.Examples.Applications.Fx.Fx (Bardo v0.1.0)
View SourceForex (FX) trading simulation environment.
This module implements a forex trading simulator that allows agents to trade currency pairs based on historical price data. It behaves as a private scape in the Bardo system.
Summary
Functions
Handle an actuator request from an agent.
Handle a new agent entering the private scape.
Initialize the private scape for FX trading with provided parameters.
Handle an agent leaving the private scape.
Handle a sensor request from an agent.
Advance the simulation by one step.
Clean up resources when terminating the scape.
Functions
Handle an actuator request from an agent.
Required by the PrivateScape behavior.
Handle a new agent entering the private scape.
Creates a new trading account for the agent.
Initialize the private scape for FX trading with provided parameters.
Required by the PrivateScape behavior.
Handle an agent leaving the private scape.
Closes any open positions and removes the agent's account.
Handle a sensor request from an agent.
Required by the PrivateScape behavior.
Advance the simulation by one step.
Updates all accounts and moves to the next price point.
Clean up resources when terminating the scape.
Required by the PrivateScape behavior.