OPEN-SOURCE SCRIPT

Highest Volume Futures

已更新
Script tracks the volume of futures contracts which are not expired for the current and next year. Provides a label at the real-time bar and when a different contract has higher volume in the last bar of the timeframe input as long as it is different from the current ticker. It should display on continuous and lower volume contract charts.
Intended to be used with a higher timeframe input.

Currently supports ES, MES, NQ, MNQ, RTY, M2K, YM, MYM, BTC, MBT, CL, MCL, GC, MGC, E7 and J7. If you'd like to add your own, then include the syminfo.root of your ticker and the appropriate month codes for that contract in the validMonthCodes switch list.
發行說明
Adjusted label offset to be a multiplier of the highest value instead of an added integer.
發行說明
Corrected comment on input.
發行說明
Removed request.security calls to check expiration dates on next years contract which was causing excessive request.security calls on futures with monthly contracts.
發行說明
Updating chart; no functional changes to script.
futuresPortfolio managementrollover

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明