Hi, I get an error: '{' - function definition unexpected datetime currentDay = TimeCurrent (); { if (currentDay != lastDay) // Update maximum drawdown if necessary } I have no clue what I am doing wrong, it's about the first bracket that the system just does not want to do. Please