TrailingStop versus Stop Loss

 
Hi Everyone,

First post here so be gentle. I've been looking at FXGame recently but in the last week have come over to MetaTrader to have a look around.

I've created the EA below, but, here's my problem.

A ticket is created, after which a trailing stop is added. Trailing Stops only come into effect if the OrderStopLoss()<Bid-Point*TrailingStop.

However, if an OP_Buy is opened and the market immediately goes down, the trailing stop doesn't come into effect. Why?

Any answers greatly appreciated.
Files:
ea.txt  5 kb
Reason: