Skip to content

muserf597/Thinkscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

📈 Automated Trading Logic Using ThinkScript

Overview

This ThinkScript program implements a multi-indicator automated trading strategy for use on the ThinkOrSwim platform (formerly TD Ameritrade, now Schwab). It combines technical analysis, risk management, and sequential logic to generate buy and sell signals based on real-time market data.

Originally developed as part of MF's financial automation work, this script reflects early systems thinking and logic design that later evolved into autonomous safety frameworks for unmanned aerial systems (UAS).


Key Features

  • Multi-Indicator Buy Logic
    Combines RSI, ROC, MACD, MFI, and ADX to identify entry points under oversold and reversal conditions.

  • Automated Risk Management
    Includes profit targets, stop-loss thresholds, and trailing stop logic based on peak profit percentage.

  • Sequential Trade Tracking
    Detects entry price, monitors trade status, and dynamically adjusts trailing stop levels.

  • Sell Conditions
    Supports multiple exit strategies: profit target, trailing stop, technical reversal, and stop-loss breach.


Strategic Relevance

This project demonstrates MF’s early application of:

  • Logic-driven automation
  • Risk modeling and signal processing
  • Modular scripting for real-time decision support

These same principles now underpin MF’s work in drone cybersecurity, autonomous safety agents (ASA), and instructional design for aviation safety.


Disclaimer

This script is for educational and demonstration purposes only. It does not constitute financial advice or a recommendation to trade. MF is not affiliated with Schwab or ThinkOrSwim.


Contact

For questions or collaboration inquiries, reach out via GitHub or binder contact channels.

About

ThinkScript-based trading programs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published