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 | |
// TODO: update strategy name | |
strategy("{STRATEGY NAME}", overlay=true) | |
// === TA LOGIC === | |
// | |
// | |
// TODO: PUT YOUR TA LOGIC HERE | |
LONG_SIGNAL_BOOLEAN = crossover(sma(close, 13), sma(close, 34)) |
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
function checkConnection(callback, timeout) { | |
var checkStatus = function() { | |
report((xhr.status && xhr.status < 12000) ? 'up' : 'down'); | |
}; | |
var last = ''; | |
var report = function(status){ | |
if (status !== last){ | |
last = status; | |
callback(status === 'up'); | |
} |
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
/*! simpleQueryString v0.5.0 - MIT license */ | |
var simpleQueryString = (function () { | |
"use strict"; | |
// is Array polyfill: https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray | |
if (!Array.isArray) { | |
Array.isArray = function (vArg) { | |
return Object.prototype.toString.call(vArg) === "[object Array]"; | |
}; | |
} |
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
#region * License * | |
/* | |
SimpleHelpers - SimpleFileLock | |
Copyright © 2015 Khalid Salomão | |
Permission is hereby granted, free of charge, to any person | |
obtaining a copy of this software and associated documentation | |
files (the “Software”), to deal in the Software without | |
restriction, including without limitation the rights to use, |
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
<Query Kind="Program" /> | |
void Main() | |
{ | |
// initialization | |
if (System.Diagnostics.Debugger.IsAttached) | |
System.Diagnostics.Debugger.Break (); | |
Console.WriteLine ("========================================="); | |
Console.WriteLine ("Warm up phase ..."); |
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
<Query Kind="Program" /> | |
void Main() | |
{ | |
// initialization | |
if (System.Diagnostics.Debugger.IsAttached) | |
System.Diagnostics.Debugger.Break (); | |
Console.WriteLine ("========================================="); | |
Console.WriteLine ("Warm up phase ..."); |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using MongoDB.Driver; | |
namespace SimpleMongoDb | |
{ | |
public class MongoDbContext | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Helpers | |
{ | |
/// For updated code: https://gist.github.com/khalidsalomao/5065646 | |
/// Articles on CodeProject | |
public class SimpleConfiguration |
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
using System; | |
using System.Linq; | |
namespace Helpers | |
{ | |
/// For updated code: https://gist.github.com/khalidsalomao/4968274 | |
/// Articles on CodeProject | |
public class SimpleObjectPool<T> where T : class | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Helpers | |
{ | |
/// For updated code: https://gist.github.com/khalidsalomao/4977955 | |
/// Articles on CodeProject | |
/// <summary> |
NewerOlder