Triple SuperTrend and MA Combo with Alerts
- Indicatori
- Versione: 1.1
Triple SuperTrend + Triple MA w/Cloud is a free indicator for MetaTrader 5. It draws up to three SuperTrend lines, each on its own timeframe, together with three moving averages and a coloured cloud, so you can see the trend on your chart and on higher timeframes at a glance.
Credit: the layout and default settings follow the manual trading strategy taught by Coach Pippy. She explains it in a video on her YouTube channel, Coach Pippy. Thanks to her for sharing it. This indicator draws the chart tools of that strategy; it does not trade it for you.
What it draws
- SuperTrend 1 on the chart timeframe (green when the trend is up, red when it is down). Default ATR 14, multiplier 3.5.
- SuperTrend 2 and SuperTrend 3 (off by default), each with its own timeframe, ATR period and multiplier. A line from another timeframe is drawn dashed: teal and coral for line 2, gold and brown for line 3.
- Three moving averages: SMMA 8, EMA 21 and EMA 62 by default. Each one can be Simple, Exponential, Smoothed or Linear weighted, with its own period.
- A cloud between MA 2 and MA 3: green while MA 2 is above MA 3, red while it is below.
- An arrow on the bar where SuperTrend 1 changes direction.
No repaint
- SuperTrend values and direction changes are calculated on closed bars only. The bar that is still forming shows the last closed value, and a change of direction appears only after the bar has closed.
- A line from a higher timeframe shows, at each bar, the value of the last higher-timeframe bar that had already closed at that moment. So the history on your chart looks exactly as it did in real time, with no look-ahead.
- Moving averages on the forming bar move with price, as every moving average does. Closed bars never change.
Alerts
Alerts fire once, when a bar closes with a change of direction. Choose which lines alert (SuperTrend 1 is on by default) and how: popup, sound, push notification to your phone, or e-mail. Push and e-mail use the settings in your terminal (Tools, Options).
Trend dashboard (off by default)
A small panel lists four timeframes (M15, H1, H4 and D1 by default) with the SuperTrend direction, the number of bars since the last change, and whether the last close is above, inside or below the cloud. You choose the corner and the timeframes.
Settings
- One shared ATR smoothing method for all three lines: Wilder (classic), Simple, Exponential, Linear weighted or Double exponential.
- Band centre price: Median (High+Low)/2 (default, the classic SuperTrend), Close or Typical (High+Low+Close)/3.
- Every colour can be changed in the inputs.
- 54 inputs in 9 groups: SuperTrend 1, 2 and 3, SuperTrend calculation, moving averages and cloud, flip arrows, alerts, trend dashboard, colours.
For Expert Advisor developers
The indicator values can be read with iCustom and CopyBuffer: buffer 0 = SuperTrend 1, 2 = SuperTrend 2, 4 = SuperTrend 3, 8 to 10 = the three moving averages, 13 = SuperTrend 1 direction (+1 up, -1 down), 14 = SuperTrend 1 change of direction (+1 or -1 on that bar), 15 and 16 = direction of SuperTrend 2 and 3. Read bar 1 or older for decisions. Note that each input group counts as one parameter when you pass inputs to iCustom by position.
How to install
Free products are downloaded inside MetaTrader 5: open the Market tab in the terminal's Toolbox, find the indicator, and click Download. It then appears in the Navigator under Indicators, Market.
What it does not do
- It does not trade and does not open or close positions.
- It does not predict price or promise profit. A SuperTrend follows the trend after it has started and gives false signals in sideways markets.
- It uses no DLLs, no internet connection and no external files.
Risk disclosure
Trading forex, CFDs, indices, metals and crypto carries a high risk of loss and is not suitable for everyone. This indicator is a charting tool, not investment advice or a signal service.
Support
Use the product comments or a private message on MQL5. Please include the symbol, timeframe and your settings.
1. Does it repaint? No, for closed bars. SuperTrend values and arrows are fixed when the bar closes, and higher-timeframe lines only use higher-timeframe bars that had already closed. Only the forming bar's moving-average values move with price.
2. Why is the higher-timeframe line a step behind? On purpose. At each bar it shows the last value that was really known at that time. Lines that use the still-forming higher-timeframe bar look better on history but change in real time.
3. Why did the arrow not appear immediately? A change of direction is confirmed when the bar closes. That avoids arrows that appear and disappear while the bar is still forming.
4. Why are the higher-timeframe lines empty? MetaTrader 5 may still be loading that timeframe's history. Wait a few seconds or open that timeframe once. A lower timeframe than the chart also works, but is rarely useful.
5. Can I use it in my own Expert Advisor? Yes, with iCustom; the buffer numbers are in the description. Read bar 1 or older.
6. Does it work on any symbol? Yes, on any MetaTrader 5 symbol and timeframe with enough history (at least the ATR period plus a few bars).
7. Where does the strategy come from? From Coach Pippy, who teaches it as a manual trading strategy. Search for Coach Pippy on YouTube to watch her explain it. The defaults here (SuperTrend ATR 14 x 3.5, SMMA 8, EMA 21, EMA 62) follow her settings.
