Hi,
I was wondering if someone could 'read' this EA and tell me how it works?
I am trying to learn how to read code so that I can also learn to write code. This one I find interesting when I back test but I can't figure out what entry signals it uses.
Thanks
double diClose0=iClose(Symbol(),timeframe,0);
double diMA1=iMA(Symbol(),timeframe,7,0,MODE_SMA,PRICE_OPEN,0);
double diClose2=iClose(Symbol(),timeframe,0);
double diMA3=iMA(Symbol(),timeframe,6,0,MODE_SMA,PRICE_OPEN,0);
if(!ExistPositions()) {
if((diClose0<diMA1)) {
OpenBuy();
return(0); }
if ((diClose2>diMA3)) {
OpenSell();
return(0); } }
If you are trying to learn how to read code..it doesn't get much simpler than this ^

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I was wondering if someone could 'read' this EA and tell me how it works?
I am trying to learn how to read code so that I can also learn to write code. This one I find interesting when I back test but I can't figure out what entry signals it uses.
Thanks