View Single Post
  #3 (permalink)  
Old 11-25-2005, 02:54 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 986
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow Thanks

Quote:
Originally Posted by barry
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.
Thank you very much for your notice, Although it will not make problems in the code, but I'll correct that.

Quote:
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.
It makes profit for me (EURUSD - H4), Please tell me how many Bars in test (you will find this number in the left top of the Report).
Anyway, this EA is for educational purpose only.

Quote:
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.
Yes, it’s a bad thing that the EAs don't automatically draw the indicators they use in the live trading.
But you can see the indicator in Strategy tester by clicking Open chart button in the Strategy Tester Settings tab.

Quote:
Thanks again for these great lessons.
You're Welcome. And thanks again.
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Reply With Quote