Skip to content

Instantly share code, notes, and snippets.

View minkymorgan's full-sized avatar

Andrew minkymorgan

View GitHub Profile
@minkymorgan
minkymorgan / myMoneyManagement.mq4
Created February 13, 2024 08:43 — forked from currencysecrets/myMoneyManagement.mq4
MQL4: My Money Management
//+------------------------------------------------------------------+
//| My Money Management.mq4 |
//| Ryan Sheehy, CurrencySecrets.com |
//| http://www.currencysecrets.com |
//+------------------------------------------------------------------+
#property copyright "Ryan Sheehy, CurrencySecrets.com"
#property link "http://www.currencysecrets.com"
//--- input parameters
extern double xRiskPerTrade=1; // $ amount of risked per trade
NR == 1 {sep=""}
NR > 2 {sep=","}
{
if (NR == 1) {
split($0, tags);
if (EC == "") EC = "\"";
}
else {
split($0, vals);
jrec = sep"{";
@minkymorgan
minkymorgan / gist:1dde65b654bf1c07ade3
Created September 26, 2014 22:43
GDELT Event File - some BigQuery SQL that smooths the goldstein scale over the last 28 days.
select
end_SQLDATE as SQLDATE
, AVG_GoldsteinScale
from
(
SELECT
ending_at_day AS end_SQLDATE
, ROUND(AVG(SUMG),5) AS AVG_GoldsteinScale
, COUNT(DISTINCT SQLDATE) as C
FROM
@minkymorgan
minkymorgan / gist:4702013
Last active May 1, 2019 20:23
setup mysql on a raspberryPI
## shell commands I used to setup mysql on my raspberryPI and enable SQLyog access to it from my laptop
# install mysql using these instructions
# http://databaseblog.myname.nl/2013/01/how-to-install-mysql-succesfully-on.html
# Verify the MySQL Client was installed
mysql --version
# alter the settings to enable it to be a server on your lan