imwatsi / crypto-market-samples

A collection of sample Python scripts that one can incorporate or build upon when developing customized systems for trading cryptocurrency
MIT License
22 stars 15 forks source link

SL automatic with price #2

Open foudid opened 5 years ago

foudid commented 5 years ago

Hello ! Once again thanks for this script that I'm trying to adapt to my situation.

Do you know if we can add a condition to add a new SL if the price moves 0.5% or higher than add a new SL ? Thanks

imwatsi commented 5 years ago

Hi,

I'm glad you like the script. Sorry for the late reply, I'm extremely busy these days.

To answer your question, yes it's possible. You can have the first SL edited when the price moves X% in opposite direction, so it maintains its distance by "trailing" price movement.

I'll see if I can work on this soon and update the script with the feature.

I'll have more time to work on my open source projects soon and I have many new tools planned for release, as well as upgrades to existing ones.