Skip to content

Instantly share code, notes, and snippets.

View dennislwm's full-sized avatar

Dennis Lee dennislwm

View GitHub Profile
@dennislwm
dennislwm / Ghost Paper Trading in Metatrader 4 (MT4).md
Last active April 7, 2022 08:29
FX-Git Packages in Metatrader 4 (MT4)

How NOT to Quickly Turn a Profitable Strategy into a Loss-Making One

Introduction

Did I get your attention?

One of the limitations of using a demo broker account is that there is no or very little slippage, hence it does not reflect actual trades.

The result is that a "profitable" robot or Expert Advisor ["EA"] on a demo account can quickly become a loss-making robot in a live account.

@dennislwm
dennislwm / 0_reuse_code.js
Created June 11, 2016 04:01
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@dennislwm
dennislwm / Jurka_03_spam_RTextTools.R
Created February 28, 2013 13:34
Classifying Emails as Spam or Ham using RTextTools
suppressPackageStartupMessages(require(RTextTools))
suppressPackageStartupMessages(require(tm))
source("C:/Users/denbrige/100 FxOption/103 FxOptionVerBack/080 Fx Git/R-source/PlusReg.R", echo=FALSE)
spam.dir <- paste0(RegGetRNonSourceDir(), "spamassassin/")
get.msg <- function(path.dir)
{
con <- file(path.dir, open="rt", encoding="latin1")
text <- readLines(con)
msg <- text[seq(which(text=="")[1]+1,length(text),1)]
close(con)