p2p shape

i want to limit all-p2p in my network to 50 Mbps download and 50 Mbps upload. is this rule “correct” for my situation:
name=“queue1” dst-address=0.0.0.0/0 interface=all parent=none
priority=8 queue=ethernet-default/ethernet-default
limit-at=51200000/51200000 max-limit=51200000/51200000
total-queue=default p2p=all-p2p
and how i can disable it automaticly at night (23:00-07:00) ?



add name="Peer to Peer 50MB" target-addresses=0.0.0.0/0 dst-address=0.0.0.0/0 interface=all parent=none direction=both priority=8 queue=default/default limit-at=0/0 max-limit=51200000/51200000 total-queue=default time=7h-23h,sun,mon,tue,wed,thu,fri,sat p2p=all-p2p

Here you limit p2p at a maximun of 50M starting 07:00 am to 23:00 pm all the week

where i can paste this code? for what version it is written? i have 2.9.6.when i paste it in queue simple os returns error:
[admin@MikroTik] queue simple> add name=“Peer to Peer 50MB” target-addresses
=0.0.0.0/0 dst-address=0.0.0.0/0 interface=all parent=none direction=both pr
iority=8 queue=default/default limit-at=0/0 max-limit=51200000/51200000 tota
l-queue=default time=7h-23h,sun,mon,tue,wed,thu,fri,sat p2p=all-p2p
no such argument (direction)

2.9.10