3 Commits
Author SHA1 Message Date
mfcheah 62fd9f305e update README with TradingView usage notes 2026-04-09 14:45:48 +08:00
mfcheah 1b950b2484 update README with TradingView usage notes 2026-04-09 14:42:36 +08:00
mfcheah b02ebf32a7 update scripts 2026-04-09 14:22:31 +08:00
2 changed files with 36 additions and 0 deletions
+21
View File
@@ -48,3 +48,24 @@ It also includes crossover logic (8/18 SMA) and long-term trend filters (100 SMA
- Add alerts for squeeze releases.
- Backtest combined signals in `ttm_strategy.pine`.
- 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**
- Rightclick 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 indicators custom colors and signals are visible.
After these adjustments, paste the Pine Script into the Pine Editor, click **Add to Chart**, and youll see the clean indicator visuals as intended.
+15
View File
@@ -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")