rxmxn / pycoin

0 stars 0 forks source link

Buy/Sell logic #6

Closed rxmxn closed 4 years ago

rxmxn commented 4 years ago

Create class to handle the logic to buy and sell crypto currencies based on the input.

Create a STOP LOSS, i.e. set a % that you are comfortable selling after the trending of the currency is down. Eg, say that you have one currency with a current value of $10 and you set the STOP LOSS to 0.5%, then the lower limit will be 10-0.05=9.5. The currency start increasing and reach 15, the lower limit would then be 15-(15*0.5/100). If the value goes up, the lower limit goes up as well, but if it goes down, it will stay the same. If the value of the currency goes below that limit, the system sells.

rxmxn commented 4 years ago

Querying MongoDB: https://www.analyticsvidhya.com/blog/2020/08/query-a-mongodb-database-using-pymongo/