Tadas Talaikis's Blog, page 7

August 16, 2018

Goals of trading and investing

Photo by Voicu Oara from Pexels

As we can see from the following distribution of SPY (S&P500 index ETF) daily returns, they are basically random, having pretty equal left (negative returns) and right (positive returns) sides with little average upside.

from numpy import sortdf['ret'] = df['SPY_Close'].pct_change()
df = df.dropna()
_sorted = sort(df['ret'].values)
plt.hist(_sorted, bins=300)
plt.axvline(df['ret'].mean())
plt.show()

As such, goals of trading and investing is to:

Minimize the left tail (...
 •  0 comments  •  flag
Share on Twitter
Published on August 16, 2018 05:36

Two basic types of quantitative strategies

Photo by Voicu Oara from Pexels

Today’s finance world is very creative and complex. There is no shortage of ideas what or how to trade. However, we can classify all quantitative trading strategies into two basic categories:

Mean reversion strategies.Momentum (“trend following”) strategies.

Mean reversion refers to data (prices, in our case) going back to the longer term mean. They usually have high smaller wins rate. Examples of such strategies are statistical, information arbitrage, pair tradin...

 •  0 comments  •  flag
Share on Twitter
Published on August 16, 2018 02:53

August 15, 2018

Key components of a quantitative trading strategy

Probably the simplest ever structure of quantitative trading strategy was proposed in a book “Inside the Black Box: A Simple Guide to Quantitative and High Frequency Trading” by Rishi K. Narang:

So, according to this model, basically each strategy consists of the following components:

Alpha model.

Alpha model consists of some sort of rules or predictive factors that derive the active value of the strategy.

Risk (constraints) model.

Risk model has some sort of constraints, for example, how much we...

 •  0 comments  •  flag
Share on Twitter
Published on August 15, 2018 07:05

August 13, 2018

The law of large numbers in trading and investing for non-statisticians

The law of large numbers is a theorem that describes the result of performing the same experiment a large number of times. According to the law, the average of the results obtained from a large number of trials should be close to the expected value, and will tend to become closer as more trials are performed. [Wikipedia]

This law in trading and investing can be applied two ways:

To derive the true (expected) value from some tested event, we should gather as much event and its outcome(s) samples...
 •  0 comments  •  flag
Share on Twitter
Published on August 13, 2018 09:30

August 12, 2018

How pro-cyclicality kills crypto

Procyclicality refers to a positive correlation between the value or price of a good, a service or an economic indicator and the overall state of the economy or the sentiment of the crowds.

In other words, the value of the good, service or indicator tends to move in the same direction as the economy, growing when the economy grows and declining when the economy declines. [Investopedia]

Human nature is pro-cyclical. For example, we tend to buy when we feel good about something and, vice versa, w...

 •  0 comments  •  flag
Share on Twitter
Published on August 12, 2018 10:21

August 3, 2018

How to have your own ICO (along with the dApp) in 5 minutes

One day I was thinking, why we should program everything from scratch for every project, if most of the functions are repetitive and can be easily wrapped into higher order management logic and as such — universalized.

The main idea is to question widely held beliefs how it should be done. Why instead we can’t manage our contracts much much easier, via simple web interface, without any programming, logins, administrative validations, and basically any other old-world stuff, when all we need is...

 •  0 comments  •  flag
Share on Twitter
Published on August 03, 2018 14:04

January 15, 2018

An American Genocide: The United States and the California Indian Catastrophe, 1846-1873 by Benjamin Madley

It will be news for, no idea, how many people, that the only true and free, God saved, country amongst all other "failed countries", had an indigenous people  genocide in the past. Not like hundreds of movies and TV shows tell you, but true one, like in Rwanda, Armenia or anywhere else. If Turkey, Russia doesn't admit that, U.S. will neither. My point here is that everyone, every country are the same, not better or worse, like idiotic American media tries to flood the world...
 •  0 comments  •  flag
Share on Twitter
Published on January 15, 2018 16:00

December 9, 2017

My Lai: Vietnam, 1968, and the Descent into Darkness by Howard Jones

You wouldn't learn this fucking crazy shit in your brainwashing schools. Recalling most that is written in the influenced media of America's, movies, - they say nothing, everything was and is censored. And if not, then brainwashing is pretty successful. What else, I' have said long ago, America is full of idiots, but most importantly - aggressive idiots. Did this American empire's dead after Vietnam? No, just recall their war crimes in Iraq and Afghanistan. Fucking world polic...
 •  0 comments  •  flag
Share on Twitter
Published on December 09, 2017 16:00

December 1, 2017

Principles: Life and Work by Ray Dalio

Don't agree to everything, like despite my thinking that numbers and machines can be more believable or more relied upon, that doesn't mean that all machines are pretty dumb and probably will be for long time to come. Despite I often use Ray Dalio's invention of "alpha", I don't apply it to myself. I don't like to work, I like to what I like to research and as a consequence I probably would fall into idiots category of the "machine" :-D So what? More br...
 •  0 comments  •  flag
Share on Twitter
Published on December 01, 2017 16:00

November 30, 2017

Prekybos strategijos pagal tikimybių teoriją

Be jau anksčiau minėto paprasto modelio, kad visos strategijos tiesiog bando kuo efektyviau atskirti dvi distribucijos puses, čia - kelios idėjos kaip lengvai sukurti strategijas remiantis tikimybių teorija. Tai yra automatiškai nepilnai patikrintos idėjos, tik kadangi esu pasidaręs tam tikrą savo rankinės prekybos "helper'į", tai kartais naudoju tai orientacijai apie galimus rinkos veiksmus. Be to, kai kas panašaus buvo įdiegta ir Quantrade.co.uk projekte. Trumpalaikė up (down) tikimybė yra...
 •  0 comments  •  flag
Share on Twitter
Published on November 30, 2017 16:00