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.

Bull/Bear power indicator question
 Post subject: Bull/Bear power indicator question Post rating: 0   Post Posted: Fri 03 Dec, 2010, 08:37 

User rating: 0
Joined: Thu 19 Aug, 2010, 13:53
Posts: 62
I looked at that indicators sources posted.
It calculates High - EMA(CLOSE) for bull and LOW - EMA(CLOSE) for bear which is correct.
However, I see the output is named 'MFI down , Volume up' when I plot indicator on chart and in code we have this:

outputParameterInfos = new OutputParameterInfo[] {
            new OutputParameterInfo("MFI Down, Volume Up", OutputParameterInfo.Type.DOUBLE, OutputParameterInfo.DrawingStyle.HISTOGRAM)


But I dont see in indicator's code where MFI and Volume is used. Am I missing something ?

Also, I would like to know if this method in API indicates Bear Power. In JForex Momentum indicators BearPower is short named as BEARP, so I was expected a bearp() method. Similar for bull.
double[] bear(Instrument instrument,
              Period period,
              OfferSide side,
              int timePeriod,
              long from,
              long to)
              throws JFException


Thank you


 
 Post subject: Re: Bull/Bear power indicator question Post rating: 0   Post Posted: Sun 05 Dec, 2010, 08:12 

User rating: 0
Joined: Thu 19 Aug, 2010, 13:53
Posts: 62
Also, in this method of a custom indicator:

IndicatorInfo(String name, String title, String groupName, boolean overChart, boolean overVolumes, boolean unstablePeriod, int numberOfInputs, int numberOfOptionalInputs, int numberOfOutputs)

what does it mean 'unstablePeriod' argument and where how is it/should be used ?
the same for 'overVolumes' argument.

Thank you.


 
 Post subject: Re: Bull/Bear power indicator question Post rating: 0   Post Posted: Tue 07 Dec, 2010, 08:12 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
Methods bear() and bull() refer to Bear Power and Bulls Power indicators.
Output names for these indicators are incorrect, this will be fixed ASAP, thanks for the information.
Have a look at the following JForex Wiki Article: https://www.dukascopy.com/wiki/index.php ... icatorInfo


 

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