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.

When does setInputParameter() being called?
 Post subject: When does setInputParameter() being called? Post rating: 0   New post Posted: Tue 11 Jun, 2013, 22:33 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Dear Support,

I would like to understand when do we call the setInputParameter() function of the attached indicator. It is based on the first indicator example in the wiki (https://www.dukascopy.com/wiki/#Simple_Indicator). I`ve only added some logging statements in the corresponding function.

Could you explain who is calling setInputParameter()? And what does the parameter `array` contains? It looks like tick data (especially BID price), but why does the array contain different amount of elements?

Thanks in advance.


 
The Best Answer  Post subject: Re: When does setInputParameter() being called? Post rating: 0   New post Posted: Wed 12 Jun, 2013, 07:45 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
tcsabina wrote:
Could you explain who is calling setInputParameter()?
The platform.
tcsabina wrote:
And what does the parameter `array` contains?
It depends on what you have defined in your InputParameterInfo.
tcsabina wrote:
It looks like tick data (especially BID price), but why does the array contain different amount of elements?
The array size depends on internal workings of the platform, your indicator calculation should calculate regardless of the passed input amount. However, if you require specific minimal amount of inputs, then you need to increase the getLookback().


 
 Post subject: Re: When does setInputParameter() being called? Post rating: 0   New post Posted: Fri 14 Jun, 2013, 11:38 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Thanks for clarifying this.


 

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