Skip to content

Trailing Stop Loss Thresholds #10

Closed
@desoss

Description

@desoss

Hello,
I am trying to configure a trailing stop loss in MetaAPI such that when the price moves to my target direction, the stop loss moves to breakeven and remains there.

However, based on the current configuration, it seems that the stop loss is adjusting multiple times.

Here is my current configuration for the trailing stop loss:

{
	threshold: {
		thresholds: [
			{
				threshold: 1,
				stopLoss: 1
			}
		],
		units: Units.RELATIVE_PRICE,
		stopPriceBase: StopPriceBases.CURRENT_PRICE
	}
}

My expectation is for the stop loss to move to breakeven only after the price moves 1 "relative price" in my target direction and to stay at breakeven. However, it seems that the stop loss is being adjusted multiple times, not just when it's moved to breakeven.

Could you please confirm if this is the intended behaviour and if there’s a way to configure it so that the stop loss only moves to breakeven after a 1 "relative price" move, without further adjustments?

Thank you for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions