Skip to content

Instantly share code, notes, and snippets.

@d0rsha
d0rsha / mapped_types.ts
Last active July 13, 2023 06:47
[TypeScript Anti patterns] Anti patterns for typescript #typescript
// create optional interface
interface Person{
firstName: string;
lastName: string;
}
type Optional<T> = {
[P in keyof T]?: T[P];
};
const partialPerson: Optional<Person> = {};
@d0rsha
d0rsha / tutorial.md
Created December 10, 2020 10:24
[Pinescript tutorial] #pine
iff(condition, result1, result2)
tostring(s)
@d0rsha
d0rsha / vertical_timelines.pine
Last active December 8, 2020 18:06
[Vertical Timelines] #pinescript
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © d0rsha
//@version=4
study("Vertical lines",overlay=true, scale=scale.none)
///////////////
// Line 1
l1hour = input(9.00, title="L1 hour", minval=01.00, maxval=23.00)
l1minute = input(title="L1 minute", type=input.integer, defval=0, minval=0, maxval=60)
l1Color = input(color.green, "L1 color", type = input.color)
@d0rsha
d0rsha / pinescript.pine
Last active April 24, 2023 14:36
[Pinescript RSI + Stoch] A pinescript for tradingview indicator RSI + stoch #pinescript
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © d0rsha
// Set pine version
//@version=4
/////////////////
// RSI
study(title="RSI + stoch", shorttitle="RSI", format=format.price, precision=2, resolution="")
len = input(14, minval=1, title="Length")
src = input(close, "Source", type = input.source)
@d0rsha
d0rsha / LeoVegas.md
Last active October 21, 2020 08:33
[Bolagsanalyser] Bolagsanalyser #börs

LeoVegas

Rapport: 2020-11-05 TradingView indikerar stark sälj.

Nyckeltal

P/E: 17, Lägre än 2019.

@d0rsha
d0rsha / 0.md
Last active October 20, 2020 14:13
[Span v43] #börs #söndagsspan

Intressanta bolag vecka 43:

  • Leovegas
  • Seamless Distribution

Ointressanta bolag:

@d0rsha
d0rsha / Innan_Köp.md
Last active November 24, 2020 16:53
[I-Ramverk Kodex] En teknisk regelbok för ramverket #börs
  1. Kolla kassa
  2. Entry: Trend & Momentum
  3. Riskkalkylatorn - Bestäm R/R
  4. Exit: Stoploss eller Kurslarm avanza.
@d0rsha
d0rsha / 0.md
Created September 30, 2020 07:32
[Söndagsspan v40] #börs #söndagsspan

Sålda bolag som bör bevakas i framtiden:

  • Angler gaming
  • FerroAmp
@d0rsha
d0rsha / 1.md
Last active August 30, 2020 22:06
[Söndagsspan v36] #börs #söndagsspan

Nya spaningar:

  • AAC Kolla tradingview för stoploss och entry.
  • Apple
  • Zaplox
  • Zwipe
@d0rsha
d0rsha / 0.md
Last active August 24, 2020 03:17
[Söndagsspan v35] Söndagsspan v35 #börs #söndagsspan

Nya spaningar:

  • Enad Global 7 (toadman)
  • Nitro games
  • cGit (Onoterad)