Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Submit JForex API bug reports in this forum only.
    Submit Converter issues in Converter Issues.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Historical tester and automated strategies using Renko bars
 Post subject: Historical tester and automated strategies using Renko bars Post rating: 0   New post Posted: Mon 19 May, 2014, 23:39 

User rating: 0
Joined: Thu 25 Oct, 2012, 14:37
Posts: 1
Hello,

There is one think I want to understand. How to prepare an automated strategy that uses Renko bars to make a proper historical tester. Until now I was not able to do that correctly.

This is one example (I attached the strategy file):
It uses 2 pips renko bars and an inverse Fisher with values on the close.
Strategy just open orders when the Fisher indicator cross the line 0: if cross from the botton to the top open a buy, if cross from the top to the botton, then open a sell. Because this indicator is a continues line, the strategy should alternate opens with buys and sells and never repeate two or more buys or two or more sells. If a new order in the oposite direction arrive, the first one it has to be close and then the new open order is sent to market. (There is some other logic in closing the orders, but doesn't apply here where I can check the open orders).

The problem happens when you analize the historical tester results (attached in the zip file), where you can see several buys or sells without alternation, not following the logic of the strategy.

I add here also the analisys with a tool where you can see it clearly: https://fxbacktesting.com/report/get_report/1159-FisherStrategy.

When I use this strategy in a demo account, then, buys and sells alternate without problems.

Can you please help me to understand where is the problem? Is there a problem in JForex platform when testing Renko' strategies?

Thanks.

P.S.: I'm using JForex 2.35 (Dukascopy Europe) and JForex API 2.9.9


Attachments:
FisherStrategy_20052014_002817.zip [36.52 KiB]
Downloaded 119 times
FisherStrategy.java [21.23 KiB]
Downloaded 150 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: Historical tester and automated strategies using Renko bars Post rating: 0   New post Posted: Mon 26 May, 2014, 14:33 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
If the problem is in strategy, then please contact the programmer which wrote the strategy.
If the problem is in renko bars, please provide an example strategy which demonstrates the case, without any additional business logic. Plus, provide the print-screen of you Historical Tester settings.


 

Jump to:  

  © 1998-2024 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