Look at the Examples. I re tested them after the upgrade on the weekend. There are many ways to define a crossover Read this:
viewtopic.php?f=2&t=131&start=0&hilit=crossoverYou could compare the values in the current bar with the previous bar, or the previous bar with one bar before the previous bar, or have a mix. You need to define what is better for you to decrease false and too many signals. We stated in the example:
Quote:
Please note that MA Crossovers can be defined in several ways. We use the definition from the MT5 article which reduces flickering.
The definition in the article does not include the current bar, so signals appear delayed one bar.
You can change all shift 1 for shift 0 and shift 2 for shift 1 and get different results.
In the expert advisor example page for mt5
http://www.molanis.com/products/expert- ... visors-mt5, there are some charts that show the difference between trading the current and the previous bar.
Note that examples 1 to 4 are not crossovers. A real crossover compare 2 bars. Example 5 is the only crossover but it does not use the current bar, it compares the previous bar with the bar before the previous bar. It uses shift 2 for bar before the previous bar and shift 1 previous bar.
Finally in reality you do not trade with the close, because the only way to know a tick is the close price is receiving the next tick or open price of the next bar. When you trade bars, you trade the first tick of the new bar (or open price)