Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

How to add on a chart an Indicator of an Indicator via API
 Post subject: How to add on a chart an Indicator of an Indicator via API Post rating: 0   New post Posted: Thu 22 Apr, 2021, 15:04 
User avatar

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


 
 Post subject: Re: How to add on a chart an Indicator of an Indicator via API Post rating: 0   New post Posted: Thu 15 Jul, 2021, 14:21 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6115
Greetings.

It is possible only using custom indicator for now.
See https://www.dukascopy.com/wiki/en/devel ... -indicator

Regards.


 

Jump to:  

cron
  © 1998-2011 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com