This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DMIについて | |
https://kasobu.com/komaashi/ | |
http://xn--fx-3s9cx68e.xyz/report/adx_dmi/ | |
study("Directional Movement", shorttitle="DMI") | |
adxlen = input(17, title="ADX Smoothing") | |
dilen = input(17, title="DI Length") | |
dirmov(len) => | |
up = change(high) | |
down = -change(low) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var AsyncLock = require('async-lock'); | |
var lock = new AsyncLock(); | |
function operation1() { | |
console.log("Execute operation1"); | |
lock.acquire("key1", function(done) { | |
console.log("lock1 enter") | |
setTimeout(function() { | |
console.log("lock1 Done") | |
done(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
study(title="Zero Lag MACD free", shorttitle="Zero Lag MACD free") | |
src10 = input(close) | |
OverBought = input(70, minval=0) | |
OverSold = input(20, maxval=100) | |
smooth = input(5) | |
Length = input(21) | |
NormalizeRange = input(true) | |
normalize(series) => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Find Your Heroku Project Name | |
heroku list | |
This is display a list of all the Heroku projects you currently have, make sure you see the app name that you want to link with your git repo here. | |
Add The Git Remote | |
heroku git:remote -a PROJECT_NAME -r heroku |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get all users | |
var url = "http://localhost:8080/api/v1/users"; | |
var xhr = new XMLHttpRequest() | |
xhr.open('GET', url, true) | |
xhr.onload = function () { | |
var users = JSON.parse(xhr.responseText); | |
if (xhr.readyState == 4 && xhr.status == "200") { | |
console.table(users); | |
} else { | |
console.error(users); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
study("TrailingStopChecker", shorttitle = "TSChecker", overlay = true) | |
// 変数を定義 | |
length = input(type = integer, title = "トレイリングストップの日数", defval = 10, minval = 1, step = 1) | |
// ロング用(安値について) | |
// 安値バンドを表示するか否か | |
isDispLongLine= input(title = "ロング ストップラインの表示", type = bool, defval=true) | |
isDispLongBGColor= input(title = "ロング 背景色の表示", type = bool, defval=false) | |
isDispLongShape= input(title = "ロング 吹き出しの表示", type = bool, defval=true) | |
// length日の最安値を計算する関数 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@version=2 | |
// Note: | |
// if you only want to see the Heikin Ashi Candle but not the normal Candle, | |
// change the overlay option to overlay=true, then hide the normal Candle | |
study("I_Heikin Ashi Candle", shorttitle="I_HA Candle", overlay=false) | |
// --------------- Calculating HA Candle's values | |
// -- you can use either one of the methods below, they give the same values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@version=3 | |
// | |
study(title = "Heiken Ashi zero lag EMA v1.2 by JustUncleL", shorttitle="HAZEMA v1.2 by JustUncleL", overlay=true) | |
// | |
// Title: Heiken Ashi with non lag dot by JustUncleL | |
// Author: JustUncleL | |
// Version: 1.2 | |
// Date: 5-feb-2016 | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@version=3 | |
strategy(“Heiken Ashi + Ichimoku Kinko Hyo Strategy”, shorttitle=”HaI”, overlay=true, default_qty_type=strategy.percent_of_equity, max_bars_back=1000, default_qty_value=100, calc_on_order_fills= true, calc_on_every_tick=true, pyramiding=0) | |
hahigh = security(heikinashi(tickerid), period, high) | |
halow = security(heikinashi(tickerid), period, low) | |
TenkanSenPeriods = input(9, minval=1, title=”Tenkan Sen Periods”) | |
KijunSenPeriods = input(24, minval=1, title=”Kijun Sen Periods”) | |
SenkouSpanBPeriods = input(51, minval=1, title=”Senkou Span B Periods”) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@version=2 | |
study("Heiken Ashi MTF") | |
ha_t = heikinashi(tickerid) | |
res = input('60', title="TM 1") | |
ha_open = security(ha_t, res, open) | |
ha_close = security(ha_t, res, close) | |
ha_dif = ha_open-ha_close | |
ha_diff=iff(ha_dif > 0, 1, iff(ha_dif<0, 2, 3)) |