Forum

Need help to round order last digit to 0 or 5

I have a problem with my EA because the spread of the currency that im trading is 5 , so, when the indicator give something ending with other number than 5 or 0, the error ocurrs 2016.10.22 13:29:38.787 2016.10.03 11:55:00 failed exchange sell 1.00 WINZ16 at 60739 sl: 60834 tp: 60584 [Invalid

Help explaning the result of CopyBuffer

Dear friends, im trying to use a indicator signal in my EA but i have no idea why CopyBuffer just give me ordered numbers, let me show the code: #property copyright "Copyright © 2011-2016, EarnForex" #property link "http://www.earnforex.com/metatrader-indicators/Pinbar-Detector/" #property