Creating specific smart contract

Hi, I'm interested in writing a smart contract.

Here are the features I need to make:

  1. The contract will not allow to sell a number of tokens that exceeds some certain percentage of the total number of tokens on the wallet.
  2. You can buy tokens without restrictions.
  3. Wallet-to-wallet transfer
    It is also important that the “trade” button on poocoin does not turn red and is not blocked.
    I've written several variations of contracts, but they all still block the “trade” button.
    Is it possible to do that?