Forum

Simulate a withdraw while backtesting

Hi How can I substract a value from the account balance ? Simulate a withdraw while backtesting. Thank you

copybuffer error 4807

Hi Trying to use copybuffer for some indicators, but it is returning error 4807 when running. I tried it for stochastics and Adaptive Moving Average, with the same error. Could only make it work for the Simple Move Average. Thank you input int Kperiod= 5 ; input int

Array values on ArraySetAsSeries

Hi I have set a double array with the AS_SERIES flag using the ArraySetAsSeries function , but when I add a new value to array[0] the older values does not distribute to the other indexes, in fact it apears a loong number. See below the first 4 indexes [0] 3315.0 (this is right) [1]

Errors declaring multi dimensional array

Hi I'm getting the following errors when declaring a multi dimensional array, And I don't now why, Just started coding with MQL5 Thank you