*** THIS IS JUST AN EXAMPLE OF STRATEGY RISK MANAGEMENT CODE IMPLEMENTATION *** For my own future reference, and for anyone else who needs it. Pine script strategy code can be confusing and awkward, so I finally sat down and had a little think about it and put something together that actually works (i think) Code is commented where I felt might be necessary (pretty much everything..) and Using a Stop Loss Strategy with Forex Trading | Market ... Jan 31, 2017 · Using a Stop Loss Strategy with Forex Trading. To calculate your VAR, simply multiply the stop loss with your pip value. For example, let us go back to our first EUR/USD trade, where we set a 20 pips stop (buy at 1.4000, S/L at 1.3980). If you trade one lot, then every pip is worth $10. Welcome to Market Traders Institute Support.