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=43589It 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.