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
#!/bin/bash | |
# Colors for output | |
GREEN='\033[0;32m' | |
RED='\033[0;31m' | |
NC='\033[0m' | |
# Check command existence | |
command_exists() { | |
command -v "$1" >/dev/null 2>&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
import hassapi as hassapi | |
''' | |
Hello World App | |
Args: | |
''' | |
class HelloWorld(): | |
def initialize(self): |
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
study(title="Moving Average", shorttitle="MA100 5min", overlay=true) | |
out = interval > 15 ? na : isintraday ? security('FX:GBPUSD', "5", sma(close,100)) : na | |
plot(out, color=maroon, style=circles, title="MA100 5min") |
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
study(title="Moving Average", shorttitle="MA100 5min", overlay=true) | |
out = interval > 15 ? na : isintraday ? security(ticker, "5", sma(close,100)) : na | |
plot(out, color=blue, style=circles, title="MA100 5min") |
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
study(title="Moving Average", shorttitle="MA100 1h", overlay=true) | |
tics = 100 | |
out = isweekly or ismonthly ? na : security(ticker, "60", sma(close,tics)) | |
plot(out, color=blue, style=line, linewidth=2, title="MA100 1h") | |