mirror of
https://github.com/Ichinga-Samuel/aiomql.git
synced 2026-07-27 20:27:43 +00:00
587 B
587 B
simple_trader
aiomql.contrib.traders.simple_trader — Simple trader (with stop loss).
Overview
The SimpleTrader places trades with a stop loss and calculates volume based on
risk assessment via the RAM instance.
Classes
SimpleTrader
Places risk-managed trades with a stop loss.
Inherits from Trader.
place_trade(*, order_type, sl, parameters=None)
Places a market order with the given order_type and sl (stop loss). The volume
is calculated using the RAM instance based on the stop-loss distance.