Forum

Strange phenomenon with self-developed indicator

I developed an indicator to indicate time intervals where trading is favorable for my expert. It does so by producing 1.0 for all the bars where it thinks opening a trade is "allowed", and producing 0.0 for all the other bars. So when my expert logic thinks it is time to open a trade, it checks the

MT4 Strategy Tester produces strange order closes

I encountered a phenomenon I don't quite understand with MetaTrader4. I'm running an automated test of my expert advisor and Strategy Tester produces strange order closures. I try to explain and give you all necessary details. My expert advisor works with prices of the last closed bar, so I run the

MT4 strategy tester seems to skip data

I'm experiencing a very strange phenomenon. I developed an EA which runs once per bar, since it uses data of the last finished bar. During backtesting it behaved strange, so I stripped it's code to the following: datetime LastCoreTime; int OnInit() { return INIT_SUCCEEDED; } void OnTick() { if(