Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
62fd9f305e | ||
|
|
1b950b2484 | ||
|
|
b02ebf32a7 |
@@ -48,3 +48,24 @@ It also includes crossover logic (8/18 SMA) and long-term trend filters (100 SMA
|
|||||||
- Add alerts for squeeze releases.
|
- Add alerts for squeeze releases.
|
||||||
- Backtest combined signals in `ttm_strategy.pine`.
|
- Backtest combined signals in `ttm_strategy.pine`.
|
||||||
- Experiment with different lengths (e.g., 21, 30) for volatility adaptation.
|
- Experiment with different lengths (e.g., 21, 30) for volatility adaptation.
|
||||||
|
|
||||||
|
|
||||||
|
## Usage Notes
|
||||||
|
|
||||||
|
To get the best visual results when applying these indicators in TradingView:
|
||||||
|
|
||||||
|
1. **Open Chart Settings**
|
||||||
|
- Right‑click anywhere on the chart and select **Settings**.
|
||||||
|
|
||||||
|
2. **Set Background to White**
|
||||||
|
- In the *Appearance* tab, change the chart background color to **White**.
|
||||||
|
|
||||||
|
3. **Configure Candles**
|
||||||
|
- In the *Symbol* tab, set the chart type to **Candles**.
|
||||||
|
- Change candle **body**, **wick**, and **border** colors to **White** so the indicator coloring stands out clearly.
|
||||||
|
|
||||||
|
4. **Hide Default Chart Elements**
|
||||||
|
- At the top of the chart, click the **eye icon** to hide the default overlay.
|
||||||
|
- This ensures only the indicator’s custom colors and signals are visible.
|
||||||
|
|
||||||
|
After these adjustments, paste the Pine Script into the Pine Editor, click **Add to Chart**, and you’ll see the clean indicator visuals as intended.
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
//@version=5
|
||||||
|
indicator("TTM Trend (Solid Candles)", overlay=true)
|
||||||
|
|
||||||
|
length = input.int(20, "Trend Length")
|
||||||
|
ma = ta.sma(close, length)
|
||||||
|
|
||||||
|
// Define trend colors
|
||||||
|
trendColor = close > ma ? color.blue : close < ma ? color.red : color.gray
|
||||||
|
|
||||||
|
// Redraw candles with solid colors
|
||||||
|
plotcandle(open, high, low, close,
|
||||||
|
color=trendColor, // candle body
|
||||||
|
wickcolor=trendColor, // wick
|
||||||
|
bordercolor=trendColor, // outline
|
||||||
|
title="TTM Trend Candles")
|
||||||
|
|||||||
Reference in New Issue
Block a user