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.

optInputParameters
 Post subject: optInputParameters Post rating: 0   New post Posted: Mon 20 Sep, 2010, 22:48 

User rating: -
Hello,

I need to ask you something..
I am creating custom indicator PAC (price action channel) and I need to have following optInputParameters in my indicator:..
int Period - period of bars for calculating the PAC values.
boolean Include_current_bar - if part of the perdiod should be also current_bar or not
Instrument - instrument from where the indicator takes the price bars for calculations
Unit - unit of the instrument
UnitCount - unitCount of the instrument..

It is really simple and I already wrote whole the indicator, but the problem what I am solving and why I need your help is, that the indicator is working when I am trying for example this:
to add indicator into into chart GBPUSD_1_Hour but as source data chart set instrument EURUSD and unit 30_Minutes.

So my indicator is working fine when you will try to add it into some chart and as source data chart you will use the same instrument and unit.
But when you want to see this PAC indicator with values of chart EURUSD drawn in chart GBPUSD it will be not working..

Any advice please?
Thank you



see the source code: https://files.lorencsoftware.cz/20000006 ... I_PAC.java


 
 Post subject: Re: optInputParameters Post rating: 0   New post Posted: Tue 21 Sep, 2010, 19:37 

User rating: -
Did somebody even read this post?
There's still no answer.


 
 Post subject: Re: optInputParameters Post rating: 0   New post Posted: Wed 22 Sep, 2010, 12:33 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hello,
Quote:
that the indicator is working when I am trying for example this:
to add indicator into into chart GBPUSD_1_Hour but as source data chart set instrument EURUSD and unit 30_Minutes.
Sorry, it's not allowed to access chart controls via an indicator. The one way to solves this problem is write a strategy, which will open a necessary chart and add this indicator.


 

Jump to:  

cron
  © 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