Skip to content

unable to unset stop loss #64

Open
@vism211

Description

@vism211

I'm trying to implement a method to unset SL but i receive back order_error "1" / order_return_message "Error in modify").

This is what i'm doing: success = MT.Set_sl_and_tp_for_position( ticket = ticket ,stoploss = 0 ,takeprofit = position['take_profit'] ) where position['take_profit'] is the actual take profit already set on the position.

Testing with stoploss values grater than actual entry (position is a sell), succeeds

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