PINE LIBRARY
已更新 ObjectStack

Library "ObjectStack"
init()
push()
push()
push()
push()
push()
nextIndex()
nextIndex()
nextIndex()
nextIndex()
nextIndex()
delete()
delete()
delete()
delete()
delete()
cleanOldest()
cleanOldest()
cleanOldest()
cleanOldest()
cleanOldest()
init()
push()
push()
push()
push()
push()
nextIndex()
nextIndex()
nextIndex()
nextIndex()
nextIndex()
delete()
delete()
delete()
delete()
delete()
cleanOldest()
cleanOldest()
cleanOldest()
cleanOldest()
cleanOldest()
發行說明
This script shows an example of how to manage objects (lines/labels/boxes/linefill/tables) and prevent the need of garbage collecting and missing objects.- First you have to import the library: import cryptolinx/ObjectStack/1 as objx
- objx.init() is a handy helper function to init the library vars.
- Now, you can simply push your objects by:
Fixed Object (xOBJ) objx.push(xOBJ, any OBJ ....)
Forwarding Object (xOBJ) objx.push(fOBJ, any OBJ ....)
Declaration:
var x... = fiXed (left-locked)
var f.... = Forward (right-locked)
We hope you enjoy it! 🎉
CRYPTOLINX - jango_blockchained 😊👍
Disclaimer:
Trading success is all about following your trading strategy and the indicators should fit within your trading strategy, and not to be traded upon solely.
The script is for informational and educational purposes only. Use of the script does not constitute professional and/or financial advice. You alone have the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold cryptolinx TradingView user liable for any possible claim for damages arising from any decision you make based on use of the script.
發行說明
v3Updated:
cleanOldest()
- new argument `int _maxFixedPercent = 60` set a max. percent from argument `_max = 500` which sets the maximal object type count value.
This function fixed an error that occurred when the number of solid objects consumed 100% of the resource.
發行說明
v4Added more descriptions.
You can find an example library implementation here:
![[CLX][#03] Object-Stack (Labels/Lines/Boxes)](https://s3.tradingview.com/p/Pm3zSRnd_mid.png)
This script shows an example of how to manage objects (lines/labels/boxes) and prevent the need of garbage collecting and missing objects.
You only have to push your object into the right array.
*_FIXED (left-lock) or *_FORWARD (right-lock)
We hope you enjoy it! 🎉
CRYPTOLINX - jango_blockchained 😊👍
Disclaimer:
Trading success is all about following your trading strategy and the indicators should fit within your trading strategy, and not to be traded upon solely.
The script is for informational and educational purposes only. Use of the script does not constitute professional and/or financial advice. You alone have the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold cryptolinx TradingView user liable for any possible claim for damages arising from any decision you make based on use of the script.
發行說明
VERSION: v5- Added *** NEW FEATURE *** SHOW LAST FOR OBJECTS ***:
- showLast(simple int _bars) returns bool
- This function allows drawing of objects at runtime at a specified number of >bars in history< before script reachs end.
- It is like `show_last` argument at plots.
- remove fTABLE, fFILL
- change xTABLE, xFILL to TABLE, FILL
- change default max values to 500 (script standard)
發行說明
v6Added:
getIndexByTitle()
getNextIndex()
getSeriesTitle()
labelFixed()
labelForward()
Updated:
cleanOldest()
showLast()
Re-Added:
Linefill: fixed and forwarding
發行說明
v7Pine腳本庫
秉持TradingView一貫精神,作者已將此Pine代碼以開源函式庫形式發佈,方便我們社群中的其他Pine程式設計師重複使用。向作者致敬!您可以在私人專案或其他開源發表中使用此函式庫,但在公開發表中重用此代碼須遵守社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
Pine腳本庫
秉持TradingView一貫精神,作者已將此Pine代碼以開源函式庫形式發佈,方便我們社群中的其他Pine程式設計師重複使用。向作者致敬!您可以在私人專案或其他開源發表中使用此函式庫,但在公開發表中重用此代碼須遵守社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。