Forum

The Operator "return"

Hello, I need some help understanding the use of "return," or more broadly, how to terminate the current function and make the EA execute the next one. The only thing I understand about "return" is that it stops whatever function the EA is currently executing and restarts from the very beginning (eg

Basic EA, stop loss/ Take Profit not triggered

Hi everyone, I just modified my first EA from a tutorial. Everything went smoothly, it compiled with no errors, and it places trades! (yay!) However the STP and TKP values are never triggered in the strategy tester (which means that all trades are closed at the end of the experiment). I've looked