Lecture 1: Introduction to Research — [📝Lecture Notebooks] [
Lecture 2: Introduction to Python — [📝Lecture Notebooks] [
Lecture 3: Introduction to NumPy — [📝Lecture Notebooks] [
Lecture 4: Introduction to pandas — [📝Lecture Notebooks] [
Lecture 5: Plotting Data — [📝Lecture Notebooks] [[
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
using System; | |
using System.IO; | |
using System.Net; | |
using System.Text.Json; | |
using System.Threading; | |
namespace OandaStreamingConsole | |
{ | |
class Program | |
{ |
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
#include <iostream> | |
#include <csignal> | |
#ifdef _WIN32 | |
#include <Windows.h> | |
#else | |
#include <unistd.h> | |
#endif | |
using namespace std; |
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
# install stubs first | |
# pip install quantconnect-stubs | |
from QuantConnect import * | |
from QuantConnect.Parameters import * | |
from QuantConnect.Benchmarks import * | |
from QuantConnect.Brokerages import * | |
from QuantConnect.Util import * | |
from QuantConnect.Interfaces import * | |
from QuantConnect.Algorithm import * | |
from QuantConnect.Algorithm.Framework import * |
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
#property strict | |
#include <mt4R.mqh> | |
extern string R_command = "D:\Program Files\R\R-3.3.1\bin\i386\Rterm.exe --no-save"; | |
extern int R_debuglevel = 2; | |
int rhandle; | |
int OnInit() |
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
using System; | |
using System.Net.Http; | |
using System.Security.Cryptography; | |
using System.Text; | |
/* | |
* This gist shows a sample of signing a GET request for shrimpy.io | |
* based on Pyton sample on https://developers.shrimpy.io/docs/?python#creating-a-request | |
*/ |
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
# | |
# All credits of this source code to https://www.investingdev.com/en/statarb-in-forex/ | |
# | |
######################################################################################## | |
## Imports and set working directory ## | |
######################################################################################## | |
require(tseries) |
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
Set-ExecutionPolicy -Scope "CurrentUser" -ExecutionPolicy "RemoteSigned" | |
$jforex3Jnlp = 'jforex_3.jnlp' | |
$baseURL = 'http://platform.dukascopy.com/demo_3/' | |
$sourceJnlpURL = "$baseURL$jforex3Jnlp" | |
$appFrameworkXPath = '//jnlp/resources/extension[@name="AppFramework"]' | |
$jarsXPath = '//jnlp/resources/jar' | |
$outFileJForex3Jnlp = "$PSScriptRoot\jforex_3.jnlp" | |
$outFileLibs3Jnlp = "$PSScriptRoot\libs_3.jnlp" | |
$localLibSubDir = "jforex3libs" |
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
import pandas as pd | |
from random import random | |
flow = (list(range(1,10,1)) + list(range(10,1,-1)))*100 | |
pdata = pd.DataFrame({"a":flow, "b":flow}) | |
pdata.b = pdata.b.shift(9) | |
data = pdata.iloc[10:] * random() # some noise | |
import numpy as np |
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
static void Main() | |
{ | |
var server = new NamedPipeServerStream("NPtest"); | |
Console.WriteLine("Waiting for connection..."); | |
server.WaitForConnection(); | |
Console.WriteLine("Connected."); | |
var br = new BinaryReader(server); | |
var bw = new BinaryWriter(server); |