Dukascopy
 
 
Wiki JStore Search Login

Pivot lines bug
 Post subject: Pivot lines bug Post rating: 0   New post Posted: Thu 11 Jul, 2013, 12:11 

User rating: 0
Joined: Sat 08 Jun, 2013, 12:05
Posts: 71
Location: FranceFrance
Not sure if it's a bug, or my use of it

I'm drawing daily Pivot lines but they don't seem to correspond with daily values from:

double[] pp = indicators.pivot(instrument1, Period.DAILY,
               OfferSide.BID, 7, 0);

or actually with a lag of one day: so when I look the chart I don't know if the lines are right, or if the code above is right...
example below, pivot values the 20th on the chart are the one get the 21st with jforex api
2013-06-18 22:15:00   Pivot: 1.33539, 1.33895, 1.33264, 1.3417, 1.32908, 1.34526, 1.32633
2013-06-19 18:30:00   Pivot: 1.3378, 1.34304, 1.33404, 1.3468, 1.3288, 1.35204, 1.32504
2013-06-20 07:30:00   Pivot: 1.33197, 1.33775, 1.3224, 1.34732, 1.31662, 1.3531, 1.30705
2013-06-21 12:30:00   Pivot: 1.32297, 1.32981, 1.31591, 1.33687, 1.30907, 1.34371, 1.30201

see this code compared to the 2 charts:
Image
Image


Attachments:
Untitled5.png [28.39 KiB]
Downloaded 474 times
Untitled4.png [32.66 KiB]
Downloaded 412 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:  

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