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.

Adding custom indicator to sub panel
 Post subject: Adding custom indicator to sub panel Post rating: 0   New post Posted: Thu 05 Jul, 2012, 13:34 

User rating: 0
Joined: Thu 05 Jul, 2012, 13:29
Posts: 2
I am designing a custom indicator (with a -1 to 1 range) but when I am trying to add this to the chart it only shows up on the main bar chart and not in a separate panel (like how the RSI indicator is represented) Naturally, this is not feasible as the ranges of this indicator are different from the bid/ask.

I have tried using:
- chart.addSubIndicator(1, indicator) and
- chart.addSubIndicator(indicator)

...but unfortunately the indicator does not show up, unless I add it to the main chart by using chart.addIndicator(indicator).

What am I doing wrong and how can I make this work?

Thanks in advance!


 
 Post subject: Re: Adding custom indicator to sub panel Post rating: 0   New post Posted: Thu 05 Jul, 2012, 21:47 
User avatar

User rating: 94
Joined: Mon 06 Feb, 2012, 12:22
Posts: 357
Location: Portugal, Castelo Branco
Hi raiden:

See https://www.dukascopy.com/wiki/#Indicato ... icatorInfo.

Maybe you have set to true the "overChart" parameter.

I hope that helps

Trade well and prospers in your way.

JL


 
 Post subject: Re: Adding custom indicator to sub panel Post rating: 0   New post Posted: Fri 06 Jul, 2012, 08:30 

User rating: 0
Joined: Thu 05 Jul, 2012, 13:29
Posts: 2
JL,

Thanks a lot, this is exactly what I was looking for! A little ashamed that my searches did not reveal this info.

Cheers,

Raiden.


 

Jump to:  

  © 1998-2025 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