Queue Trees / Simple Queues / Fair Usage / Layer 7 Questions

Hello, some advise please regarding Queues and Queue Trees.

Currently was have over 200 simple queues for our customers, I have been reading the wiki and watching the tiktube and I think it would be better to move over to queue trees and use less power on the gateway.
However I have a few questions if someone could help me out…

1. We would like to queue tree and PCQ to control customers speeds to which are 1500k / 512k.

Which I think this wiki is about: http://wiki.mikrotik.com/wiki/PCQ_Examples

With the simple queues I was able to FUP the customers who use a lot of bandwidth over the day
Example: “:local traffic
/queue simple
:for i from=13 to=250 do={
:set traffic [get [find target-addresses=“192.168.0.$i/32”] total-bytes]
:if ($traffic > 300000000) do={
set [find target-addresses=“192.168.0.$i/32”] max-limit=512000/512000
:if ($traffic > 600000000) do={
set [find target-addresses=“192.168.0.$i/32”] max-limit=306000/256000
:if ($traffic > 1000000000) do={
set [find target-addresses=“192.168.0.$i/32”] max-limit=128k/128k

Would this still be possible using queue trees? If so can any show me how?

2. We would also like to use the Basic traffic shaping based on layer-7 protocols as described in the wiki.
Wiki page: http://wiki.mikrotik.com/wiki/Basic_traffic_shaping_based_on_layer-7_protocols
How would you add these two things together?

Any information about this would be well helpful

Regards
Darren

You could use L7 filters to mark connections in Mangle.
After the connection was marked in Magle you must mark packets.
Then, in the queue tree, you assign a specifica packet mark to a queue.
In this case, the queue receive only packets identified by the L7 filter.