Skip to content

Instantly share code, notes, and snippets.

View immoh's full-sized avatar

Immo Heikkinen immoh

  • Helsinki, Finland
View GitHub Profile
@immoh
immoh / hull.pine
Created May 25, 2021 11:14
Immo's Hull Strategy
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © immoh
//@version=4
//Basic Hull Ma Pack tinkered by InSilico s
//Converted to Strategy by DashTrader
strategy("Immo's Hull Suite Strategy", overlay=true, pyramiding=1, default_qty_type= strategy.percent_of_equity, default_qty_value = 100, calc_on_order_fills=false, slippage=0,commission_type=strategy.commission.percent,commission_value=0)
//////////////////////////////////////////////////////////////////////
// Testing Start dates
testPeriodStart = timestamp(2019,5,1,0,0)
This file has been truncated, but you can view the full file.
{:schemes [],
:securityDefinitions {:I {:type "basic", :name "", :in "header"},
:- {:type "oauth2",
:flow "accessCode",
:scopes {:y "", :q "", :o "", :_ "", :Z "", :C "", :? "", :g "", :+ "", :d "", :K ""},
:authorizationUrl "",
:tokenUrl ""},
:U {:type "apiKey", :description "", :name "", :in "query"},
:r {:type "basic", :name "", :in "header"},
:w {:type "oauth2",

Keybase proof

I hereby claim:

  • I am immoh on github.
  • I am immoh (https://keybase.io/immoh) on keybase.
  • I have a public key whose fingerprint is 75F2 D8AC E66B E3DC CD44 FDCD FFAC E8E6 240F EDF1

To claim this, I am signing this object:

@immoh
immoh / gist:ddce9d72df9177dcfc89
Last active March 10, 2016 07:47
Turn LinkedIn profile into printable CV
// View profile as what it looks like to your connections.
// Open JavaScript console and execute the following code.
// Print to PDF.
$(".endorsement-quote a.toggle-show-more[title='Show more']").each(
function() {
$(this).get(0).click()
}
)
@immoh
immoh / gist:1638fe5d8bb91a2d55f2
Created January 25, 2015 07:58
"cabal install bson" fails
$ cabal install bson
Resolving dependencies...
Configuring network-2.6.0.2...
Building network-2.6.0.2...
Failed to install network-2.6.0.2
Build log ( /Users/iheikkin/.cabal/logs/network-2.6.0.2.log ):
[1 of 1] Compiling Main ( /var/folders/xz/d8ctt91s5n51kbwcb01z1m740000gn/T/network-2.6.0.2-4504/network-2.6.0.2/dist/setup/setup.hs, /var/folders/xz/d8ctt91s5n51kbwcb01z1m740000gn/T/network-2.6.0.2-4504/network-2.6.0.2/dist/setup/Main.o )
Linking /var/folders/xz/d8ctt91s5n51kbwcb01z1m740000gn/T/network-2.6.0.2-4504/network-2.6.0.2/dist/setup/setup ...
Configuring network-2.6.0.2...
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
@immoh
immoh / gist:d67eb0d2ff347de43c97
Created August 22, 2014 05:09
Clojure ampersand weirdness
; REPL-y 0.3.2, nREPL 0.2.3
; Clojure 1.6.0
; Java HotSpot(TM) 64-Bit Server VM 1.7.0_21-b12
(let [& 1] &)
;=> 1
(let [[&] [1]] &)
;Exception Unsupported binding form: clojure.core/destructure/pb--4583 (core.clj:4103)
@immoh
immoh / intellij_idea_nrepl_client.clj
Created September 26, 2013 07:52
Running nREPL client in IntelliJ Idea Clojure Console
; Prerequisites:
; - reply in classpath (Leiningen depedency: [reply "0.2.1" :exclusions [ring/ring-core]])
(System/setProperty "jline.terminal" "jline")
(require 'reply.main)
(reply.main/launch-nrepl {:attach "12345"})