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

ASK: Why about modify positions? #23

Closed
DiMiTriFrog opened this issue Jul 20, 2023 · 2 comments
Closed

ASK: Why about modify positions? #23

DiMiTriFrog opened this issue Jul 20, 2023 · 2 comments

Comments

@DiMiTriFrog
Copy link

it's posible to implement smem function to modify the current position and change stoploss and take profit?
Like trailing stop

@traderpedroso
Copy link
Member

it's posible to implement smem function to modify the current position and change stoploss and take profit?
Like trailing stop

In previous versions, we had the option to change 'stop', but the FIX API was not exactly designed for this, as described in the documentation, hence it wasn't reliable to maintain stability and functionality, so it was removed. The best option is for your code to send a cancellation request by order ID, as per the README documentation, or to cancel all if you're managing a single order per asset.

Given these limitations, you will need to construct your stop loss rules according to your requirements. We do not plan to reimplement this feature. If you require a system with full functionality, you won't be able to use the FIX API, but rather the REST API, in this case, the cTrader's Open API. The FIX API is really exclusive for high-frequency trading and instant execution, unlike the REST API, which is significantly slower.

@DiMiTriFrog
Copy link
Author

Thanks for de clarify! You have realy good libs.

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

2 participants