I make an MA based simple Expert Advisor . Recently I noticed a skipping of entry point. I dug deeper and found a bug. EA enters the market at a crossing of slow and fast MA (please see the code below). In the beginning of each timeframe period EA compares the values of two MA's for the last closed