Hi, I want to make Binance Multi-Asset Trading script.




1. For coin spot or futures

2. Enter only the 10 assets (or Rank Top N) with the highest transaction amount in the last hour (When the conditions below are met)

3. The current price is above the 5-day moving average

4. When the current price is higher than the highest price in the last 4 hours

5. Buy if the above conditions are met (sell short if the opposite conditions are met)

6. Exit conditions apply logic to held items





I want to create a strategy with the simple conditions above.
It is a bit difficult to select the top 10 stocks with No.2 condition.



Can you show me some simple pseudo code that
dynamically checks the asset conditions to enter?




Last edited by recko; 09/05/23 04:20.