Do not judge by the close alone
The condition is that the whole bar, including wicks, is outside the 3 lines. A bar touching the same price as a line is not outside either.
It checks whether the whole candle is above or below the 3 average lines. When a bar goes to the side opposite the last outside bar, it confirms the top or bottom of the segment and places a mark at the extreme price on that bar.
Look at the 3 lines and the whole barJaw is blue, Teeth magenta and Lips gold. If the low is above all 3 lines, the bar is outside above; if the high is below all of them, outside below.
Confirmed when the outside side changesFrom outside above to outside below gives a red top; the reverse gives a green bottom. A bar touching the lines is not treated as outside, and the side of the last outside bar is kept.
Separate height and timeThe height of the mark is the extreme price of the segment, and the horizontal position is the confirming bar that went outside on the opposite side. The blue zigzag connects those confirmed points.
Compares the default settings and a settings change example on a screen with only this product applied.
Example shown: M1. This is an example for explaining the display. The published images are screens from before the brand display was added. The calculation and drawing conditions are the same, and the packaged version has display settings for the brand text and the QR code. The settings change example is not a recommended value. Details can be checked in the full-size view. Please also check the price scale of the main chart and the positions of the candlesticks.
The condition is that the whole bar, including wicks, is outside the 3 lines. A bar touching the same price as a line is not outside either.
If outside bars on the same side continue, the starting point of the search also moves to the newer bar. Neutral bars in between do not update the starting point.
The extreme is confirmed on the bar that went outside on the opposite side. No mark is placed yet on the first outside bar.
It organizes the extremes of segments from changes in the position of bars relative to the band of moving averages. It is not an indicator that looks only at the order or crosses of the 3 lines, nor one that predicts future tops and bottoms.
Specify a period and Shift for Jaw, Teeth and Lips. The method and price used are shared by the 3 lines. The line at bar t is the average value at t−Shift, and future prices are not used.
If the Low is strictly higher than the maximum of the 3 lines, the bar is outside above; if the High is strictly lower than the minimum, outside below. The position of the close alone does not decide it.
A bar that touches a line, crosses a line, or lies between the lines is neutral. The side and bar of the last outside bar are kept, and no point is drawn.
When the last outside bar was above and an outside-below bar then appears, the highest high from the last outside-above bar to the current bar is confirmed. Both end bars are included, and the highs of neutral bars are included too.
When the last outside bar was below and an outside-above bar then appears, the lowest low of the same range is confirmed. Because the starting point is updated each time outside bars on the same side continue, it is not the whole segment from the previous confirmed point.
The extreme price is placed on the current confirming bar. On the first outside bar it is only recorded, and a point is created only when a bar goes outside on the opposite side. A blue line segment needs 2 confirmed points.
Check Jaw 13/8, Teeth 8/5, Lips 5/3, SMMA and Median, Closed Bars Only true.
By default, all 3 lines are available from bar 21, counting the oldest as bar 1. After that, a first outside bar and an outside bar on the opposite side are needed.
Look not only at the close or the body but also at the wicks. An equal-value touch is not outside.
By default, the point is confirmed after the confirming bar closes. It is not a point moved to the bar of the past extreme.
| Included file | Purpose / location |
|---|---|
| TRI_Alligator_Swing_ZigZag.ex5 | The MT5 main file. Place it in MQL5/Indicators. |
The ZIP contains only 1 item, the main file. The manual is opened from the product page on the site. Source code is not included. MT5 only; registration, account authentication and placing a license file are not required. Use it without changing the file name.
Extract the ex5 main file rather than leaving it in the compressed file.
In MT5, open MQL5/Indicators from 'File → Open Data Folder' and place the included ex5 there.
Refresh the Navigator or restart MT5, and apply it to the target chart. When comparing different settings, using separate charts makes checking easier.
First check with the default values. Changes and removal are done from the chart's 'Indicators List'.
Using this product does not require allowing DLLs. When removed, this product's drawings are cleared.
There are 13 inputs. Change them on the Inputs tab of the properties. The English item names defined in the source are shown together with the input names.
InpJawPeriodInpJawShiftInpTeethPeriodInpTeethShiftInpLipsPeriodInpLipsShiftInpMethodInpPriceInpClosedBarsOnlyInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYWhen bars are added with the same history and settings, dots on closed bars are not moved to past extreme bars. Settings changes, adding older history or corrections may change recalculated results.
Even with true, the lines are drawn up to the latest bar. If Shift is positive, past averages are referenced; if 0, the average of the forming bar updates. Dots with false are displays before confirmation.
The average lines stop at the latest bar. They are not extended into the future side of the chart by the Shift amount.
A point is connected to the previous one only after the next confirmation point forms. The diagonal line of the completed picture as a whole was not visible from intermediate times.
There is no upper limit that cuts off at 50 dots, no constant extension to forming extreme candidates, and no notifications, orders, account authentication or license file.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
At first, only the outside side and the bar are recorded. There is no point until a bar goes outside on the opposite side.
The search starts not from the previous confirmed point but from the last outside bar on the opposite side. If outside bars on the same side continue, the starting point is also updated.
The relative sizes of the 3 periods and Shifts are not enforced. With period 1 and Shift 0, if the selected price is within the current bar's range, the whole bar cannot go outside that line, and some settings give no points.
On a light background, gold can be hard to see. Check with the chart background, the scale, and the full-size images.
Choose periods as integers from 1 to 500, Shifts as integers from 0 to 100, the method from 4 types, and the price from 7 types.
The mark price is the high or low of a segment that includes the past. It is not necessarily within the high-low range of the confirming bar.
If the first display does not appear, check history loading and the input ranges. If an earlier display has stopped updating, first check the price feed and the terminal's connection status.
Counting the oldest as 0, SMA/SMMA/LWMA have values from Period−1+Shift of each line, and EMA from Shift. The outside check is made from the bar where all 3 lines have values. The maximum default start position is 20 (the 21st bar).
EMA starts from the oldest price, and SMMA from the simple average of the first period. A match with MT4's initial values is not guaranteed.
Above is Low>max(Jaw,Teeth,Lips), below is High<min(Jaw,Teeth,Lips). Equal values are neutral. The order of the 3 lines and the Force Index are not conditions.
For an outside bar, the last bar is updated even on the same side. For a neutral bar, the state is kept. When a bar is outside on the opposite side, the extreme is found from the previous outside bar to the current bar, including both ends. Which bar had the extreme is not used as the next starting point.
Median=(High+Low)/2, Typical=(High+Low+Close)/3, Weighted=(High+Low+2×Close)/4. Shift is a number of bars, not points or pips.
M1 is the timeframe shown when the display example was created, and the price series is mainly at 30-minute intervals. It is not the frequency of appearance on actual 1-minute bars. The published images are screens before the brand display was added; the screen display on the product with the brand display has not been checked yet.