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

2.1 KiB

# ScalpTrader

Table of Contents

ScalpTrader

class ScalpTrader(Trader)

Place trades and record them in the trade_record file. Places trade without stop_loss or take_profit.

place_trade

async def place_trade(*, order_type: OrderType, volume: float = None, parameters: dict = None)
``
Places a trade based on the order_type and volume. The volume is optional. If not provided, the minimum volume
for the symbol will be used. This trade is placed without a stop_loss or take_profit. The trade is recorded in the
trade_record file.

#### Parameters:
| Name | Type | Description |
| ---- | ---- | ----------- |
| `order_type` | OrderType | The order_type |
| `volume` | float | The volume to trade |
| `parameters` | dict | Parameters associated with the trade |