Zonker wrote:
Some entertaining code in this one if you have an evening to kill:).
The essence of its trading logic is to look for reversals between pairs of bars.
eg if in one bar close>open and in the next close<open thats a reversal.
The assumption is that if there are multiple occurances of these in a given time
frame its a sign the market is ranging rather than trending and you can trade on
the swings. It runs various SMA type calculations on the size and number of reversals
to decide whether to enter market and what stoplosses etc it should use.
The way it dynamically searches multiple modelling periods is the highlight in
my opinion. I'm borrowing those ideas for my on code for sure;).
If you intend to use on real money, set variable "AutoLots" to "false"
until you have worked out what it does.. either that or set the "Risk"
variable much lower than the default of 0.5 (0.1 at most).
Quite generous to release to public really, although not much good without manual
if you can't read code..
you r good code analyst :)