Help converting 2 lines of MQL5 - MQL4

 

Hi I have these 2 lines 

 

if (CopyBuffer(BolBandsHandle, 0, 0, 3, BBMidle) < 0 || CopyBuffer(BolBandsHandle, 1, 0, 3, BBUp) < 0 || CopyBuffer(BolBandsHandle, 2, 0, 3, BBLow) < 0)

and

 if (CopyBuffer(demaHandle, 0, 0, 3, demaVal) < 0)

 

from this file

https://www.mql5.com/en/code/166 

 

I would really appreciate the help to get this working in MQL4, Thanks !! 

An Expert Advisor, based on Bollinger Bands ®
An Expert Advisor, based on Bollinger Bands ®
  • votes: 37
  • 2010.08.12
  • Andrew Kornishkin
  • www.mql5.com
This Expert Advisor is based on Bollinger Bands. It uses trend-following strategy and Bollinger Bands indicator.