Another good indicator of the hashrate over the longterm is the difficulty and how it retargets (every 2016 blocks)
We just had a drop of 7%, going over the last period. This was directly influenced by the BCH wars. A lot of hash was redirected and rented to try and push each sides agenda. I'm pretty sure it was a bigger impact in the last 2 days or so, but before that we were still on target for a reduction.
Now I think it will be a price induced drop over the next few weeks if this current dip lasts for the short or long term.
For the last month or so we have been keeping pretty much steady there is a
thread that has been documenting it pretty well.
For a more direct answer to OP. I would say that at a certain moment in time Hashrate and price are not affecting eachother. Hashrate is affected by price though, it just takes a few weeks to catch up with the retarget period. The short answer really is as price goes up more hardware becomes profitable and goes online, you also bring in new miners. As price drops you will see people/farms slowly dwindle in numbers down to those that are profitable or hobbyists.