Ask! - page 36

 
jth:
my image attempt any questions let me know

Thank you

JTH

jth,

It is one MA crossing the the other MA? But you are talking about 4 MAs crossing with the other 4 MAs. May be i am wrong. So please clarify: how many MAs are crossing the other MAs?

If MA is going long so it means that the value of this MA (value on the chart - the same with price but value of MA on some bar - y-scale) on the second closed bar for example) is less than the value of the first closed bar (for example as well).

First close bar is the previous from current one (current one is open bar and is not closed yet). Counting is started from the current zero bar. So, from current zero back to the first, second and so on ("back to the future").

If MA is going short it means that value of MA (any MA because in EA we can set the close/open or any price and set to be EMA, SMA and so on) on the second close bar is more higher than on the first close bar.

So how many MAs indicators to program?. Also, if one MA is crossing the other one so it is understandable. But if 4 MAs are crossing the other 4 MAs so it is necessary to clarify: which one should be fast MAs and which one is slow.

Or two MA are crossing the other two MAs? It's ok. This EA will not trade often but it is no problem. Problem will be the following: it will be difficult to optimize the settings (period of each MA, type of MAs and so on).

So need clarification.

 
 

I don't understand predeterming and determing but i think it is Codersguru's EA . EMAcross. There are many EAs based on MAs. A lot. So try to look at this. I may create but it was create already and it was create many times:

- This section for example,

- https://www.mql5.com/en/forum/174282 and

- https://www.mql5.com/en/forum/trading_systems and

- https://www.mql5.com/en/forum/173468 and

- https://www.mql5.com/en/forum/general

Or just check some EAs which i created using Gordago tool about two months ago:

1. ma_expert.mq4 is simple ema crossing;

2. MA_ExpertProfit.mq4: it is the same EA but it will close the orders in s/l or t/p only.

3. MA_ExpertProfit_all.mq4: it will close the order on s/l or t/p, or on the other crossing signal. This EA should work on particular account only. Just change the line "int Account = 111111;" to your account number inside the code. For example your account is 1235463. So this line should be like this:

int Account = 1235463;

4. MA_ExpertProfit_noacc.mq4: it is the same with item # 3. But without any account and it may work in any account (i mean account in Metatrader).

I am not sure that those EAs will work well as i am not a coder.

So the better way is just to check some links posted above for Codersguru EAs.

 

thanx newdigital

thanx newdigital for your help and input

Regards

JTH

 

iCustom for TD_Points&Line_Auto indicator

How to write the iCustom for TD_Points&Line_Auto indicator.

I would like that EA opens the buy/sell orders when the price crosses

the trendlines TD_Up/TD_Dn.

Files:
 
Eaglehawk:
hey newdigital, do you happen to have an answer to problem i mentioned earlier?

i also, lastly forgot to mention one problem, once i have the indicator, i'm not sure how to get it into the ea. i've looked over the forem and found one place where you addressed it was in codersguru's lessons, could you possible clarify which lesson it's in?

thanks in advance, Eaglehawk

Eaglehawk,

I am not programmer. I can program something but it takes a long time for me.

Try to look at Codersguru lessons here http://www.metatrader.info/node/34

And there are some thread also:

- https://www.mql5.com/en/forum/general

- https://www.mql5.com/en/forum/173108

- https://www.mql5.com/en/forum/173589

 

An Interview with CodersGuru Ahmed Soliman :

http://championship.mql4.com/2006/news/15

He is currently busy Making EAs for the championship in October and writing a book on MT4 EA programming.

 

possible improvement on ema cross 2time

I am reposting this here since the original thread on EMA seems inactive for a few weeks.

Hi codersguru!

wonderful work on EAs. I would like to ask if you could ad the following two functions to ema cross v2 time version

1. stop and reverse (with true/false choice)

2. partial close of open lots as price reaches fib levels based on a 55 SMA (levels are 13,-13, 33,-33,55,-55,89-89,144,-144,233,-233)-so many levels to alow for trading in lower time frames.... or perhaps you could add three +/- levels that can be custom set. Also one should be able to set number of lots to close on each level.. In the end if there are still lots opened they should close on S/L, T/S or stop and reverse, whichever comes first.

I think these 2 additions combined with all the awsome options already available in the current version would make this EA a truly universal EA for any sort of MA variations. Thanks for showing us "THE WAY".

 

Help with alert

Hi! I've read the excellent text:Secrets of MetaTrader 4 Client Terminal: Alerting System. This is very good. I have a question.I need to trigger .exe from an EA either for buy, sell, or else. It says we can trigger either a .bat .exe or .vbs instead of the .wav file from the events setup window.. My idea is to have a buy alert and a sell alert trigger different .exe files. Can the PlaySound command can also be used to trigger .exe file from within a .mq4 EA??? I hope my question is clear. Please NewDigital or Codeguru may you answer?

 

Shell script?

GreatYves:
Hi! I've read the excellent text:Secrets of MetaTrader 4 Client Terminal: Alerting System. This is very good. I have a question.I need to trigger .exe from an EA either for buy, sell, or else. It says we can trigger either a .bat .exe or .vbs instead of the .wav file from the events setup window.. My idea is to have a buy alert and a sell alert trigger different .exe files. Can the PlaySound command can also be used to trigger .exe file from within a .mq4 EA??? I hope my question is clear. Please NewDigital or Codeguru may you answer?

Please give this article/tool a look:

MetaTrader - Tools - Shell script!