A presentation by GB007
http://woodiescciclub.com/vegas/gb007/gb007-vegas-2003.doc
He emphasizes the importance of money management by giving an example of a random entry trading system.
The system rules are as follows
This system is supposed to make money by being long and short an equal number of times, but cutting the losses short and letting the profits run. I could not get positive confirmation with the file included in the demo. Perhaps testing over longer periods would get different results.
You can download the compiled program, or create an account to download the source code
//// 4X Lab.NET © Copyright 2005-2006 ASCSE LLC// http://www.4xlab.net// email: 4xlab@4xlab.net//using System;namespace _4XLab.NET{ public class fRandomEntryMomentumExit : ForexObject { int Minutes; Random RNG; int randomint; sCandle OldCandle,NewCandle; double spread; cCandleBuilder cbx;
case -1: { if (ExitCriteriaShort()) { Framework.Account.ExitTrade(); } break; } }
double logInTrade = Framework.Account.InTrade(); double logMargin = Framework.Account.GetAccount().C; //Framework.WriteGraphLine("InTrade,Margin,C"); Framework.WriteGraphLine(logInTrade+","+logMargin+","+NewCandle.C); }
private bool EntryCriteriaLong() { bool v = false; if (randomint >= 500) { v = true; } return v; }
private bool EntryCriteriaShort() { bool v = false; if (randomint <= 500) { v = true; } return v; }
private bool ExitCriteriaLong() { bool v = false; if (NewCandle.C < OldCandle.C) { v = true; } return v; }
private bool ExitCriteriaShort() { bool v = false; if (NewCandle.C > OldCandle.C) { v = true; } return v; }
public override string Title() { return "Random Entries Momentum Exit"; }
}}