Skip to content

Instantly share code, notes, and snippets.

@howie50417
howie50417 / BBStochstoploss.js
Created December 29, 2017 04:48
BBStochstoploss.js
var _ = require('lodash');
var log = require('../core/log.js');
// let's create our own method
var method = {};
// prepare everything our method needs
method.init = function() {
this.name = 'BBands';
@howie50417
howie50417 / BBands.toml
Created December 28, 2017 06:17
BBands.toml
BBand_candles = 21
BBand_StdDevs = 2
stoch_FastK = 5
stoch_SlowK = 2
stoch_SlowD = 3
cci_candles = 20
stop_loss_percent = 4
@howie50417
howie50417 / BBands.js
Last active December 28, 2017 06:13
BBands.js
var _ = require('lodash');
var log = require('../core/log.js');
// let's create our own method
var method = {};
// prepare everything our method needs
method.init = function() {
this.name = 'BBands';
@howie50417
howie50417 / ATR.js
Created December 26, 2017 16:49
ATR.js
var Heap = require("collections/heap");
var Indicator = function(windowLength, len_out=20) {
this.input = 'candle';
this.len_in = windowLength;
this.candle_list = [];
this.result = 0;
this.heap_count = 0;
this.price_heap = new Heap([]);
this.len_out = len_out;
@howie50417
howie50417 / HOWIE.toml
Created December 26, 2017 16:48
HOWIE.toml
take_profit_percent = 2
stop_loss_percent = 2
ATR_candles = 20
BB_percent = 5
@howie50417
howie50417 / p1.html
Last active December 21, 2017 04:55
p1.html
<a href="breast-new-tuba.htm"><img src="img/18/yes-18.png" class="img-responsive center-block"></a>
改成
<a id="breast-new-tuba"><img src="img/18/yes-18.png" class="img-responsive center-block"></a>
然後加上
<script>
$(document).ready(function() {
$("#breast-new-tuba").click(function(){
localStorage.agree_18r = true;
window.location = "breast-new-tuba.htm";
});
@howie50417
howie50417 / myRSI.js
Last active January 10, 2018 04:55
myRSI.js
var _ = require('lodash');
var log = require('../core/log.js');
var RSI = require('./indicators/RSI.js');
// let's create our own method
var method = {};
// prepare everything our method needs
method.init = function() {
@howie50417
howie50417 / pop2.html
Created December 29, 2016 08:35
懸浮2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Fixed固定位置的悬浮 - www.jbxue.com</title>
<style>
* { font-size:12px; font-family:Verdana,宋体; }
html, body { margin:0px; padding:0px; overflow:hidden; }
.b { margin:0px; padding:0px; overflow:auto; }
.line0 { line-height:20px; background-color:lightyellow; padding:0px 15px; }
@howie50417
howie50417 / pop.html
Created December 29, 2016 08:33
懸浮視窗
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</style>
<SCRIPT>
var i=0;
function test(){
i++;
var str="<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/Io1C7k5-U_I\" frameborder=\"0\" allowfullscreen></iframe>";