An example might help?
Let's say you have a $500 account and have decided to risk 1% per trade (I know you said "1%-2%" but I'm deliberately taking the lower figure and I advise you do the same at least for your first few months until you're able to judge by results and work out your expectancy).
Let's say you want to enter a trade on EUR/USD. So, your risk-value for the trade is going to be $5, because that's 1% of your account.
The actual pip value of EUR/USD is $10 per pip per full lot (and that never changes - regardless of your own account-size, leverage and position-size).
Now you look at the support/resistance and determine where your stop-loss (at least your "initial stop-loss") is going - and you're quite right that above resistance for a short trade and below support for a long trade are suitable places.
Let's say, for our example, that that's 20 pips away from your entry.
That means you want 20 pips to represent $5 risk, which works out at $0.25 per pip (that's just 5 divided by 20).
Now you have to determine your position-size by comparing the
fixed pip value per lot ($10) with the pip value
you want ($0.25).
As you can see, one is 40 times the size of the other, so that means you want 1/40th of a full lot.
So your appropriate position-size is 2.5
micro-lots (because a full lot is 10
mini-lots, which is 100
micro-lots).
If you were trading with only a 10-pip stop-loss (probably not recommended), your position-size would be 5 micro-lots instead; if you were trading with a 40-pip stop loss, it would be 1.25 micro-lots instead. Work these two examples out for yourself and see if I've got them right.
None of that calculation depends on your leverage.
Does that all make sense?
You need to be
very familiar with how to work these out
before you start trading.
The normal way to gain that familiarity with it is by using a demo account. But if you're going to start trading with a real-money account instead (and I do see that for some people that's preferable), then at least make sure you understand really clearly how to work it out first!).