Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to unset stop loss #64

Open
vism211 opened this issue Jan 6, 2025 · 0 comments
Open

unable to unset stop loss #64

vism211 opened this issue Jan 6, 2025 · 0 comments

Comments

@vism211
Copy link

vism211 commented Jan 6, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant