Whew, long slog writing the Open_Position function. Handles a lot, such as computing risk, allowing for open P/L when adjusting in the same direction, casting orders as Market, Stop, or Limit (Long or Short), and a couple other tricks. There are doubtless typos galore so I won't share the...