is there any sample script that shows and explains how to add an indicator into a strategy and how to access some of its values ? I am aware of AddChartIndicator but this is only for drawing purposes as far as I know, please correct me if I'm wrong. What I need is accessing values of the indicator and use them for my strategy logic.
Please point me to the right direction. Thank you.
Comment