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.

fractal with renko
 Post subject: fractal with renko Post rating: 0   New post Posted: Fri 07 Sep, 2012, 10:58 

User rating: 1
Joined: Wed 07 Mar, 2012, 05:56
Posts: 101
Location: New CaledoniaNew Caledonia
hello support,

i have some problem to use fractal on renko bar. i think i followed your wiki correctly ( https://www.dukascopy.com/wiki/#Indicato ... d_by_shift)

this is my code :

 Object[] fractal =  indicators.calculateIndicator(
                    feedDescriptor,
                    new OfferSide[]{OfferSide.BID},
                    "FRACTAL",
                    new AppliedPrice[]{AppliedPrice.CLOSE},
                    new Object[]{fractalPeriod},
                    1);
         double Up = (Double) fractal[0], Down = (Double) fractal[1];
      
   
            console.getOut().println("up" + Up + "down" + Down);


but the double Up and the double Down return NaN value.

where is my error please?

regards
eric


 
 Post subject: Re: fractal with renko Post rating: 0   New post Posted: Fri 07 Sep, 2012, 13:38 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
There is no error - when there is no Up or Down signal (what you can see on the chart), then the value is Double.NaN.


 
 Post subject: Re: fractal with renko Post rating: 0   New post Posted: Fri 07 Sep, 2012, 13:40 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Also see the post here:
viewtopic.php?f=65&t=47360&p=64519


 

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