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
發布通知
v2

Added:
BarsInLastXDaysXXX(numTradingDays)
  Parameters:
    numTradingDays (int)
發布通知
v3

Added:
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)
發布通知
v4

Added:
CloseToEarnings(max_days)
  Parameters:
    max_days (int)
發布通知
v5
發布通知
v6

Added:
CheckAndTriggerManualSignals(open_time, close_time, signals)
  Parameters:
    open_time (int)
    close_time (int)
    signals (array<string>)
發布通知
v7

Added:
TestAlertAndStrat(jsonLONG)
  Parameters:
    jsonLONG (simple string)
發布通知
v8

Updated:
TestAlertAndStrat(jsonLONG)
  Parameters:
    jsonLONG (string)
發布通知
v9

Updated:
TestAlertAndStrat(jsonLONG, jsonSHORT, long)
  Parameters:
    jsonLONG (string)
    jsonSHORT (string)
    long (bool)
發布通知
v10

Added:
ServerAlert(symbol, strategy_name, action, price)
  Parameters:
    symbol (string)
    strategy_name (string)
    action (string)
    price (float)
發布通知
v11
發布通知
v12
發布通知
v13
發布通知
v14
alerts

Pine腳本庫

在真正的TradingView精神中,作者將這段Pine程式碼發佈為開源程式庫,以便我們社群的其他Pine程式設計師可以重複使用它。請向作者致敬!您可以私下使用這個函式庫,或在其他開源出版品中使用,但在出版物中再次使用這段程式碼將受到網站規則的約束。

免責聲明