init
What is it?
Syntax
init = () => {
// one-time setup logic here
}What Happens in Init
Example
//@version=1
// This is a template for a custom indicator.
// You can use this as a starting point to create your own custom indicator.
// This is the setup function.
// Here you can define the input parameters for the indicator.
init = () => {
input.bool('show draws', true, 'show');
input.bool('extend fvg', true, 'extend');
}
Why It Matters
Last updated