Unrelated to TradePriceClose, your if() condition is never true. Read here why:
https://manual.zorro-project.com/comparisions.htm