This file contains hidden or 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 _ = 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'; | |
This file contains hidden or 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
BBand_candles = 21 | |
BBand_StdDevs = 2 | |
stoch_FastK = 5 | |
stoch_SlowK = 2 | |
stoch_SlowD = 3 | |
cci_candles = 20 | |
stop_loss_percent = 4 |
This file contains hidden or 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 _ = 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'; |
This file contains hidden or 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 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; |
This file contains hidden or 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
take_profit_percent = 2 | |
stop_loss_percent = 2 | |
ATR_candles = 20 | |
BB_percent = 5 |
This file contains hidden or 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
<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"; | |
}); |
This file contains hidden or 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 _ = 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() { |
This file contains hidden or 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
<!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; } |
This file contains hidden or 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
<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>"; |