In the MT4 version I can see the buffers assigned as follows:
SetIndexBuffer(0,PBuffer);
SetIndexBuffer(1,R1Buffer);
SetIndexBuffer(2,R2Buffer);
SetIndexBuffer(3,R3Buffer);
SetIndexBuffer(4,S1Buffer);
SetIndexBuffer(5,S2Buffer);
SetIndexBuffer(6,S3Buffer);
pivot line 0 (Pivot) should negate to pivot line 0 (Pivot)
pivot line 1 (R1) should negate to pivot line 4 (S1)
pivot line 2 (R2) should negate to pivot line 5 (S2)
pivot line 3 (R3) should negate to pivot line 6 (S3)
pivot line 4 (S1) should negate to pivot line 1 (R1)
pivot line 5 (S2) should negate to pivot line 2 (R2)
pivot line 6 (S3) should negate to pivot line 3 (R3)
In this case line 1 (R1) negated to line 0 (Pivot) which is not correct, it should have negated to line 4 (S1)
LongEntrySignal = (((Close(Main chart)[1] > High(Main chart)[2])
and (HighDaily(Main chart)[1] > Pivots(Main chart,6,3,1)[1]))
and ((StdDev(Main chart,16) changes direction downwards)
and (Bar opens above Smoothed Moving Average(Main chart,19))));
ShortEntrySignal = (((Close(Main chart)[1] < Low(Main chart)[2])
and (LowDaily(Main chart)[1] < Pivots(Main chart,6,3,0)[1]))
and ((StdDev(Main chart,16) changes direction downwards)
and (Bar opens below Smoothed Moving Average(Main chart,19))));
This one was line 6 (S3) negated to line 0 (P) which should have negated to line 3 (R3).