|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Need help fixing this small EA
I need help getting my first Expert Advisor to work in Strategy Tester. The attached debugEA.mq4 is a short, simplified version which fails in the same manner. This version waits for a new hourly candle and the SMA8 crossing SMA24 to open and close trades. The problem is that when I run it in Strategy Tester, it opens the first trade at the appropriate time, but it does not close the trade nor open any new trades at subsequent MA crossovers. What am I doing wrong? I will be grateful to anyone who can find the problem and correct it.
|
|
||||
|
Hi,
I've made some changes. It works now. Quote:
__________________
Let's improve trade skills together http://finance.groups.yahoo.com/group/TrendLaboratory |
|
|||
|
Incorporating igorad's changes, I revised the EA in order to implement the basic MA crossover strategy accurately. Although it is a losing trading strategy, this EA may serve as a good "bare bones" template on which to build Expert Advisors.
Last edited by SteveBrown : 11-11-2006 at 06:00 AM. Reason: The attached debugEA_v3.mq4 corrects a bug I found in debugEA_v2.mq4. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Small EA Component help | Archimedes | Suggestions for Trading Systems | 1 | 06-20-2007 10:17 AM |
| Fixing REIMT4 Ind. | spiketrader | Indicators - Metatrader 4 | 0 | 12-13-2006 04:24 AM |
| help fixing EA | hexadecimal | General Discussion | 1 | 11-03-2006 03:00 PM |