Will I get in trouble for jerking off having my windows open.

Depends on the trajectory.

Many including professionals were known to have missed open goals.
 
If you really don't care, what are you getting out of asking? Inspiration?
 
I once knew a woman who liked to masturbate on her balcony while watching the traffic and people down below. She wrote a poem about it.
 
If you're on the ground floor, maybe.
If people have to make an effort to see you, probably not.
If you do it on the balcony in plain view, you will likely raise some eyebrows. Especially if you shoot your load over the side.
 
You would be surprise at all the stuff that goes on downtown.
Some people don't bother closing their blinds or drapes or have NONE at all and don't care that they are putting on a single, duo or threesome show.

Space, in your case if you do it often enough around the same time each day, you might collect a following of voyeurs with binoculars watching... waiting...