|
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 can i read a (custom) indicator value with a Price Array input? |
tradingea
|
Post subject: How can i read a (custom) indicator value with a Price Array input? |
Post rating: 0
|
Posted: Tue 02 Feb, 2016, 10:29
|
|
User rating: 0
Joined: Wed 13 Aug, 2014, 22:23 Posts: 1 Location: ItalyItaly
|
Hi How can i read a custom indicator that use an inputsPriceArr (new InputParameterInfo("Price arrays", InputParameterInfo.Type.PRICE))?
When i read the indicator with Object[] result = indicators.calculateIndicator(feed, new OfferSide[] {offerSide}, indicatorId, new IIndicators.AppliedPrice[]{}, new Object[]{20,2.0}, 1); Double st1 = ((Double)result[0]);
i have always NaN.
What the correct indicators.calculateIndicator(...) istruction? Thanks
|
|
|
|
|
API Support
|
Post subject: Re: How can i read a (custom) indicator value with a Price Array input? |
Post rating: 0
|
Posted: Fri 05 Feb, 2016, 15:20
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Consider this
Attachments: |
Strategy2.java [2.2 KiB]
Downloaded 83 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
|
|
Pages: [
1
]
|
|
|
|
|