sqPiercingLine formation contains error

In MQ5 code the condition is:


if(C1 < O1 && O1C1_D2 < C && O < C && CO_HL > Piercing_Line_Ratio && HL >= PCL_MTS) {
  return true;

  }


The part of the condition that is missing: C<O1  (it also properly exists in DarkCloudCover).


It should be:


if(C1 < O1 && O1C1_D2 < C && O < C &&  C<O1 && CO_HL > Piercing_Line_Ratio && HL >= PCL_MTS) {
  return true;

  }


With this one missing it is also accepting all the BullishEngulfing type formations

Attachments
No attachments
  • Votes 0
  • Project AlgoWizard
  • Type Bug
  • Status Fixed
  • Priority Normal

History

p
#1

pitro

09.05.2020 22:46

Task created

TB
#2

Tomas Brynda

04.06.2020 13:24

Status changed from New to Fixed

Hi Pitro,

thank you for your suggestion, you are right.


I updated the MQL and TS/MC templates.


Best regards,

Tomas


Votes: 0

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please