Files
aiomql/docs/contrib/traders/simple_trader.md
T
Ichinga Samuel 91a09a8ab9 v4
2024-11-11 16:54:51 +01:00

1.6 KiB

# SimpleTrader

Table of Contents

SimpleTrader

class SimpleTrader(Trader)

A simple trader that places trades.

place_trade

async def place_trade(*, order_type: OrderType, sl: float, parameters: dict = None)

Places a trade based on the order_type and a given stop_loss. The volume is based on the amount to risk which is calculated using the Risk Assessment Management instance.

Parameters:

Name Type Description
order_type OrderType The order_type
sl float The stop_loss
parameters dict Parameters associated with the trade