Ema Cross! - page 14

 

Thanks!

Audio:
YEESSS Coders guru , I didnt do any thing to it , These is the first EA I can trust , becozzz I now who make it .Thank You Coders guru ,looking for ward to learn more from you . cheers

This is a simple EA my friend and I can't recommend it yet becozzz of that!

Thanks Audio!

 
codersguru:
This is a simple EA my friend and I can't recommend it yet becozzz of that! Thanks Audio!

OOOHHH Please, If These is your simple EA so what do your BETTER EA LOOK LIKE? haahahahah. Cheers

 

my best EA will not be wrote!

Audio:
OOOHHH Please, If These is your simple EA so what do your BETTER EA LOOK LIKE? haahahahah. Cheers

I'm writing my best EA current now and maybe you see it soon.

But when I submit it, I will consider it a Simple EA and write my new best EA, that's because I'm nonstop learner!

So, my best EA will not be wrote .

 
codersguru:
Anybody has a comment about the Simple Moving Average ChannelEA? https://www.mql5.com/en/forum/173347

Hello CodersGuru, what is this EA supposed to do? All the link gives is the EA and backtesting. What are the rules. You had tested it on the EurUsd on 1 hour charts, but that's all i know.

Also could an indicator set be created to give a visual indication of how and when it takes trades?

Thanx,

Graham

 

Simple Moving Average Channel Indicator

gkozlyk:
Hello CodersGuru, what is this EA supposed to do? All the link gives is the EA and backtesting. What are the rules. You had tested it on the EurUsd on 1 hour charts, but that's all i know.

Also could an indicator set be created to give a visual indication of how and when it takes trades?

Thanx,

Graham

Graham,

To know the whole story go to the thread:

https://www.mql5.com/en/forum/173347

And read the article:

http://www.stock-charts-made-easy.com/moving-average-channel.html

I've created this indicator to show you the Idea.

Files:
smac_ind.mq4  4 kb
 
codersguru:
Graham,

To know the whole story go to the thread:

https://www.mql5.com/en/forum/173347

And read the article:

http://www.stock-charts-made-easy.com/moving-average-channel.html

I've created this indicator to show you the Idea.

Thanx for the info. I read it all plus i also did some backtesting. What time frames would you say would work best for this. It seemed to work on 1 day and 1 hour charts.

 

coders guru

Thanks for the reply. I would like to extend my questioning. If you change the timeframe on a chart then MQ will visit the init() function and execute that code first before any other code will be seen in the start() function. Therefore if the line of code in the init() function contains the code below the timeFrame will be changed before MQ sees the code in the start() functions and change the TimeFarme variable first.

I've read that when ever you change the symbol or the time frame on an EA, the INIT() function will get re-visited before the START() gets triggered. Would this not invalidate your coding attemp, otherwise. Or am I overlooking something.

Thanks again

The CockeyedCowboy

int init()

{

TimeFrame=Period();

return(0);

}

codersguru:
CockeyedCowboy,

I used the first block of code to be sure that the changing of the chart period will not affect the program.

For example: if you attached the expert advisor to M30 chart and the Short EMA line was above the Long EMA line in the M30 chart, Then you clicked the D1 button and changed the timeframe to daily timeframe and the you was unlucky and the Short EMA line in the D1 chart was below the Long EMA in this chart. The expert advisor will consider it a crossing and open a trade. But with the above code i give it a chance to remember the last time frame and wait for another tick.

I used the second block of code to check the currently opened trades and prevent the expert advisor to trade in the same pair twice.
 

Hi Audio

Which EA you have ued for your demo testing on 17th Feb and have attached your statement.

 

The ma cross 1 &2 I am not abig fan of ea till the Codersguru version EA .I run the 1 ea it give a good result for the 1st week ,but I lost the report . And the same evening I run again the 2nd ea that the one you see I think.

 

I like this!

Greetings Codersguru!

I followed a lot of threads about EA's for MetaTrader in the last year. Some good, some better and some worse. I still don't know why, but I like this EA of yours. I believe it has a lot of potential. Did some backtesting and decided to trade a 5K mini-demo account with the following pairs and TF's:

USD/CHF H4

GBP/CHF H1

EUR/CHF H1

EUR/USD H4

EUR/JPY M30

EUR/AUD H4

AUD/USD D

USD/CAD D

EUR/CAD H1

I will keep you informed about the results.

Reason: