PINE LIBRARY
已更新 MyLibrary001

Library "MyLibrary001"
Library for calculating the number of bars in the last X trading days
BarsInLastXDays(numTradingDays)
BarsInLastXDays
description Calculates the number of bars in the last X trading days
Parameters:
numTradingDays (int): int Number of trading days to consider
Returns: tuple(float, float) A tuple with the number of bars and the bar duration
Library for calculating the number of bars in the last X trading days
BarsInLastXDays(numTradingDays)
BarsInLastXDays
description Calculates the number of bars in the last X trading days
Parameters:
numTradingDays (int): int Number of trading days to consider
Returns: tuple(float, float) A tuple with the number of bars and the bar duration
發行說明
v2Added:
BarsInLastXDaysXXX(numTradingDays)
Parameters:
numTradingDays (int)
發行說明
v3Added:
InTimeRange(my_start, my_finish, my_time)
Parameters:
my_start (int)
my_finish (int)
my_time (int)
isWithinLastInterval(my_time, my_time1)
Parameters:
my_time (int)
my_time1 (int)
Removed:
BarsInLastXDaysXXX(numTradingDays)
發行說明
v4Added:
CloseToEarnings(max_days)
Parameters:
max_days (int)
發行說明
v5發行說明
v6Added:
CheckAndTriggerManualSignals(open_time, close_time, signals)
Parameters:
open_time (int)
close_time (int)
signals (array<string>)
發行說明
v7Added:
TestAlertAndStrat(jsonLONG)
Parameters:
jsonLONG (simple string)
發行說明
v8Updated:
TestAlertAndStrat(jsonLONG)
Parameters:
jsonLONG (string)
發行說明
v9Updated:
TestAlertAndStrat(jsonLONG, jsonSHORT, long)
Parameters:
jsonLONG (string)
jsonSHORT (string)
long (bool)
發行說明
v10Added:
ServerAlert(symbol, strategy_name, action, price)
Parameters:
symbol (string)
strategy_name (string)
action (string)
price (float)
發行說明
v11發行說明
v12發行說明
v13發行說明
v14Pine腳本庫
秉持 TradingView 一貫的共享精神,作者將此 Pine 程式碼發佈為開源庫,讓社群中的其他 Pine 程式設計師能夠重複使用。向作者致敬!您可以在私人專案或其他開源發佈中使用此庫,但在公開發佈中重複使用該程式碼需遵守社群規範。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
Pine腳本庫
秉持 TradingView 一貫的共享精神,作者將此 Pine 程式碼發佈為開源庫,讓社群中的其他 Pine 程式設計師能夠重複使用。向作者致敬!您可以在私人專案或其他開源發佈中使用此庫,但在公開發佈中重複使用該程式碼需遵守社群規範。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。