PINE LIBRARY

MyLibrary001

Mis à jour
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
Notes de version
v2

Added:
BarsInLastXDaysXXX(numTradingDays)
  Parameters:
    numTradingDays (int)
Notes de version
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)
Notes de version
v4

Added:
CloseToEarnings(max_days)
  Parameters:
    max_days (int)
Notes de version
v5
Notes de version
v6

Added:
CheckAndTriggerManualSignals(open_time, close_time, signals)
  Parameters:
    open_time (int)
    close_time (int)
    signals (array<string>)
Notes de version
v7

Added:
TestAlertAndStrat(jsonLONG)
  Parameters:
    jsonLONG (simple string)
Notes de version
v8

Updated:
TestAlertAndStrat(jsonLONG)
  Parameters:
    jsonLONG (string)
Notes de version
v9

Updated:
TestAlertAndStrat(jsonLONG, jsonSHORT, long)
  Parameters:
    jsonLONG (string)
    jsonSHORT (string)
    long (bool)
Notes de version
v10

Added:
ServerAlert(symbol, strategy_name, action, price)
  Parameters:
    symbol (string)
    strategy_name (string)
    action (string)
    price (float)
Notes de version
v11
Notes de version
v12
Notes de version
v13
Notes de version
v14
alerts

Bibliothèque Pine

Dans le plus pur esprit TradingView, l'auteur a publié ce code Pine en tant que bibliothèque open-source afin que d'autres programmeurs Pine de notre communauté puissent le réutiliser. Bravo à l'auteur! Vous pouvez utiliser cette bibliothèque en privé ou dans d'autres publications à code source ouvert, mais la réutilisation de ce code dans une publication est régie par nos Règles.

Clause de non-responsabilité