PINE LIBRARY
已更新

MyLibrary001

382
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

免责声明

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.