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.

heikinAshiSmooth on feedDescriptor
 Post subject: heikinAshiSmooth on feedDescriptor Post rating: 0   New post Posted: Fri 15 Apr, 2016, 08:25 

User rating: 3
Joined: Thu 28 Jul, 2011, 19:40
Posts: 72
Location: PolandPoland
I want to use heikinAshiSmooth indicator on feedDescriptor (in strategy).
And I see in documentation that one way is to use:

IIndicatorCalculator<Double,double[]>   heikinAshiSmooth(IFeedDescriptor feedDescriptor, IIndicators.AppliedPrice appliedPrice, OfferSide side, int timePeriod, IIndicators.MaType maType, int smoothingTimePeriod, IIndicators.MaType smoothingMAType)


But why the IIndicatorCalculator has <Double,double[]> instead of <double[],double[][]> ?

If I use calculate(shift) method on this IIndicatorCalculator, then I receive only one value insted of 4 values (OPEN CLOSE, HIGH, LOW).

When I use heikinAshiSmooth indicator on selected instrument and period I receive double[] or double[][].

e.g.:
double[][]   heikinAshiSmooth(Instrument instrument, Period period, OfferSide side, int timePeriod, IIndicators.MaType maType, int smoothingTimePeriod, IIndicators.MaType smoothingMAType, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)


Plese tell me how to receive full heikinAshiSmooth data calculated on any feedDescriptor?


 

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