Navigation: Realtest Script Language > Syntax Element Details >

Arg1-Arg9

 

 

 

 

Category

Library Section

Description

Special variables that can be used within a Library formula to access the arguments that were passed to it

Notes

Library items can be referenced either with or without arguments.

When referenced with arguments (so that the reference looks like a function call), the item formula can obtain the values passed in as arguments by using these numbered variables. Arg1 is the first (leftmost) argument, Arg2 the second one, and so on.

Library function arguments can be either numbers or strings (or formulas that evaluate to either).

Library arguments are "passed by value" (not "by reference").

For example myLibFunc(close) would first evaluate "close" to determine the current close, then pass it to the function.

This implies that library functions that use arg1-arg9 should not attempt to pass these along to a multi-bar function, refer to them with a bar offset, etc. A that point they are constants, not arrays.

 

 

 

 

Copyright © 2020-2024 Systematic Solutions, LLC