Specification: A) Merge indicators 3_Level_ZZ_Semafore with ZigZag_Pointer to one indicator and optimize code in order to create a common signal (uptrend or downtrend) B) Create a signal for uptrend and downtrend - Check pictures for better understanding - Create buffers for uptrend and downtrend, which are displayed in the data window - Downtrend in case of following conditions: 1. Condition 1: ZigZag_Pointer has formed a purple down-arrow 2. Condition 2: First blue or red semafore (diamond) has formed above candle (sell side trade) after condition 1 is fulfilled - Uptrend in case of following conditions: 1. Condition 1: ZigZag_Pointer has formed a purple up-arrow 2. Condition 2: First blue or red semafore (diamond) has formed below candle (buy side trade) after condition 1 is fulfilled - Uptrend or downtrend starts one candle after condition 2 is fulfilled - Uptrend changes to downtrend when conditions of downtrend are fulfilled, and downtrend changes to uptrend when conditions of uptrend are fulfilled - Consider that both indicators are repainting as shown on Picture2. On the lefthand side of Picture2 indicator has to show a downtrend, because condition 1 and 2 of downtrend are fulfilled. On the righthand side of Picture2 condition 1 and 2 for downtrend are no longer fulfilled due to repainting. Therefore, indicator has to signal uptrend as soon as condition 1 and 2 for downtrend are no longer fulfilled. Vice versa for change from uptrend to downtrend. C) For uptrend print green line and for downtrend red line to the chart (e.g. SMA or zero lagging Hull indicator that changes color from green (uptrend) to red (downtrend) and vice versa)