This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@version=5 | |
indicator("Session Times", overlay=true) | |
///Sessions | |
morning = input.session("0830-1030", "Morgen Impuls") | |
midday = input.session("1030-1530", "Mittagspause") | |
afternoon = input.session("1530-1730", "Nachmittag Impuls") | |
evening = input.session("1730-2030", "Abend Pause") | |
closing = input.session("2030-2200", "Abend Impuls") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@version=5 | |
indicator('Vertical Lines', overlay=true, scale=scale.none) | |
sess1 = input.float(10.0, '1', minval=0.0, maxval=23.60) | |
sess2 = input.float(12.0, '2', minval=0.0, maxval=23.60) | |
sess3 = input.float(14.0, '3', minval=0.0, maxval=23.60) | |
offset = input.int(60, "Future offset", 0, 120, 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'net/dav' | |
class WebDavWorker | |
attr_reader :uri, :username, :password, :errors | |
attr_accessor :connection | |
def self.connect_to_uri uri, username, password | |
worker = WebDavWorker.new(uri, username, password) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
duplicate_keys = [] | |
all_keys.uniq.each do |k| | |
count = all_keys.count(k) | |
duplicate_keys << k if count > 1 | |
end |