The “Exit Out of This Function” action does different things based on where it is used:
- (Quagensia® N Edition Strategies Only) If called in the “When Bar Updates” section of a Quagensia N Edition Strategy, it will cause your algo logic to stop executing at the current line of code for the current tick or bar of price data for which the “When Bar Updates” code is being called and therefore any code that is beneath the current line of code in the “When Bar Updates” section will not be executed for the current tick or bar of price data.
- (Quagensia N Edition Functions Only) If used in a Quagensia N Edition Function that returns an expression and the function’s “Function Logic” section will be wrapped in an actual function definition in the code output, then the expression in the “Exit Function With This Return Value” will be resolved to a value that is returned from the actual function definition in the code output, and therefore any code that is beneath the current line of code in the function will not be executed.
- (Quagensia N Edition Functions Only) If used in a Quagensia N Edition Function that does not return an expression and the function’s “Function Logic” section will be wrapped in an actual function definition in the code output, then the execution of the code will exit the function at the current line of code and therefore any code that is beneath the current line of code in the function will not be executed.
- (Functions Only) If used in a Quagensia Function that returns an expression and the function’s “Function Logic” section will be inlined, or inserted, into the code output, instead of an actual function definition being created in code and then called from that location in the code output, then the expression in the “Exit Function With This Return Value” field simply gets inlined into the code at the current location.