The basic thing is that you have to make most of these rules for yourself and they form part of your trading plan. For instance what time frame you use to trade, what lot size you risk per trade, what signals you consider as the perfect entry signal. Then you have to discipline yourself to make sure that you do not violate these rules that you have set down for yourself.