
02-07-2008, 07:50 AM
|
|
Banned
|
|
Join Date: Nov 2007
Posts: 374
|
|
Quote:
Originally Posted by azmel
It is quite difficult to code an EA that knows when the Stochastic line crosses the AC zero line, unfortunately. Visually it is very easy to see, but ask a computer to see it, and it can't.
For a computer, the Stochastic value ranges from 0 to 100 as fxbs has pointed out. Therefore for the EA, I take the average value, which is 50 as the zero line. For optimisation, I also put the option to adjust the upper and lower values just to see what the effects of those will be on the trades.
Talking about the EA, it is almost ready. Last night, I tested it against a smaller timeframe to see what happens when a new signal appears. As expected, the fifth trade closes and a new set of five trades re-appears.
I will post the EA today for everyone to test. However, DO NOT GO LIVE with this EA yet as I have not incorporate the 200SMA filter.
|
Hi
Just use 1 or 5 or some small number INSTEAD OF ZERO
OILFXPRO
|