The indicator implements a breakthrough system using a channel drawn on extrema for a period.
When price exits the gray channel, the candlestick color changes to the color corresponding to trend direction. Blue for the growth of a financial asset, pink color - fall. Bright colors denote coincidence of trend direction and direction of a candlestick. Dark colors correspond to the situation when the direction of a candlestick is opposite to trend.
Figure 1. The PChannel_System indicator
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/2328
A candlestick chart, all the Open prices of which are shifted to zero.Tally for Wins and Losses
Way to keep a tally of wins an losses.