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提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。