|
Further update on MA Cross with profit targets
I've made a number of additions to the EA since my last post:
1) Improved the profit targets; you can now input different lot sizes per target
2) Added a breakeven feature
3) Added the ability to change the MODE of the Moving Average: 0 Simple moving average, 1 Exponential moving average, 2 Smoothed moving average, 3 Linear weighted moving average.
4) The EA now enters a trade on a new candle, not immediately
5) Added an option to have the EA close its orders when the MAs cross again or when trend is over (allowClosing)
6) Added "Anchors" to help the EA decide when the prices are ranging, so as to prevent losses. The Anchor values are the shift periods that the EA will look to to decide if the market has been previously trending and whether or not to enter.
The post contains the latest EA, along with its source. Don't be shy guys! Post and tell me what you think!
Last edited by ryanklefas; 03-02-2007 at 04:32 PM.
|