PINE LIBRARY

High Risk Trading Time

By daviddwlee84
Library "HighRiskTradingTime"
Utilities for time range labeling

openTime()

timeMinInDay(t, timezone)
  Convert given time to minutes of day
  Parameters:
    t (int): Time
    timezone (string): Timezone of the input h:m
return Minutes of day
All exported functions args should be typified

timeMinInDayManual(h, m)
  Convert given hour and minute to minutes of day
  Parameters:
    h (int): Hour in a day
    m (int): Minute in a day

isForexHighRiskTime()
  Return if current time is High Risk for Forex
timesessions
daviddwlee84

Pine library

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House rules.

Disclaimer