This file contains 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
{ | |
_metainfoVersion: 27, | |
isTVScript: false, | |
isTVScriptStub: false, | |
is_hidden_study: false, | |
defaults: { | |
styles: { | |
plot_0: { | |
linestyle: 0, | |
linewidth: 1, |
This file contains 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
# Containerized version of AWS CLI. | |
# | |
# docker build -t awscli . | |
# | |
FROM debian:9 | |
MAINTAINER Denis T. <dev@denis-it.com> | |
RUN apt-get update && \ | |
apt-get install --no-install-recommends -y awscli |
This file contains 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
#!/bin/bash | |
# Copy script to `/etc/cron.hourly/autohalt` (*without extension*). | |
# Log and pid files will be placed in root directory. | |
DELAY=${1:-30} # minutes | |
LOG=${2:-"autohalt.log"} | |
PID=${2:-"autohalt.pid"} | |
function log { |
This file contains 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
'use strict' | |
const { getPaths, edit } = require('@rescripts/utilities') | |
const loaderUtils = require('loader-utils') | |
const path = require('path') | |
const paths = require('react-scripts/config/paths') | |
const MiniCssExtractPlugin = require('mini-css-extract-plugin') | |
const AntdScssThemePlugin = require('@atbtech/antd-scss-theme-plugin') |
This file contains 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=4 | |
// https://stackoverflow.com/questions/62162866/problem-plotting-line-at-price-coordinates/62165505 | |
study("Sessions",overlay=true) | |
t1 = timestamp("GMT", year, month, dayofmonth, 0, 00, 00) | |
t2 = timestamp("GMT-5", year, month, dayofmonth, 0, 00, 00) | |
backLook = 86400000 * 1.5 | |
displayCondition = timeframe.isdwm == false and (time > timenow - backLook) |
This file contains 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=4 | |
study("Custom SMA") | |
CustomSma(source, length) => | |
sum = source | |
for i = 0 to length - 2 | |
sum := sum + source[i] | |
sum / length | |
plot(sma(close, 14)) |