Giter VIP home page Giter VIP logo

tos-and-thinkscript-snippet-collection's Introduction

Actions Status

TOS-and-Thinkscript-Snippet-Collection

The "TOS and Thinkscript Snippet Collection" by StanL has been a great help in my thinkscript development journey. I constantly look to this work for ideas and techniques.

It appears that "TOS and Thinkscript Snippet Collection" hasn't been update in 3 years as of this writing, ... I am not sure is something happened to StanL or what.

My Motivations: I found the pdf hard to read at times and I want the great work StanL did to live on. Converted the Markdown version to AsciiDoctor and generate with Gradle AsciDoctor Plugin.

Please feel free to fork and send me pull requests or corrections and additions.

Credits:

Local Artifact Generation

gradlew asciidoctor

CI Artifact Generation using GitHub Actions

The workflow (.github/workflows/main.yaml) performs the following steps:

  • Run actions/checkout
  • Generate Artifacts
  • Prepare to push generated artifacts back to the repo
  • Push changes Masters
  • Push changes gh-pages

tos-and-thinkscript-snippet-collection's People

Contributors

jshingler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tos-and-thinkscript-snippet-collection's Issues

Request for a new Scanner

Hi ,
Thank you for adding so much beautiful scans.
I have a request if you can address to have Premarket high or Low Break out scan to the list.

Thanks,
MJ

Sum() function use to simplify code

The following suggestion:

Plot if Sum(cond1,cond2,cond3, cond4, cond5, cond6) = 6 then ??????? else ?????;

does not work with the current version of thinkscript because it accepts only 2 parameters.

It is really difficult to simplify complex scripts :( and I haven't found any good approach to this.

Access to TOS Snippets

Hi Jim. New member here. Just looking through some of your TOS snippets and can't get to any links beyond #90-129 from the Table of Contents. I'm looking for a link beyond #90 (#101 B - The Fold Function explained....Page 62). Any help you could provide would be appreciated. Thx, Jeff Francetic

Average Range in Earnings for 52 weeks

Hi, I'm trying to write a code that calculates the average range in earnings of 52 weeks.
However, I encounter issues and I can't seem to write it out due to my lack of knowledge in Thinkscript.
I get stuck on finding the range of the previous earnings, I think it has got to do with defining the date of the earnings. Below is the code that's as far as I get.
Kindly appreciate if anyone is able to help out thanks for reading
Cheers :)

#====================================================
def ear= HasEarnings(EarningTime.BEFORE_MARKET)[1];
def countdown = if ear then getyyYYMMDD() - getyYYYMMDD() else double.nan;

def a = if ear then getyyyymmdd() else double.nan;

def hod = if a then high(period = aggregationperiod.day) else double.nan;
def lod = if a then low(period = aggregationperiod.day) else double.nan;

def range = if a then hod-lod else double.nan;

AddLabel(yes, "range" + range, Color.white);
#====================================================

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.