Skip to content

Instantly share code, notes, and snippets.

View SathishN's full-sized avatar
🎯
Focusing

Sathish SathishN

🎯
Focusing
View GitHub Profile
@sanzpro
sanzpro / Update_Amibroker_EOD_Tiingo.py
Last active August 19, 2021 15:01
Update Amibroker EOD Historical data from Tiingo.com
# -*- coding: utf-8 -*-
"""
Created on Fri Jun 02 17:02:32 2017
@author: [email protected]
This script will pull the symbols from your specified Amibroker database and download historical EOD dividend adjusted data from Tiingo.com and will store them
in a folder (Destop/Data/TiingoEOD) as csv files, one for each stock (APPLE.csv SPY.csv, etc)
It will then attempt to open Amibroker and import the csv files.
You need:
1. To add your own Token number you will get when you register at Tiingo.com (line 51)
2. Specify the Amibroker database you want updated (line 99)
@marketcalls
marketcalls / Backtesting Basics - EMA Crossover Trading System
Created May 4, 2017 18:31
Backtesting Basics - EMA Crossover Trading System
//Marketcalls Backtesting Tutorial
_SECTION_BEGIN("EMA Crossover Trading System");
SetChartOptions(0,chartShowArrows|chartShowDates);
//Plot CandleSticks
Plot( C, "Price", ParamColor( "Color", colorDefault ), ParamStyle( "Style", styleCandle, maskPrice ) );
//Compute EMA 20 and EMA50
@vanclist
vanclist / gatling-cluster-teamcity.sh
Last active July 24, 2017 03:24
Gatling cluster with Teamcity
#!/usr/bin/env bash
#Assuming same user name for all hosts
USER_NAME='gatling'
#Remote hosts list
HOSTS=(node1-load.some.host node2-load.some.host node3-load.some.host node4-load.some.host)
#Assuming all Gatling installation in same path (with write permissions)
GATLING_HOME=/opt/loadtest/
#No need to change this
REMOTE_REPORT_DIR=/opt/loadtest/target/gatling/
@marketcalls
marketcalls / Open == High AND Open == Low Exploration
Created February 24, 2017 13:03
Open == High AND Open == Low Exploration
//Coded by Rajandran R
//Author - www.marketcalls.in
//Date : 21st FEB 2017
_SECTION_BEGIN("Open == High AND Open == Low Exploration");
DOpen = TimeFrameGetPrice( "O", inDaily, 0 ); // gives you Todays Open price.
DHigh = TimeFrameGetPrice( "H", inDaily, 0 ); // gives you Todays High price.
DLow = TimeFrameGetPrice( "L", inDaily, 0 ); // gives you Todays High price.
@wolfeidau
wolfeidau / index.js
Created October 8, 2015 04:59
My work so far on build cache using lambda and DynamoDB
'use strict'
console.log('Loading function')
var aws = require('aws-sdk')
var async = require('async')
var doc = require('dynamodb-doc')
var dynamo = new doc.DynamoDB()
var s3 = new aws.S3()
@BlackArbsCEO
BlackArbsCEO / Free_Intraday_StockData_Test_BarChart_API_Gist.py
Created September 22, 2015 19:48
Example code from 'Get Free Intraday Stock Data With Python and BarChart OnDemand API' blog post.
# -*- coding: utf-8 -*-
import time
t0 = time.clock()
import pandas as pd
from pandas.tseries.offsets import BDay
import numpy as np
import datetime as dt
from copy import copy
@hhcordero
hhcordero / 1_Dockerised_JMeter.md
Last active January 28, 2025 12:59
Dockerized JMeter - A Distributed Load Testing Workflow
@marketcalls
marketcalls / Fisher Transform
Created April 10, 2015 09:16
Fisher Transform - Amibroker AFL
_SECTION_BEGIN("Fisher Transform");
//SetBarsRequired(200, 0);
// Ehlers formulas
// from Ehlers, John F. Cybernetic Analysis for Stocks and Futures. Wiley. 2004.
// Chapter 1, p. 1. Code on p. 7.
function Normalize(array, arraylen)
// Figure 1.7 on p. 7
{
@mbbx6spp
mbbx6spp / README.md
Last active September 26, 2025 13:22
Gerrit vs Github for code review and codebase management

Gerrit vs Github: for code review and codebase management

Sure, Github wins on the UI. Hands down. But, despite my initial annoyance with Gerrit when I first started using it almost a year ago, I am now a convert. Fully. Let me tell you why.

Note: This is an opinionated (on purpose) piece. I assume your preferences are like mine on certain ideas, such as:

  • Fast-forward submits to the target branch are better than allowing merge commits to the target branch. The reason I personally prefer this is that, even if a non-conflicting merge to the target branch is possible, the fact that the review/pull request is not up to date with the latest on the target branch means feature branch test suite runs in the CI pipeline reporting on the review/PR may not be accurate. Another minor point is that forced merge commits are annoying as fuck (opinion) and clutter up Git log histories unnecessarily and I prefer clean histories.
  • Atomic/related changes all in one commit is something worth striving for. Having your dev
@amatellanes
amatellanes / celery.sh
Last active September 19, 2025 15:58
Celery handy commands
/* Useful celery config.
app = Celery('tasks',
broker='redis://localhost:6379',
backend='redis://localhost:6379')
app.conf.update(
CELERY_TASK_RESULT_EXPIRES=3600,
CELERY_QUEUES=(
Queue('default', routing_key='tasks.#'),