|
|||||||
| 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 |
|
|||
|
Ea
Hi Coders Guru,
I'm looking forward to learning all the parts of this EA. I noticed in the code: static int last_direction = 0; static int current_dirction = 0; Note the missing "e" in the 2nd line. I don't know if this will matter, but I thought I'd better bring it to your attention. This EA seems to be a EMA 8,13 crossover. It makes a loss on my eurusd H4 chart, so I would like to be able to optimise the 8 and 13. I guess by now we should be able to make them ext double variables and optimise them, so I will try to do that. Also, how do we ask the EA to draw the 2 EMA's on the chart? I don't know why EA's don't automatically draw the indicators they use, because we will always want to see them. Thanks again for these great lessons. Last edited by barry : 11-25-2005 at 12:41 AM. Reason: More thoughts |
|
||||
|
Quote:
Quote:
Anyway, this EA is for educational purpose only. Quote:
But you can see the indicator in Strategy tester by clicking Open chart button in the Strategy Tester Settings tab. Quote:
|
|
|||
|
Results
Coders Guru,
Thanks for the report. I know the point of this is to learn to code, but I wanted to check that we get the same results, so I know I'm doing it right. In fact, we don't get the same results for the same script, but it's pretty close, and I'm guessing the difference is due to different data. I get my data from InterbankFX. Thanks again, love the course, Barry |
|
||||
|
ea
Quote:
|
|
||||
|
Quote:
I think the differnce of the data feed (as Barry said) is the reason of the differnce of results. For example different brokers and the different number of bars. Anyway , This EA is for educational purpose and we can not study its behavior as a real EA. |
|
||||
|
Quote:
|
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Lesson 14 - Your First Expert Advisor (Part 2) | codersguru | Lessons | 12 | 07-04-2008 09:35 AM |
| Lesson 16 - Your First Expert Advisor (Part 4) | codersguru | Lessons | 16 | 10-05-2006 05:42 AM |
| CCI Expert Advisor | rodrigokaus | Expert Advisors - Metatrader 4 | 10 | 09-29-2006 06:31 PM |
| Lesson 15 - Your First Expert Advisor (Part 3) | codersguru | Lessons | 5 | 12-27-2005 10:00 PM |