Inicator to Expert Advisor - Need Help

 

Hello,

I'm converting one indicator to expert advisor. The code is almost complete for BUY order. But it is not working. I'm sure, it's just a small error in the code. Please check that.

Thanks

Files:
 

You should define an array explicitly.

Example: double SarBuffer[1000];

Oherway you will always have 0 inside.

Reason: