Help setting the code for buying any coin which is below its 24 hrs lowest value

Hey all,

Could you help me setting the code for buying any coin which is below its 24 hrs

Thanks

Basically the working order would go as the following

  1. Check any coin which has dropped to 24 hr lowest value (If coin current live price is the lowest price of the coin in the last 24 hrs)
  2. Wait 5 min and check if value dropped
  3. Buy that coin (x% of my wallet)
  4. If prices drop 1%within 5 minutes sell that coin (drop from entry price)
  5. If price rises 10% sell that coin

Thanks

I would really appreciate if you could just give me a tip on this

Seems a strategy implementation, not API related question?