So now we've called Trade_BUY, and have enough parameters to pass to SendOrder(). We know our stop loss, and we have a vague idea about our target (take-profit) price. But first, let's pass through one more filter:
if (target > (Bid + 15 * x * Point) && IsTradeAllowed())
We're...