OPEN-SOURCE SCRIPT
Shiori TFGI Lite Technical Fear and Greed Index (Open Source)

Shiori’s TFGI Lite
Technical Fear & Greed Index (Open Source)
---
English — Official Description
Shiori’s TFGI Lite is an open-source Technical Fear & Greed Index designed to help traders and investors understand market emotion, not predict price.
Instead of generating buy or sell signals, this indicator focuses on answering a calmer, more important question:
> Is the market emotionally stretched away from its own historical balance?
TFGI Lite combines three well-known technical dimensions — volatility, price deviation, and momentum — and normalizes them into a single, intuitive 0–100 sentiment scale.
What This Indicator Is
* A market context tool, not a trading signal
* A way to observe emotional extremes and misalignment
* Designed for any asset, any timeframe
* Fully open source, transparent and adjustable
Core Components
* Fear Factor: Short-term vs long-term ATR ratio with logarithmic compression
* Greed Factor: Price Z-score with tanh-based normalization
* Momentum Factor: Classic RSI as emotional momentum
These factors are blended and gently smoothed to form the current sentiment level.
Historical Baseline & Deviation
TFGI Lite introduces a historical baseline concept:
* The baseline represents the market’s own emotional equilibrium
* Deviation measures how far current sentiment has drifted from that equilibrium
This allows the indicator to highlight conditions such as:
* 🔥 Overheated: High sentiment + strong positive deviation
* 💎 Undervalued: Low sentiment + strong negative deviation
* ⚠️ Misaligned: Emotionally extreme, but inconsistent with historical behavior
How to Use (Lite Philosophy)
* Use TFGI Lite as a background compass, not a trigger
* Combine it with price structure, risk management, and your own strategy
* Extreme readings suggest emotional tension, not immediate reversal
> Think of TFGI Lite as market weather — it tells you the climate, not when to open or close the door.
About Parameters & Customization
All parameters in TFGI Lite are fully adjustable. Markets have different personalities — volatility, sentiment range, and emotional extremes vary by asset and timeframe.
You are encouraged to:
* Adjust fear/greed thresholds based on the asset you trade
* Tune smoothing and baseline lengths to match your timeframe
* Treat sentiment levels as relative, not universal absolutes
There is no single “correct” setting — TFGI Lite is designed to adapt to your market, not force the market into a fixed model.
Important Notes
* This is a technical sentiment indicator, not financial advice
* No future performance is implied
* Designed to reduce emotional decision-making, not replace it
---
🇹🇼 繁體中文 — 指標說明
Shiori’s TFGI Lite(技術型恐懼與貪婪指數) 是一款開源的市場情緒指標,目的不是預測價格,而是幫助你理解市場當下的「情緒狀態」。
與其問「現在該不該買或賣」,TFGI Lite 更關心的是:
> 市場情緒是否已經偏離了它自己的歷史平衡?
本指標整合三個常見但關鍵的技術面向,並統一轉換為 0–100 的情緒刻度,讓市場狀態一眼可讀。
這個指標是什麼
* 市場情緒與狀態觀察工具(非買賣訊號)
* 用來辨識情緒極端與錯位狀態
* 適用於任何商品與任何週期
* 完全開源,可學習、可調整
核心構成
* 恐懼因子:短期 / 長期 ATR 比例(對數壓縮)
* 貪婪因子:價格 Z-Score(tanh 正規化)
* 動能因子:RSI 作為情緒動量
歷史基準與偏離
TFGI Lite 引入「歷史情緒基準」的概念:
* 基準代表市場長期的情緒平衡
* 偏離值顯示當前情緒與自身歷史的距離
因此可以辨識:
* 🔥 過熱(高情緒 + 正向偏離)
* 💎 低估(低情緒 + 負向偏離)
* ⚠️ 錯位(情緒極端,但不符合歷史行為)
使用建議(Lite 精神)
* 將 TFGI Lite 作為「背景雷達」,而非進出場依據
* 搭配價格結構、風險控管與個人策略
* 情緒極端不等於立刻反轉
> 你可以把它想像成市場的天氣預報,而不是交易指令。
參數調整與個人化說明
本指標中的所有參數皆可調整。不同市場、不同商品,其波動特性與情緒區間並不相同。
建議你:
* 依標的特性自行調整恐懼 / 貪婪門檻
* 依交易週期調整平滑與基準長度
* 將情緒數值視為「相對狀態」,而非固定答案
TFGI Lite 的設計初衷,是讓你定義市場,而不是被單一參數綁住。
溫馨提示
如果你在調整指標參數時遇到不熟悉的項目,請點擊參數旁邊的 「!」圖示,每個設定都有清楚的說明。
本指標設計為可慢慢探索,請依自己的節奏理解市場狀態。
---
🇯🇵 日本語 — インジケーター説明
Shiori’s TFGI Lite は、価格を予測するための指標ではなく、
市場の「感情状態」を可視化するためのオープンソース指標です。
この指標が問いかけるのは、
> 現在の市場感情は、過去のバランスからどれだけ乖離しているのか?
という一点です。
特徴
* 売買シグナルではありません
* 市場心理の極端さやズレを観察するためのツールです
* すべての銘柄・時間軸に対応
* 学習・調整可能なオープンソース
構成要素
* 恐怖要素:ATR 比率(対数圧縮)
* 強欲要素:価格 Z スコア(tanh 正規化)
* モメンタム:RSI
ベースラインと乖離
市場自身の感情的な基準点と、
現在の感情との距離を測定します。
過熱・割安・感情のズレを視覚的に把握できます。
パラメータ調整について
TFGI Lite のすべてのパラメータは調整可能です。市場ごとにボラティリティや感情の振れ幅は異なります。
* 恐怖・強欲の閾値は銘柄に応じて調整してください
* 時間軸に合わせて平滑化やベースライン期間を変更できます
* 数値は絶対値ではなく、相対的な感情状態として捉えてください
この指標は、市場に合わせて柔軟に使うことを前提に設計されています。
フレンドリーヒント
入力項目で分からない設定がある場合は、横に表示されている 「!」アイコン をクリックしてください。各パラメータには分かりやすい説明が用意されています。
このインジケーターは、落ち着いて市場の状態を理解するためのものです。
---
🇰🇷 한국어 — 지표 설명
Shiori’s TFGI Lite는 매수·매도 신호를 제공하는 지표가 아니라,
시장 감정의 상태를 이해하기 위한 기술적 심리 지표입니다.
이 지표의 핵심 질문은 다음과 같습니다.
> 현재 시장 감정은 과거의 균형 상태에서 얼마나 벗어나 있는가?
특징
* 거래 신호 아님
* 시장 심리의 과열·저평가·불일치를 관찰
* 모든 자산, 모든 타임프레임 지원
* 오픈소스 기반
구성 요소
* 공포 요인: ATR 비율 (로그 압축)
* 탐욕 요인: Z-Score (tanh 정규화)
* 모멘텀: RSI
활용 방법
TFGI Lite는 배경 지표로 사용하세요.
가격 구조와 리스크 관리와 함께 사용할 때 가장 효과적입니다.
파라미터 조정 안내
TFGI Lite의 모든 설정 값은 사용자가 직접 조정할 수 있습니다. 자산마다 변동성과 감정 범위는 서로 다릅니다.
* 공포 / 탐욕 기준값은 종목 특성에 맞게 조정하세요
* 타임프레임에 따라 스무딩 및 기준 기간을 변경할 수 있습니다
* 감정 수치는 절대적인 값이 아닌 상대적 상태로 해석하세요
이 지표는 하나의 정답을 강요하지 않고, 시장에 맞춰 적응하도록 설계되었습니다.
친절한 안내
설정 값이 익숙하지 않다면, 항목 옆에 있는 "!" 아이콘을 클릭해 보세요. 각 입력값마다 설명이 제공됩니다.
이 지표는 천천히 시장의 맥락을 이해하도록 설계되었습니다.
---
Educational purpose only. Not financial advice.
---
#FearAndGreed #MarketSentiment #TradingPsychology #TechnicalAnalysis #OpenSourceIndicator #Volatility #RSI #ATR #ZScore #MultiAsset #TradingView #Shiori
Technical Fear & Greed Index (Open Source)
---
English — Official Description
Shiori’s TFGI Lite is an open-source Technical Fear & Greed Index designed to help traders and investors understand market emotion, not predict price.
Instead of generating buy or sell signals, this indicator focuses on answering a calmer, more important question:
> Is the market emotionally stretched away from its own historical balance?
TFGI Lite combines three well-known technical dimensions — volatility, price deviation, and momentum — and normalizes them into a single, intuitive 0–100 sentiment scale.
What This Indicator Is
* A market context tool, not a trading signal
* A way to observe emotional extremes and misalignment
* Designed for any asset, any timeframe
* Fully open source, transparent and adjustable
Core Components
* Fear Factor: Short-term vs long-term ATR ratio with logarithmic compression
* Greed Factor: Price Z-score with tanh-based normalization
* Momentum Factor: Classic RSI as emotional momentum
These factors are blended and gently smoothed to form the current sentiment level.
Historical Baseline & Deviation
TFGI Lite introduces a historical baseline concept:
* The baseline represents the market’s own emotional equilibrium
* Deviation measures how far current sentiment has drifted from that equilibrium
This allows the indicator to highlight conditions such as:
* 🔥 Overheated: High sentiment + strong positive deviation
* 💎 Undervalued: Low sentiment + strong negative deviation
* ⚠️ Misaligned: Emotionally extreme, but inconsistent with historical behavior
How to Use (Lite Philosophy)
* Use TFGI Lite as a background compass, not a trigger
* Combine it with price structure, risk management, and your own strategy
* Extreme readings suggest emotional tension, not immediate reversal
> Think of TFGI Lite as market weather — it tells you the climate, not when to open or close the door.
About Parameters & Customization
All parameters in TFGI Lite are fully adjustable. Markets have different personalities — volatility, sentiment range, and emotional extremes vary by asset and timeframe.
You are encouraged to:
* Adjust fear/greed thresholds based on the asset you trade
* Tune smoothing and baseline lengths to match your timeframe
* Treat sentiment levels as relative, not universal absolutes
There is no single “correct” setting — TFGI Lite is designed to adapt to your market, not force the market into a fixed model.
Important Notes
* This is a technical sentiment indicator, not financial advice
* No future performance is implied
* Designed to reduce emotional decision-making, not replace it
---
🇹🇼 繁體中文 — 指標說明
Shiori’s TFGI Lite(技術型恐懼與貪婪指數) 是一款開源的市場情緒指標,目的不是預測價格,而是幫助你理解市場當下的「情緒狀態」。
與其問「現在該不該買或賣」,TFGI Lite 更關心的是:
> 市場情緒是否已經偏離了它自己的歷史平衡?
本指標整合三個常見但關鍵的技術面向,並統一轉換為 0–100 的情緒刻度,讓市場狀態一眼可讀。
這個指標是什麼
* 市場情緒與狀態觀察工具(非買賣訊號)
* 用來辨識情緒極端與錯位狀態
* 適用於任何商品與任何週期
* 完全開源,可學習、可調整
核心構成
* 恐懼因子:短期 / 長期 ATR 比例(對數壓縮)
* 貪婪因子:價格 Z-Score(tanh 正規化)
* 動能因子:RSI 作為情緒動量
歷史基準與偏離
TFGI Lite 引入「歷史情緒基準」的概念:
* 基準代表市場長期的情緒平衡
* 偏離值顯示當前情緒與自身歷史的距離
因此可以辨識:
* 🔥 過熱(高情緒 + 正向偏離)
* 💎 低估(低情緒 + 負向偏離)
* ⚠️ 錯位(情緒極端,但不符合歷史行為)
使用建議(Lite 精神)
* 將 TFGI Lite 作為「背景雷達」,而非進出場依據
* 搭配價格結構、風險控管與個人策略
* 情緒極端不等於立刻反轉
> 你可以把它想像成市場的天氣預報,而不是交易指令。
參數調整與個人化說明
本指標中的所有參數皆可調整。不同市場、不同商品,其波動特性與情緒區間並不相同。
建議你:
* 依標的特性自行調整恐懼 / 貪婪門檻
* 依交易週期調整平滑與基準長度
* 將情緒數值視為「相對狀態」,而非固定答案
TFGI Lite 的設計初衷,是讓你定義市場,而不是被單一參數綁住。
溫馨提示
如果你在調整指標參數時遇到不熟悉的項目,請點擊參數旁邊的 「!」圖示,每個設定都有清楚的說明。
本指標設計為可慢慢探索,請依自己的節奏理解市場狀態。
---
🇯🇵 日本語 — インジケーター説明
Shiori’s TFGI Lite は、価格を予測するための指標ではなく、
市場の「感情状態」を可視化するためのオープンソース指標です。
この指標が問いかけるのは、
> 現在の市場感情は、過去のバランスからどれだけ乖離しているのか?
という一点です。
特徴
* 売買シグナルではありません
* 市場心理の極端さやズレを観察するためのツールです
* すべての銘柄・時間軸に対応
* 学習・調整可能なオープンソース
構成要素
* 恐怖要素:ATR 比率(対数圧縮)
* 強欲要素:価格 Z スコア(tanh 正規化)
* モメンタム:RSI
ベースラインと乖離
市場自身の感情的な基準点と、
現在の感情との距離を測定します。
過熱・割安・感情のズレを視覚的に把握できます。
パラメータ調整について
TFGI Lite のすべてのパラメータは調整可能です。市場ごとにボラティリティや感情の振れ幅は異なります。
* 恐怖・強欲の閾値は銘柄に応じて調整してください
* 時間軸に合わせて平滑化やベースライン期間を変更できます
* 数値は絶対値ではなく、相対的な感情状態として捉えてください
この指標は、市場に合わせて柔軟に使うことを前提に設計されています。
フレンドリーヒント
入力項目で分からない設定がある場合は、横に表示されている 「!」アイコン をクリックしてください。各パラメータには分かりやすい説明が用意されています。
このインジケーターは、落ち着いて市場の状態を理解するためのものです。
---
🇰🇷 한국어 — 지표 설명
Shiori’s TFGI Lite는 매수·매도 신호를 제공하는 지표가 아니라,
시장 감정의 상태를 이해하기 위한 기술적 심리 지표입니다.
이 지표의 핵심 질문은 다음과 같습니다.
> 현재 시장 감정은 과거의 균형 상태에서 얼마나 벗어나 있는가?
특징
* 거래 신호 아님
* 시장 심리의 과열·저평가·불일치를 관찰
* 모든 자산, 모든 타임프레임 지원
* 오픈소스 기반
구성 요소
* 공포 요인: ATR 비율 (로그 압축)
* 탐욕 요인: Z-Score (tanh 정규화)
* 모멘텀: RSI
활용 방법
TFGI Lite는 배경 지표로 사용하세요.
가격 구조와 리스크 관리와 함께 사용할 때 가장 효과적입니다.
파라미터 조정 안내
TFGI Lite의 모든 설정 값은 사용자가 직접 조정할 수 있습니다. 자산마다 변동성과 감정 범위는 서로 다릅니다.
* 공포 / 탐욕 기준값은 종목 특성에 맞게 조정하세요
* 타임프레임에 따라 스무딩 및 기준 기간을 변경할 수 있습니다
* 감정 수치는 절대적인 값이 아닌 상대적 상태로 해석하세요
이 지표는 하나의 정답을 강요하지 않고, 시장에 맞춰 적응하도록 설계되었습니다.
친절한 안내
설정 값이 익숙하지 않다면, 항목 옆에 있는 "!" 아이콘을 클릭해 보세요. 각 입력값마다 설명이 제공됩니다.
이 지표는 천천히 시장의 맥락을 이해하도록 설계되었습니다.
---
Educational purpose only. Not financial advice.
---
#FearAndGreed #MarketSentiment #TradingPsychology #TechnicalAnalysis #OpenSourceIndicator #Volatility #RSI #ATR #ZScore #MultiAsset #TradingView #Shiori
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.