This is the profit stop.
Profit = 2 * ATR(20);
ApplyStop(stopTypeProfit, stopModePoint, Profit, 2);
This is the stop loss.
Loss = 1 * ATR(20);
ApplyStop(stopTypeLoss, stopModePoint, Loss, 2);
Thanks wysiwyg. Is there anyway that can be plotted on a chart?