Post subject: JFOREX-1453: Get Instrument and OfferSide
Post rating: 0
Posted: Tue 12 Jan, 2010, 14:58
User rating: 3
Joined: Wed 18 May, 2011, 16:25 Posts: 331 Location: SwitzerlandSwitzerland
Hi,
should be easy, but I can't spot a method to retrieve the Instrument and the Offerside of the indicator call within the indicator's code. Could you please point me out how to do this?
Thanks a lot, RR.
API Support
Post subject: Re: How to get Instrument and OfferSide?
Hi! You can't. Indicators are functions that process input data no matter what it is. Indicators are designed to be independent of what instrument or period or side it is
API Support
Post subject: Re: How to get Instrument and OfferSide?
There is a possibility to request some specific instrument period and side as an addition to the main data of the indicator (current data). For example pivot indicators use daily period to calculate it's lines, so they have additional input with specific period You can find more info here - https://www.dukascopy.com/swiss/english/forex/jforex/tutorial/indicator_interfaces/
RoadRunner
Post subject: Re: How to get Instrument and OfferSide?
Post rating: 0
Posted: Tue 12 Jan, 2010, 16:42
User rating: 3
Joined: Wed 18 May, 2011, 16:25 Posts: 331 Location: SwitzerlandSwitzerland
Thanks a lot for your reply.
Hmm, yes I've seen how you've passed bars of a specific period to the indicator in the Camarilla-indicator.
It would be great though to have full access to the IHistory. How about including the following methods?: a) IIndicator.getInstrument() b) IIndicator.getOfferSide() c) IIndicatorContext.getHistory() d) IIndicatorContext.getChart()
Having these methods available, would add so much more flexibility to indicator coding. Is it possible to include the above listed methods?
Thanks a lot, RR.
[rajeshv]
Post subject: Re: How to get Instrument and OfferSide?