ccIndidatorTime
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © ccTradingCourse

//@version=5
library("ccIndidatorTime")
export isDateRange(
     int _fromYear=2020, int _fromMonth=01, int _fromDay=01, int _fromHour=0, int _fromSecond=0, 
     int _endYear=2024, int _endMonth=12, int _endDay=31, int _endHour=23, int _endSecond=59) =>             
     
    start  = timestamp(_fromYear, _fromMonth, _fromDay, _fromHour, _fromSecond)
    finish = timestamp(_endYear, _endMonth, _endDay, _endHour, _endSecond) 
    isDate = time >= start and time <= finish          
    
export isDateRange_Long1(
     int _fromYear=2020, int _fromMonth=01, int _fromDay=01, int _fromHour=0, int _fromSecond=0, 
     int _endYear=2024, int _endMonth=12, int _endDay=31, int _endHour=23, int _endSecond=59) =>             
     
    start  = timestamp(_fromYear, _fromMonth, _fromDay, _fromHour, _fromSecond)
    finish = timestamp(_endYear, _endMonth, _endDay, _endHour, _endSecond) 
    isDate = time >= start and time <= finish   

export isDateRange_Long2(
     int _fromYear=2020, int _fromMonth=01, int _fromDay=01, int _fromHour=0, int _fromSecond=0, 
     int _endYear=2024, int _endMonth=12, int _endDay=31, int _endHour=23, int _endSecond=59) =>             
     
    start  = timestamp(_fromYear, _fromMonth, _fromDay, _fromHour, _fromSecond)
    finish = timestamp(_endYear, _endMonth, _endDay, _endHour, _endSecond) 
    isDate = time >= start and time <= finish   

export isDateRange_Long3(
     int _fromYear=2020, int _fromMonth=01, int _fromDay=01, int _fromHour=0, int _fromSecond=0, 
     int _endYear=2024, int _endMonth=12, int _endDay=31, int _endHour=23, int _endSecond=59) =>             
     
    start  = timestamp(_fromYear, _fromMonth, _fromDay, _fromHour, _fromSecond)
    finish = timestamp(_endYear, _endMonth, _endDay, _endHour, _endSecond) 
    isDate = time >= start and time <= finish  
    
export isDateRange_Long4(
     int _fromYear=2020, int _fromMonth=01, int _fromDay=01, int _fromHour=0, int _fromSecond=0, 
     int _endYear=2024, int _endMonth=12, int _endDay=31, int _endHour=23, int _endSecond=59) =>             
     
    start  = timestamp(_fromYear, _fromMonth, _fromDay, _fromHour, _fromSecond)
    finish = timestamp(_endYear, _endMonth, _endDay, _endHour, _endSecond) 
    isDate = time >= start and time <= finish    
    
export isDateRange_Short1(
     int _fromYear=2020, int _fromMonth=01, int _fromDay=01, int _fromHour=0, int _fromSecond=0, 
     int _endYear=2024, int _endMonth=12, int _endDay=31, int _endHour=23, int _endSecond=59) =>             
     
    start  = timestamp(_fromYear, _fromMonth, _fromDay, _fromHour, _fromSecond)
    finish = timestamp(_endYear, _endMonth, _endDay, _endHour, _endSecond) 
    isDate = time >= start and time <= finish 
    
export isDateRange_Short2(
     int _fromYear=2020, int _fromMonth=01, int _fromDay=01, int _fromHour=0, int _fromSecond=0, 
     int _endYear=2024, int _endMonth=12, int _endDay=31, int _endHour=23, int _endSecond=59) =>             
     
    start  = timestamp(_fromYear, _fromMonth, _fromDay, _fromHour, _fromSecond)
    finish = timestamp(_endYear, _endMonth, _endDay, _endHour, _endSecond) 
    isDate = time >= start and time <= finish  

export isDateRange_Short3(
     int _fromYear=2020, int _fromMonth=01, int _fromDay=01, int _fromHour=0, int _fromSecond=0, 
     int _endYear=2024, int _endMonth=12, int _endDay=31, int _endHour=23, int _endSecond=59) =>             
     
    start  = timestamp(_fromYear, _fromMonth, _fromDay, _fromHour, _fromSecond)
    finish = timestamp(_endYear, _endMonth, _endDay, _endHour, _endSecond) 
    isDate = time >= start and time <= finish  

export isDateRange_Short4(
     int _fromYear=2020, int _fromMonth=01, int _fromDay=01, int _fromHour=0, int _fromSecond=0, 
     int _endYear=2024, int _endMonth=12, int _endDay=31, int _endHour=23, int _endSecond=59) =>             
     
    start  = timestamp(_fromYear, _fromMonth, _fromDay, _fromHour, _fromSecond)
    finish = timestamp(_endYear, _endMonth, _endDay, _endHour, _endSecond) 
    isDate = time >= start and time <= finish      