Attributes of Strategies, Indicators and Functions.

Overview






Functions
A function can be called from a function.
A function can be called from an indicator.
A function can be called from a strategy.
A function can receive multiple inputs of type bool, number, series and string.
A function returns one ‘result’ which may be a bool, a number, a series or a string.
A function may call another function.
A function may call an indicator.
A function cannot call a strategy.
A function cannot do ats commands.
A function cannot draw to a chart.
A function can write to the debug window.
A function can write to a file.


Indicators
An indicator can be called from a function.
An indicator can be called from an indicator.
An indicator can be called from a strategy.
An indicator can receive multiple inputs of types bool, number, series and string.
An indicator returns one or more line series defined in the ‘draw’ statement.
An indicator may call a function.
An indicator may call another indicator.
An indicator cannot call a strategy.
An indicator cannot do ats commands.
An indicator can draw to a chart.
An indicator can write to the debug window.
An indicator can write to a file.


Strategies
A strategy cannot be called from a function.
A strategy cannot be called from an indicator.
A strategy cannot be called from a strategy.
A strategy can receive multiple inputs of bool, number, series and string.
A strategy returns no results.
A strategy may call a function.
A strategy may call an indicator.
A strategy cannot call another strategy.
A strategy can do ats commands.
A strategy cannot draw lines to a chart, but can place trade related indicators.
A strategy can write to the debug window.
A strategy can write to a file.




Site Content
Home
What is CTL?
How CTL runs
>>Attributes of Strategies, Indicators and Functions

Extended CTL Features