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.
[x] There is an analytics class that has the logic to buy/sell cryptos.
[x] STOP LOSS function is implemented.
[x] We need to be able to specify different %s or numeric difference.
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.