mql5 sample code to mql4

 

Greetings! Recently joined this forum and am glad to see activity here. 

 I have to modify a sample code, in an Expert Advisor article posted at mql5, link given below. Very recently have I started mql4 coding and still very much learning. Is there an mql4 version of this code. I am facing difficulties with functions not available in mql4, at present the CopyBuffer function. Can anybody send mql4 version of this code. Can anybody provide pointers to mql4 version of CopyBuffer function of mql5?

Any pointers, any input will be greatly appreciated.

MQL5 article I am referring to is this: https://www.mql5.com/en/articles/100

 

Thanx in advance.

Warm wishes

Amitabh.