Skip to content

Latest commit

History

111 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Trader's Tools

Insights, tools and tips as a result of losing too much money 🐊.

  • Trading for a Living [Medium] - or what it takes to go from zero to a humble hero in the markets
  • Things You Learn After 1 Year of Day Trading for a Living [Medium] - or what not to do in the markets

Design Patterns (Java)

PatternCategoryIdea
SingletonCreationalManage multiple accounts (connections, disconnections, execution requests, orders requests, etc.) via single object and once.
Factory MethodCreationalChange historical data provider across all code base with a single modification.
FacadeStructuralWrap complex logic with simple access point.
AdapterStructuralUse standard m30 bars to create custom H4 bars in a different time zone.
CompositeStructuralSingle option is the building block of a complex options position.
ProxyStructuralUse cached data access when applicable, request and store new if none available.
DecoratorStructuralExtend functionality of standard request handlers.
Template MethodBehavioralUse template trading flow for various asset classes.
Chain of ResponsibilityBehavioralTrade risk assessment via chain of validation rules.
StateBehavioralTrade multiple sessions of the same market.
CommandBehavioralPerform account related tasks (data, trading, risk assessment, etc.) efficiently.
MediatorBehavioralManage portfolio exposure with different instruments.
ObserverBehavioralPrice alerts for various asset classes.
MVCArchitecturalAccount management (trading controller, risk model and balance view).

Books

Micro Task Management Language (MTML)

  • Generalized task management notation.

  • Symbols:

    SymbolMeaning
    !Important
    +Task
    -Metadata/elaboration on previous line
    ~Thought/idea
    ~~Thought/idea in flow
    ~~~Thought/idea in multi-day flow
    %Edge/trading idea
    ?Question
    @Topic, can be nested (useful in the calendar)
    $Performance related task/idea
    ^Test
    &Refactoring
    #Bug
    <>Think about it / sleep on it, a coda in blocks
    .Relevant to this particular day (usually in the calendar)
    =Experiment
  • Blocks:

    • Symbols can be combined with other symbols.
    • Small topic is either one line or condensed multiple lines.
    • Big topic is surrounded by @ symbols and contains small topics.
    • Code blocks/comments appear verbatim without any symbols.
    • When in flow, elaboration hyphens can be omitted.
  • Examples:

    !+ this is an important task
    - with some metadata here
    $& this is a performance related refactoring
    @ this is a big topic
    ~ with some ideas
    @ sub topic
    ~ with some ideas (related to the super topic)
    + tasks
    # bugs
    ? questions
    .^ and some tests to be performed today @ this is a big topic (same text as in the first symbol)
    

Quotes

  • Don’t underestimate the time it takes to develop an edge [Linda Raschke]

  • Those who work that hard deserve their success; no apology is necessary [Victor Sperandeo]

TIL

  • Eclipse:

    • Ctrl + Shift + Alt + l: quick search
    • Shift + F2: online javadoc
  • JupyterLab:

    • Ctrl + Shift + c: quick search
    • Ctrl + f, Ctrl + g: find and iterate
    • Ctrl + Shift + q: shutdown notebook
  • Terminal:

    • Ctrl + d: exit
    • Ctrl + l: clear
    • man vs. info
    • type instead of which
    • umount -R to handle busy things
    • apropos vs. whatis
    • Mouse:
      • selection is copy
      • middle button is paste
  • Vim:

    • selection followed by :term bash to run as a command
    • ~ for case switch upper/lower
    • exact search in the form /<str>
    • search selected (yanked): / Ctrl + r followed by "
  • man:

    • & search to show only matching lines
    • C functions are included
  • git:

    • @ <=> HEAD
    • git rebase interactive:
      • reword and fixup

About

Insights, tools and tips as a result of losing too much money.

Topics

Resources

Stars

18 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages