The class of a module of trade signals, on "inner bar breakthrough" in trend direction:
The strategy is following: when outer (outside) bar appears, it checks the fact of the inner bar breakthrough in trend direction and generates a signal to open position. A module of trade signals is compatible with the new version of MQL5 Wizard.
The strategy, implemented in this module is following: when outside bar appears, it checks the fact of the inner bar breakthrough in trend direction and generates a signal to open position. The outside (outer) bar is the bar with High price, greater than High of the previous bar and Low, lower than Low price of the previous bar. The "breakthrough" means the extremum crossover of the inner bar.
The trend direction depends on the color of the outer bar. Position is opened after completion of the bar with a signal.
Example of a signal to open a long position: