Anatomy Of A Script Flashcards
1
Q
What are the steps of the anatomy of a script?
A
- Heading comment.
- Annotation function (Indicator, Strategy or Library).
- Get user input.
- Perform calculation and/or analysis.
- Plot outputs to the chart.
- Trigger any alerts / manage strategy trades.
2
Q
What are some examples of heading comments?
A
- Script version & last modified date.
- Author (Name/Alias).
3
Q
What are some examples of annotation functions?
A
- Indicator()
- Strategy()
- Library()
4
Q
What are some examples of user inputs?
A
- Allow for customization of your script (e.g. default/Max/min values).
5
Q
What are some examples of calculation & analysis?
A
- Detect patterns/setups/manage trades.
6
Q
What are some examples of plot outputs & trigger alerts?
A
- Draw results of your analysis to the chart.
- Trigger any alert conditions.