Hi all, ha yeah one more new coders.. (code it at bottom) What was mt4 expecting on 145? Why is 104 unbalanced. I thought I did defind GetTotalProfits on line 72. I thought I did defind CloseAllTrades on line 72. Thanks for the help! #property strict