Giter Site home page Giter Site logo

comfyui-supertrend's Introduction

ComfyUI SuperTrend

A Supertrend indicator for US stocks, a technical analysis tool that can assist investors in identifying market trends.

CoverIMG

Plots

  • Candlestick with Trading volume chart

Legend

  • 🔴 LowerBand: Rising cycle
  • 🟢 UpperBand: Down cyle
  • ▲ Buy
  • ▼ Sell / Leave

Calculate

$\text{BASIC Upperband} = \frac{\text{High} + \text{Low}}{2} + \text{Multiplier} \times \text{ATR}$

$\text{BASIC Lowerband} = \frac{\text{High} + \text{Low}}{2} - \text{Multiplier} \times \text{ATR}$

  • High and low: These are the highest and lowest prices of the asset during a specified time frame. (Default is 7, I set 14)
  • ATR: This measures market volatility. The ATR is calculated based on the highest and lowest prices, as well as the closing price of the asset over a specified time frame.
  • Multiplier: This is a constant value that traders and investors employ to push the indicator to be more or less sensitive to price movements.(Default is 3, I set 2)

Usage

  • 🖊️ Input:Stock symbols (1 or more)、Date (YYYYMMDD)
  • 🏞️ Output:SuuuuperTrend plot

Install | Manual

cd ~/ComfyUI/custom_nodes
git clone https://github.com/jerlinn/ComfyUI-SuperTrend.git
cd custom_nodes/ComfyUI-SuperTrend
pip install -r requirements.txt
Restart ComfyUI

Add Node:

Right Click ▸ Financial Analysis ▸ 📈 Super Trend

Examples

  1. Default Workflow CleanShot 2024-01-22 at 23 31 43@2x

  2. Microsoft ComfyUI_temp_pvrza_00003_

  3. Apple ComfyUI_temp_pvrza_00004_

  4. Nvidia ComfyUI_temp_pvrza_00005_

Copilot
ComfyUI Assistant @ZHO

comfyui-supertrend's People

Contributors

jerlinn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

comfyui-supertrend's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.