Dukascopy
 
 
Wiki JStore Search Login

JFOREX-3521 HeikinAshi indicator
 Post subject: JFOREX-3521 HeikinAshi indicator Post rating: 0   New post Posted: Mon 13 Feb, 2012, 22:20 
User avatar

User rating: 0
Joined: Mon 02 Jan, 2012, 18:15
Posts: 12
Location: India, Chandigarh
The newer version of heikinAshi indicator is incompatible or wrong (cf. https://bitly.com/xSIG2o) As per documentation, the result array contains prices in the following order: OPEN, CLOSE, MIN, MAX.
--- a/tst_rc2_14022012_013010.csv   2012-02-13 20:00:10.000000000 +0000
+++ b/tst_rc2_14022012_013110.csv   2012-02-13 20:01:10.000000000 +0000
@@ -1,1070 +1,1070 @@
 2012.02.13 20:30:10,2012-02-06 00:00:01 [GMT]
 2012.02.13 20:30:10,  HA [
-         [1.31252, 1.31246, 1.31241, 1.31253],
-         [1.31246, 1.31240, 1.31236, 1.31246],
-         [1.31240, 1.31252, 1.31240, 1.31264]]
+         [1.31253, 1.31246, 1.31253, 1.31241],
+         [1.31249, 1.31240, 1.31249, 1.31236],
+         [1.31244, 1.31252, 1.31264, 1.31240]]
 2012.02.13 20:30:10,  DC [
          [1.31563, 1.31563, 1.31563],
          [1.31563, 1.31110, 1.31110]]
 2012.02.13 20:30:10,  T3 [1.31561, 1.31552, 1.31535]

The MIN and MAX are transposed in newer version.

Why not hOPEN, hHIGH, hLOW, hCLOSE, or an order and, or naming like OHLC?

Seems this indicator has been developed/maintained quite carelessly.

Moreover, most of the other indicators, see the DC (Donchian Channels) above return arrays in wrong order; try using numberOfCandlesBefore = 2 or more for any indicator you will get a transposed array except for the heikinAshi.


 
 Post subject: Re: JFOREX-3521 HeikinAshi indicator Post rating: 0   New post Posted: Fri 24 Feb, 2012, 08:43 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Fixed java doc for the indicator. The HeikinAshi was rewritten at some point that's why the order in which output parameters are returned also changed.
As for DonchianChannel - everything seems to be in order.


 

Jump to:  

cron
  © 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