The real author:
The indicator which fixes Pin Bars in the chart. You can read about Pin Bars here.
Pin Bar's pattern consists of three bars: "left eye", "nose" and "right eye". The "left eye" must be the growing bar for the bearish Pin Bar or falling bar for the bullish Pin Bar. "Nose" must be opened and closed inside the "left eye", but its maximum (or minimum for the bullish pattern) must protuberate far from the maximum (or minimum) of the left eye. Open and close levels of the "nose" must be located in the upper quarter of the bar:
Fig.1 Pin Bar Pattern
An additional condition for a good pattern is the presence of strong support/resistance lines behind the "eyes" or near the tip of the "nose". The stronger these levels, the more exact the pattern.
Indicator input parameters:
input bool UseAlerts=true; // Permission for alerts input bool UseEmailAlerts=false; // Permission for email alerts input double MaxNoseBodySize = 0.33; // maximum allowed ratio of Nose body to the whole bar length input double NoseBodyPosition = 0.4; // extreme position of Nose body inside the bar. The upper part is for the bullish figure, the lower is for the bearish one input bool LeftEyeOppositeDirection=true; // Left eye must be bearish for the bullish Pin Bar and bullish for the bearish Pin Bar input bool NoseSameDirection=false; // Nose must be of the same direction as the figure itself input bool NoseBodyInsideLeftEyeBody=false; // Nose body must be placed in Left eye body input double LeftEyeMinBodySize=0.1; // minimum Left eye body size relative to bar length input double NoseProtruding=0.5; // minimum protuberance of Nose relative to bar length input double NoseBodyToLeftEyeBody=1; // maximum Nose body size relative to Left eye body input double NoseLengthToLeftEyeLength=0; // minimum Nose length relative to Left eye input double LeftEyeDepth=0.1; // minimum Left eye depth relative to its length. Depth — length of the part of bar behind Nose
Fig.2 The Pinbar Detector indicator
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/1595
Smoother Commodity Chanel Index.3rd Generation Moving Average
The Moving Average which uses quite a simple procedure on decreasing temporal lag based on the increase of the Moving Average period.