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.

Trouble testing a simple Renko Strategy
 Post subject: Trouble testing a simple Renko Strategy Post rating: 0   New post Posted: Thu 05 Apr, 2012, 23:35 
User avatar

User rating: 2
Joined: Tue 16 Aug, 2011, 19:01
Posts: 70
Location: ItalyItaly
Hi Support,
I'm testing a simple example of renko strategy (that I attached "TestRenko.java")
I would like that strategy printed the Open and Close values for the last 2 bars (bricks), updating values on new brick, but the strategy print always the same 4 values.

It seems that lines
        brick            = history.getRenkoBar(instrument, offerSide, PriceRange.valueOf(brickSize), 0);
        brickPrevious = history.getRenkoBar(instrument, offerSide, PriceRange.valueOf(brickSize), 1);


are not update.

Could you help me ?

Best regards,
Frank


Attachments:
TestRenko.java [3.53 KiB]
Downloaded 284 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Trouble testing a simple Renko Strategy Post rating: 0   New post Posted: Tue 10 Apr, 2012, 09:16 
User avatar

User rating: 2
Joined: Tue 16 Aug, 2011, 19:01
Posts: 70
Location: ItalyItaly
Hi Support,
I noted the trouble in platform DEMO 2.15.1 and Jforex API 2.6.64.

I hope you can help me.

Best regards,
Frank


 
 Post subject: Re: Trouble testing a simple Renko Strategy Post rating: 0   New post Posted: Tue 10 Apr, 2012, 16:01 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Try the following strategy:


Attachments:
RenkoLastAndPrev.java [2.27 KiB]
Downloaded 318 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 

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