OPEN-SOURCE SCRIPT

Recent Pullback Percentage

21
//version=5
indicator("Recent Pullback Percentage", shorttitle="Pullback %", format=format.percent)

// 定義回顧期間
lookbackPeriod = input.int(60, title="Lookback Period")

// 找到近期最高價
highestHigh = ta.highest(high, lookbackPeriod)

// 計算回檔百分比
pullbackPercent = ((close - highestHigh) / highestHigh)

plot(pullbackPercent, title="Pullback Percentage")

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.