Skip to content

Instantly share code, notes, and snippets.

View targc's full-sized avatar
🎯
Focusing

targc

🎯
Focusing
View GitHub Profile
//@version=5
strategy(title="Tony's EMA Scalper - Buy / Sell 1.1 (1H)",
shorttitle="TUX EMA Scalper",
overlay=true,
initial_capital=500,
default_qty_type=strategy.percent_of_equity,
default_qty_value=100, // 100% of balance invested on each trade
commission_type=strategy.commission.cash_per_contract,
commission_value=0.005) // Interactive Brokers rate
from datetime import datetime
from pandas import os
import polars as pl
from google.cloud import bigquery
sqlserver_dsn = os.environ['SQLSERVER_DSN']
sqlserver_query = os.environ['SQLSERVER_QUERY']
bigquery_svc_acc_path = os.environ['BIGQUERY_SVC_ACC_PATH']
bigquery_project_id = os.environ['BIGQUERY_PROJECT_ID']
@targc
targc / create_nettool_pod_by_specific_k8s_node.sh
Created March 14, 2025 11:11
Create nettool Pod by specific K8s Node
kubectl run testnet --image jonlabelle/network-tools:latest --overrides='{"apiVersion": "v1", "spec": {"nodeSelector": { "kubernetes.io/hostname": "<node_name>" }}}' -it --rm -- bash
package main
import (
"fmt"
"time"
)
func main() {
loc := time.UTC
hours := 1
@targc
targc / test.md
Last active May 20, 2025 10:30
test