# FeatureRiskPerTradeDTO

DTO for risk per trade feature (copier/account) (PRO)

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**absoluteRisk** | **number** | Defines the risk per trade as a fixed absolute value (e.g., 50 USD). If set to 0, this mode is disabled. | [optional] [default to 0]
**aggregateRiskPerSymbol** | **boolean** | If enabled, aggregates risk calculation across all open positions for the same symbol. When true and multiple positions exist for a symbol (e.g., XAUUSD), the total risk will be calculated by summing all open positions for that symbol before checking against the risk limits. When false, each position is evaluated independently. | [optional] [default to false]
**autoCloseOnRiskThresholdReached** | **boolean** | Only applies when \&#39;correctLotSizeBasedOnTheStopLoss\&#39; is enabled. If set to true (default), the system will automatically close the position when the defined risk threshold is reached, acting as a hard risk limit supervisor. If set to false, the system will NOT auto-close the position when the risk threshold is reached, allowing the stop loss to execute naturally. Use this option when you want precise lot sizing based on SL but prefer the trade to hit the SL rather than being closed by the risk supervisor. Note: If the position has no stop loss set, the system will still auto-close regardless of this setting. | [optional] [default to true]
**correctLotSizeBasedOnTheStopLoss** | **boolean** | If enabled, adjusts the lot size automatically based on the distance to the stop loss (SL). Ensures that the actual monetary risk per trade aligns with the configured percentage or absolute risk. This calculation only applies when a stop loss is defined on the master trade. Only valid for copier. | [optional] [default to false]
**relativeRisk** | **number** | Defines the risk per trade as a percentage of the account balance. If set to 0, this mode is disabled. | [optional] [default to 0]
**symbolsConfiguration** | [**{ [key: string]: FeatureRiskPerTradeDTO; }**](FeatureRiskPerTradeDTO.md) | Defines risk per trader per symbol. Symbol configuration has priority over the general configuration. | [optional] [default to undefined]
**tickValue** | **number** | Monetary value of one point (smallest price increment) per 1.0 lot, already expressed in the account currency. | [optional] [default to 0]
**tickValueAutomaticAdjustement** | **boolean** | Enable automatic detection of the point-value in account currency from live trades. When true, the system overrides &#x60;tickValue&#x60; with the detected value at runtime. | [optional] [default to true]

## Example

```typescript
import { FeatureRiskPerTradeDTO } from 'js-metacopier-api';

const instance: FeatureRiskPerTradeDTO = {
    absoluteRisk,
    aggregateRiskPerSymbol,
    autoCloseOnRiskThresholdReached,
    correctLotSizeBasedOnTheStopLoss,
    relativeRisk,
    symbolsConfiguration,
    tickValue,
    tickValueAutomaticAdjustement,
};
```

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
