Dukascopy
 
 
Wiki JStore Search Login

JFOREX-3578 pivot indicator not working in my strategy
 Post subject: JFOREX-3578 pivot indicator not working in my strategy Post rating: 0   New post Posted: Mon 27 Feb, 2012, 01:06 

User rating: 0
Joined: Mon 27 Feb, 2012, 00:59
Posts: 6
Hi,

I can't get values back from the Pivot indicator (the fibPrivot and others work fine).

I've tried running the strategy Pivot2 in this post and it also fails: https://www.dukascopy.eu/swiss/english/f ... 65&t=43589

It prints out messages like this: (the ? are NaN as I checked).

23:52:33 pivotDaily P: ?; R1: ?; S1: ?; R2: ?; S2: ?; R3: ?; S3: ?;

Here is an example of my code:

private Instrument instrument = Instrument.EURUSD;
private Period selectedPeriod = Period.DAILY;
int shift = 0;
double [] pivotDaily = indicators.pivot(instrument, selectedPeriod, OfferSide.BID, 7, shift);

I've tried calculating the levels myself but it is tricky with the weekends.

Is this a bug? I'm running the demo jforex api 2.6.60.1. Any ideas appreciated.

Thanks,

James.


 

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