Pivots Symmetry issue

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))));


Attachments
No attachments
  • Votes +4
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

b
#1

bentra

16.08.2019 20:50

Task created

b
#2

bentra

19.08.2019 04:52

Attachment Strategy 010196-piv-bug.sqx added

Forgot to attache strat. found another.
This one was line 6 (S3) negated to line 0 (P) which should have negated to line 3 (R3).



//--------------------------------------------------------------------
// Trading rule: Trading signals (On Bar Open)
//--------------------------------------------------------------------
LongEntrySignal = (((Close(Main chart)[1] > High(Main chart)[2])
and True)
and ((Pivots(Main chart,9,18,6)[1] < OpenDaily(Main chart)[2])
and (CloseDaily(Main chart)[1] > Fibo(Main chart, High-low previous month, Fibo Level = 50))));

ShortEntrySignal = (((Close(Main chart)[1] < Low(Main chart)[2])
and True)
and ((Pivots(Main chart,9,18,0)[1] > OpenDaily(Main chart)[2])
and (CloseDaily(Main chart)[1] < Fibo(Main chart, High-low previous month, Fibo Level = 50))));

LongExitSignal = false;

ShortExitSignal = false;



b
#3

bentra

21.08.2019 23:05
Voted for this task.
m
#4

mabi

22.08.2019 13:19
Voted for this task.
da
#5

Artur

23.08.2019 23:10
Voted for this task.
DR
#6

mentaledge

26.08.2019 14:41
Voted for this task.
MF
#7

Mark Fric

12.06.2020 09:19

Status changed from New to Fixed

you are right, I created a special negate rule for Pivots

Votes: +4

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please