I use a simple technique an that is i make protocols/rules for trading and before making a trade i make sure that i follow them and never trader beyond that rules. And this save me from risk taking. After every failure i eveluate my trade and strategy and after finding the reason of failure i update my trading rules.