Copy Indicator buffer error 4116
Some of the values I get for the indicator ALMA is 22919.31303361931, 22919.42770739924.
Whereas the value is supposed to be in the range of 1.18000 - 1.19000.
I have an EA written in MQL5 the EA depends on data from four indicators, sometimes it copies the data correctly most times I get an error 4116, as a result of this error trades that depend on the value of the indicator are closed because of the ridiculous values that are posted to the indicator array.
Here is the code
I have an EA written in MQL5 the EA depends on data from four indicators, sometimes it copies the data correctly most times I get an error 4116, as a result of this error trades that depend on the value of the indicator are closed because of the ridiculous values that are posted to the indicator array.
Here is the code