View Single Post
  #45 (permalink)  
Old 02-07-2008, 07:44 AM
azmel's Avatar
azmel azmel is offline
Senior Member
 
Join Date: Dec 2007
Location: United Kingdom
Posts: 194
azmel is on a distinguished road
Stochastic crossing AC

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.
Reply With Quote