Skip to content

Instantly share code, notes, and snippets.

//@version=3
// from user @\/ ethfinance 2019-08-19
// which modified from https://www.tradingview.com/script/zMrGet6h-Ultimate-Moving-Average-Strategy/
strategy(title = "Ultimate Moving Average Long Only Strategy", shorttitle = "UMA Strategy", overlay = true, pyramiding = 0, default_qty_type = strategy.percent_of_equity, default_qty_value = 100, max_bars_back=2000)
// === Backtesting Period Selector ===
testStartYear = input(2017, "Backtest Start Year")
testStartMonth = input(1, "Backtest Start Month")
testStartDay = input(1, "Backtest Start Day")
@mkinney
mkinney / gist:f20f38e6a9ef146d957872d3a282302c
Created July 18, 2017 18:44
Simple User01 Blueprint in Nutanix
{
"tasks":[
{
"vm_name":"cent01",
"memory_mb":"1024",
"network_uuid":"dc591f1e-40cf-41b2-ac75-a75dc6639bbf",
"uid":"596e517675b58b137b04dac8",
"classification":"provision_nutanix",
"num_cores_per_vcpu":"2",
"fixed_cost":0.0,
"vm_disks":[
{
"disk_address":{
"device_bus":"ide",
"device_index":0
},
"is_cdrom":true,
"is_empty":false,
"vm_disk_clone":{
"disk_address":{
@mkinney
mkinney / gist:37981a45ede1b0908ab72952dc0980ed
Last active July 12, 2017 20:40
Create new VM on Nutanix
{
"description":"Tech Summit 2017",
"guest_os":"Windows Server 2012 R2",
"memory_mb":4096,
"name":"win-mike2",
"num_cores_per_vcpu":2,
"num_vcpus":1,
"vm_disks":[
{
"disk_address":{
@mkinney
mkinney / gist:569d661e055b534ae6855d9db56b9c30
Last active July 12, 2017 20:57
Create VM on Nutanix (raw)
{
"description":"string",
"guest_os":"string",
"memory_mb":4096,
"name":"string",
"num_cores_per_vcpu":2,
"num_vcpus":1,
"vm_disks":[
{
"disk_address":{
To run on a Synology:
1. Create a folder that will have the verge wallet configuration. Open up 'Filestation', select 'home', then 'create folder'. I'll use 'verge'.
2. This folder should be visible to your computer, because you will need to create a configuration file in this folder. Follow the instructions at: https://github.com/vergecurrency/VERGE for more info. Be sure to create the VERGE.conf in a folder called ".VERGE". I have "home" mounted to my mac, so I see it as '/Volumes/home/verge/.VERGE/VERGE.conf'. Be sure to *NOT*
set 'daemon=1', if so the container will keep stopping.
3. Start docker. Click 'main menu', then 'Docker'. (If you do not see that option, you will have install the package.)
4. Click on 'Image', then 'Add', 'from URL', and enter 'https://hub.docker.com/r/mkinney/verge/'
5. Wait for it to download.
6. Click on the image in the list, then click 'Launch', feel free to change the 'Container Name' or ports (but the defaults should be fine).
7. Accept (or change if you want) the Step 2 o
@mkinney
mkinney / onename.com.verification
Created April 6, 2016 00:52
verification of myself on blockchain
Verifying that +mikekinney is my blockchain ID. https://onename.com/mikekinney