How to add on a chart an Indicator of an Indicator via API
xevious
Post subject: How to add on a chart an Indicator of an Indicator via API
Post rating: 0
Posted: Thu 22 Apr, 2021, 15:04
User rating: 0
Joined: Fri 11 Sep, 2015, 15:43 Posts: 8 Location: Italy, Roma
Hello, on JForex platform I can easily create an Indicator of an Indicator and add it on a chart (i.e. bollinger bands calculated over RSI values and displayed on RSI chart panel). I'd like to do the same in the onStart() method of a simple strategy, just to automatically see on the chart the indicators during backtesting. Could you please explain how to do it via API. I've tried to do it by setting RSI indicator as input of a bollinger bands indicator, but I got a StackOverflow exception. Is there any code snippet with a such example?
Thanks in advance.
Regards, Marco
API Support
Post subject: Re: How to add on a chart an Indicator of an Indicator via API