OPEN-SOURCE SCRIPT
已更新 scaled.orders [highwater]

FOR EDUCATIONAL PURPOSES
There are multiple tools that allow you to place "scaled orders" on your exchange, namely Alertatron and Bybit Tools. This script is based on some Alertatron features, but you can use it for any grid like order placing strategy. Even if thats not your thing it's an example of how to use arrays in pinescript.
FROM PRICE - is the price to start your orders.
TO PRICE - is the price your orders will end.
SCALED TYPES:
LINEAR - will distribute orders evenly between from and to price.
EASE IN - will cluster orders closer to from price, then start to widen the gaps as you move closer to to price.
EASE OUT - will have wider gaps near from price, and start to cluster near to price.
EASE IN OUT - will cluster orders near both from price and to price.
COUNT - number of orders in each scaled order.
There are multiple tools that allow you to place "scaled orders" on your exchange, namely Alertatron and Bybit Tools. This script is based on some Alertatron features, but you can use it for any grid like order placing strategy. Even if thats not your thing it's an example of how to use arrays in pinescript.
FROM PRICE - is the price to start your orders.
TO PRICE - is the price your orders will end.
SCALED TYPES:
LINEAR - will distribute orders evenly between from and to price.
EASE IN - will cluster orders closer to from price, then start to widen the gaps as you move closer to to price.
EASE OUT - will have wider gaps near from price, and start to cluster near to price.
EASE IN OUT - will cluster orders near both from price and to price.
COUNT - number of orders in each scaled order.
發行說明
fixed a error in the loop, now the orders will fill all the way to the "to price".開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。