Files
2026-02-21 07:43:33 +01:00

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.