Forum

Indicator, Array out of range (tried everything...)

Hello, a simple problem here, if you are an expert you will find this problem within seconds....my indicator always gets error " Array out of range " when trying to test it. I just dont know why... #property indicator_separate_window #property indicator_buffers 3 #property indicator_plots 3

Simple EA doesnt copy the right Closing prices (CopyClose()) - why?

Hey, I made an EA that sells once the price goes below the EMA, and closes position, once the last bar closed above the EMA. This code is very simple but still, the EA doesnt copy the right close prices of the last bar, and I dont know why. I printed all the last 10 closeprices of the last 10 bars

Backtests on EAs never close position (no matter which EA I try)

No matter which expert advisor I try (downloaded some from here and tried them), when I do the backtest, it opens the positions but they never close, so the tester is forced to close all positions at the last tested candle (see picture) seems to be a general problem with the MT5 settings? and