You have put your backtest code in the indicator code editor, not the probacktest/proorder editor (hint 1: the editor doesn’t like the word “buy” just like the indicator editor would not like it; and hint 2: error window title is “erreur dans la programmation de l’indicateur”, while probacktest error window title would just be “erreur”)
PS: it’s a double post but we’ll leave it here… it would have been better to wait for an answer in the topic where the question was already asked, thank you
1 user thanked author for this post.