Green and red arrows record entries
A green up arrow marks a bar that entered the buy state; a red down arrow, a bar that entered the sell state. Buy and sell are managed separately.
Shows arrows when price goes beyond a past high or low and enters a calculated buy or sell state, and dots when it leaves that state. It is not linked to an actual account or open orders.
Green and red arrows record entriesA green up arrow marks a bar that entered the buy state; a red down arrow, a bar that entered the sell state. Buy and sell are managed separately.
Blue and orange dots record exitsA blue dot marks a bar that left the buy state; an orange dot, a bar that left the sell state. No exit dot is placed for a direction that has not been entered.
On the same bar, exits are checked firstIf an entry occurs again after an exit, a dot and an arrow overlap on the same bar. The state is a calculated record, not actual trading.
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.
A green up arrow marks a bar that entered the buy state; a red down arrow, a bar that entered the sell state. Buy and sell are managed separately.
A blue dot marks a bar that left the buy state; an orange dot, a bar that left the sell state. No exit dot is placed for a direction that has not been entered.
If an entry occurs again after an exit, a dot and an arrow overlap on the same bar. The state is a calculated record, not actual trading.
Shows arrows when price goes beyond a past high or low and enters a calculated buy or sell state, and dots when it leaves that state. It is not linked to an actual account or open orders.
The entry reference is the highest high RH and lowest low RL of the preceding Trade Period bars, excluding the current bar. When not in the buy state, close>RH enters the buy state; when not in the sell state, close<RL enters the sell state. With Strict Entry=true, high>RH / low<RL are also added as conditions. The entry value is that bar's close (the same for entries by the high or low). The exit references SH and SL are the highest high and lowest low of the preceding Stop Period bars, excluding the current bar. In the buy state, close<SL exits; in the sell state, close>SH exits. With Strict Exit=true, low<SL / high>SH are also checked. The additional conditions for Greedy=true and the ATR stop are described below. A value equal to the reference does not meet the condition.
Each time, it recalculates the entire loaded history from the oldest side, and at the start neither buy nor sell is entered. Judgment starts from max(Trade Period, Stop Period, ATR Period−1) in 0-based bar numbering. With Closed Bars Only=true, the latest forming bar is not judged, and calculation goes up to the bar 1 before it. If history is insufficient or conditions are not met, no marks appear. Because past states are carried over, marks may change with the history start position, additions or corrections.
The true range TR is max(current high, previous close)−min(current low, previous close); only the first bar of the history uses high−low. ATR is the simple average of TR over ATR Period bars including the current bar. The buy stop is fixed at the entry bar's close−ATR×ATR Factor and the sell stop at close+ATR×ATR Factor; they do not trail afterward. With Evaluate Stop=true, a buy exits when the close falls below the stop and a sell when the close rises above it. With Strict Stop=true, the low for buys / the high for sells is also checked. It is not affected by whether Greedy is set. On a bar that has just entered, the stop check for that entry is not yet performed.
Greedy=true adds a condition only to range-based exits. For buys, an exit by the close requires close>entry value, and an exit by the low requires low>entry value. For sells, close<entry value and high<entry value are required respectively. It is not a function that exits simply on reaching the favorable side; a break of the Stop Period range is also required. It does not calculate actual profit or loss, commissions or spreads.
On each bar, it checks in this order: range-based exits for buy and sell, exits by the ATR stop, then buy and sell entries. When an exit and a re-entry occur on the same bar, a dot and an arrow may overlap at the same position. Both directions can also be active at the same time. This is a fixed calculation order using OHLC and does not reproduce whether the high or the low came first within that bar.
Load the history in MT5, and first apply only this product to the chart.
A green up arrow marks a bar that entered the buy state; a red down arrow, a bar that entered the sell state. Buy and sell are managed separately.
Put the default and the change example on separate charts, with the same symbol, timeframe and history.
Each time, it recalculates the entire loaded history from the oldest side, and at the start neither buy nor sell is entered. Judgment starts from max(Trade Period, Stop Period, ATR Period−1) in 0-based bar numbering. With Closed Bars Only=true, the latest forming bar is not judged, and calculation goes up to the bar 1 before it. If history is insufficient or conditions are not met, no marks appear. Because past states are carried over, marks may change with the history start position, additions or corrections.
| Included file | Purpose / location |
|---|---|
| TRI_Turtle_Entry_Exit_Marks.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 14 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.
InpTradePeriodInpStopPeriodInpStrictEntryInpStrictExitInpStrictStopInpGreedyInpEvaluateStopInpATRPeriodInpATRFactorInpClosedBarsOnlyInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYIt does not place, modify or close orders. There are no notifications or emails either.
Each time, it recalculates the entire loaded history from the oldest side, and at the start neither buy nor sell is entered. Judgment starts from max(Trade Period, Stop Period, ATR Period−1) in 0-based bar numbering. With Closed Bars Only=true, the latest forming bar is not judged, and calculation goes up to the bar 1 before it. If history is insufficient or conditions are not met, no marks appear. Because past states are carried over, marks may change with the history start position, additions or corrections.
The green buy-entry arrow and the blue buy-exit dot are 10 pixels below the bar's low. The red sell-entry arrow and the orange sell-exit dot are 10 pixels above the high. The dots are not at the fill price or the stop price.
Shows Produced by Trilogy Inc. and a QR code to https://www.trgy.co.jp/. When the same medium is used on the same chart, the display is shared. There is no account authentication.
Only entry and exit marks are shown. The reference channel lines, ATR stop lines and entry price text are not drawn. Do not read stop prices or profit and loss from the height of the exit dots.
With Greedy=true and Evaluate Stop=false, it does not exit on a range breakout to the unfavorable side and may keep the state for a long time until the conditions are met.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
Each time, it recalculates the entire loaded history from the oldest side, and at the start neither buy nor sell is entered. Judgment starts from max(Trade Period, Stop Period, ATR Period−1) in 0-based bar numbering. With Closed Bars Only=true, the latest forming bar is not judged, and calculation goes up to the bar 1 before it. If history is insufficient or conditions are not met, no marks appear. Because past states are carried over, marks may change with the history start position, additions or corrections.
Check the ranges and combinations in the settings. Keep the inputs for unused methods within range as well.
Turtle Channel is a separate product that shows a channel and direction. This product manages buy and sell separately and uses entry, exit and fixed ATR stop conditions. Do not assume that the marks match even with the same period.
Use separate charts, or adjust the brand position and margins. The images can also be checked at full size.
On each bar, it checks in this order: range-based exits for buy and sell, exits by the ATR stop, then buy and sell entries. When an exit and a re-entry occur on the same bar, a dot and an arrow may overlap at the same position. Both directions can also be active at the same time. This is a fixed calculation order using OHLC and does not reproduce whether the high or the low came first within that bar.
Dots are on the low side of the bar for buys and on the high side for sells. They do not show the exit check price or actual profit or loss. Greedy acts only on range-based exits, not on the ATR stop.
Greedy=true adds a condition only to range-based exits. For buys, an exit by the close requires close>entry value, and an exit by the low requires low>entry value. For sells, close<entry value and high<entry value are required respectively. It is not a function that exits simply on reaching the favorable side; a break of the Stop Period range is also required. It does not calculate actual profit or loss, commissions or spreads.
0 sets the stop equal to the entry bar's close. If you do not use the ATR stop, set Evaluate Stop=false.
Adjust the vertical scale and display range, and also check at full size.
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.
The entry reference is the highest high RH and lowest low RL of the preceding Trade Period bars, excluding the current bar. When not in the buy state, close>RH enters the buy state; when not in the sell state, close<RL enters the sell state. With Strict Entry=true, high>RH / low<RL are also added as conditions. The entry value is that bar's close (the same for entries by the high or low). The exit references SH and SL are the highest high and lowest low of the preceding Stop Period bars, excluding the current bar. In the buy state, close<SL exits; in the sell state, close>SH exits. With Strict Exit=true, low<SL / high>SH are also checked. The additional conditions for Greedy=true and the ATR stop are described below. A value equal to the reference does not meet the condition.
Each time, it recalculates the entire loaded history from the oldest side, and at the start neither buy nor sell is entered. Judgment starts from max(Trade Period, Stop Period, ATR Period−1) in 0-based bar numbering. With Closed Bars Only=true, the latest forming bar is not judged, and calculation goes up to the bar 1 before it. If history is insufficient or conditions are not met, no marks appear. Because past states are carried over, marks may change with the history start position, additions or corrections.
Only MT5 itself and this manual. Account authentication, external indicators and DLLs are not required.
The true range TR is max(current high, previous close)−min(current low, previous close); only the first bar of the history uses high−low. ATR is the simple average of TR over ATR Period bars including the current bar. The buy stop is fixed at the entry bar's close−ATR×ATR Factor and the sell stop at close+ATR×ATR Factor; they do not trail afterward. With Evaluate Stop=true, a buy exits when the close falls below the stop and a sell when the close rises above it. With Strict Stop=true, the low for buys / the high for sells is also checked. It is not affected by whether Greedy is set. On a bar that has just entered, the stop check for that entry is not yet performed.
On each bar, it checks in this order: range-based exits for buy and sell, exits by the ATR stop, then buy and sell entries. When an exit and a re-entry occur on the same bar, a dot and an arrow may overlap at the same position. Both directions can also be active at the same time. This is a fixed calculation order using OHLC and does not reproduce whether the high or the low came first within that bar.