Skip to content

Instantly share code, notes, and snippets.

@beinghorizontal
beinghorizontal / adx_rsi_strategy_rules.md
Created May 23, 2026 12:56
use this MD file in /goal mode in Antigravity

Trading Strategy Specification: Regime-Filtered Mean Reversion (ADX + RSI)

This document contains structural trading rules and mechanical logic for a systematic backtest. Implement the system precisely as specified below.


1. Core Architecture & Variables

  • Timeframe: [Daily]
  • Moving Average Filter: 200-period Exponential Moving Average (EMA)
  • Trend Index: 14-period Average Directional Index (ADX) with Standard Directional Movement Indicators (+DI, -DI)
@beinghorizontal
beinghorizontal / pilogin.py
Last active April 28, 2019 19:03
This python file automates Zerodha Pi login. Use it only on your personal computer or laptop.
import sys
sys.coinit_flags = 2
from pywinauto.application import Application
import time
"Chnage the path if installed in different folder"
"Important. Save this python file in the same folder where Pi is installed"
app=Application().start(r"c:\zerodha\Pi\Pi.exe")