Tom1trader

Change Per Period - Tom1trader

https://www.tradingview.com/chart/OsBXckpZ/
Plots the values between current close and close (specified number of periods) ago. User chooses the period defaulted to 1 and the period of a simple moving average of the values in the series. Made this specifically to measure the drift of the VIX exchange traded funds VXX, UVXY and SVXY. The fact that they must drift can be strategic in trading.

In the chart example it shows that VXX drifts down usually between -$10 and -$20 over a 60 day period (eyeball) and that for a few days in February of 2017 it had drifted down -$75. To find a positive change (briefly) you can see you have to go back to November of 2016. If you use Heiken Ashi candles or ohlc bars or change between regular candles and these there is a set of variables in this code that lets you do that without changing your indicator results. Anyhow use it or any of the code if it helps you, good luck with your trading and keep smiling! (any feedback appreciated also :-) )
開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?