Skip to content

Instantly share code, notes, and snippets.

View flepied's full-sized avatar
🏠
Working from home

Frédéric Lepied flepied

🏠
Working from home
  • Le Chesnay - France
View GitHub Profile
#!/bin/bash
#CHARGEMENT DES VARIABLES DE CONFIGURATION
if [ ! -r $HOME/.boulotrc ]; then
echo "Aucun fichier de configuration $HOME/.boulotrc" 1>&2
exit 1
fi
. $HOME/.boulotrc
Verifying my Blockstack ID is secured with the address 1HpAEUkNbxJU7vmb44BHxYQN5N6Pi6JKXU https://explorer.blockstack.org/address/1HpAEUkNbxJU7vmb44BHxYQN5N6Pi6JKXU
rem risk must be a variable of the indicator with the float type
rem hyper climax run: 4.5R on 3 bars
rem climax run: 3.5R on 4 bars
rem sleeping: close bellow the moving average 20
hyper = ((High - Lowest[2](low[1])) >= (4.5 * risk))
climax = ((High - Lowest[3](low[1])) >= (3.5 * risk))
sleeping = (Average[20](Close) > Close)