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.

Bug or not?
 Post subject: Bug or not? Post rating: 0   New post Posted: Tue 29 Jan, 2013, 15:38 

User rating: 0
Joined: Fri 16 Nov, 2012, 16:36
Posts: 11
I hava 2 indicators

        // Petite KAMA
        double KamaPetitBid[] = indicators.kama(instrument, Period.FIFTEEN_MINS,OfferSide.BID, AppliedPrice.CLOSE, 30, 2, 30, Filter.ALL_FLATS, Bar15_5_Bid.getTime(), Bar15_0_Bid.getTime());
        double KamaPetitAsk[] = indicators.kama(instrument, Period.FIFTEEN_MINS,OfferSide.ASK, AppliedPrice.CLOSE, 30, 2, 30, Filter.ALL_FLATS, Bar15_5_Ask.getTime(), Bar15_0_Ask.getTime());
       
        // Grande KAMA
        Filter filter = Filter.ALL_FLATS;
       
        double KamaGrandeBid[] = indicators.kama(instrument, Period.FIFTEEN_MINS,OfferSide.BID, AppliedPrice.CLOSE, 30, 6, 30, filter, Bar15_5_Bid.getTime(), Bar15_0_Bid.getTime());
        double KamaGrandeAsk[] = indicators.kama(instrument, Period.FIFTEEN_MINS,OfferSide.ASK, AppliedPrice.CLOSE, 30, 6, 30, filter, Bar15_5_Ask.getTime(), Bar15_0_Ask.getTime());


i have the same spec for 2 indicators, but 1 with the value "6" for Fast MA.

the second Kama give me wong value , and the fist (KamaPetitBid or Ask) is ok.

Systeme hour is OK
Bid/Ask is OK
the graphic filter is OK

all the spec is ok, but a dont have the right value of the second Kama ( KamaGrandeBid or KamaGrandeAsk )

I suppose it's a bug because i change the Fast MA "6" for "2" and all the value match, and when i change value to "6", the systeme give me wong value

i have tried with 3 computer and it's a same thing.

i have tried to change the filter option and it's the same problem

dont tell me to put indicators in OHCL because i have already do that

i dont know what can i do after that

i have tried to code with universal method with kama but i can't do that... lol

Thank you to help me with that because i have tried everything and i dont know what can i do for now


 
 Post subject: Re: Bug or not? Post rating: 0   New post Posted: Wed 30 Jan, 2013, 09:49 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
There must be some discrepancy in your chart-to-strategy comparisons though. Consider adjusting the following example with you indicator parameters:
https://www.dukascopy.com/wiki/#Add_indicators_on_chart/Randomize_output_style_and_include_in_OHLC


 

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