1. The idea of the trading system is as follows: market entries are performed when MACD's main and signal lines intersect in the current trend direction. 2. Trend is determined based on the zero lag macd, when macd and signal is above 0 it is buy trend, and macd and signal below 0 it is sell trend. 3. Trading Signals: Buy signal: the main MACD line crosses the signal line upwards [macd_current>signal_current ,(macd and signal above 0)] Sell signal: the main MACD line crosses the signal line downwards [macd_currentmacd Positions are closed for sell (current bar) signal