Hi,all.
I'm trying to make strategy related with fibonacci pivot.
In it, I calculate lines by manual.
But they didn't work as fibPivot in api.
My input error?
They are...
IBar pBar = history.getBar(this.instrument,this.testPeriod,OfferSide.BID,1);
double H = pBar.getHigh();
double L = pBar.getLow();
double C = pBar.getClose();
double Pivot = ( H + L + C ) / 3;
double R3 = Pivot + 1.000 * (H - L);
double R2 = Pivot + 0.618 * (H - L);
double R1 = Pivot + 0.382 * (H - L);
double S1 = Pivot - 0.382 * (H - L);
double S2 = Pivot - 0.618 * (H - L);
double S3 = Pivot - 1.000 * (H - L);
Please try to make it by manual.
Maybe its not works as fibPivot in api.
Can I make it by manual?
What's I mistaked?
Thank you.
I hope your reply.