The Buy/Sell signals of the indicator are based on crossover of two Moving Averages with different periods.
The indicator has the following features:
The checks are based on the 1st bar (completed).
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/357
This script reads all opened position and calculates their exposure for each currency.sTimeToVariables
The script converts the time, represented as datetime variable into the year, month, day, hour, minutes and seconds.
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.EA_OBJPROP_CHART_ID
This Expert Advisor is a demo of working with OBJ_CHART objects as conventional charts. You can set custom color settings, attach indicators etc.