Forex
Google
New signals service!

Go Back   Forex Trading > Programming > Metatrader Programming


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

Reply
 
LinkBack Thread Tools Display Modes
  #251 (permalink)  
Old 12-06-2007, 02:08 PM
Member
 
Join Date: Dec 2006
Posts: 30
Nomura is on a distinguished road
newdigital,
Sorry for using large size font in previous post.
Sorry for my poor english. I raised previous post as " To Do And Not To Do " with EA with GlobalVariables, I did not mean that I wanted to learn how to code EA with GlobalVariables. I cannot code, I am just a general user and I just want to know correct way to use EA (with or without GlobalVariables).
I asked this question as I experienced that some EAs were locked when I removed the EA with position opened and I had to raised a new account and install a new MT4 Terminal. I raised the same question in other forums but nobody can give a full answer.
I think it may be better to move previous post to General Discussion Section or Set Up Question Sectiom of this forum.
Thanks in advance.
Nomura

Last edited by Nomura; 12-06-2007 at 02:22 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #252 (permalink)  
Old 12-06-2007, 03:33 PM
Administrator
 
Join Date: Sep 2005
Posts: 16,268
Blog Entries: 106
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
I don't know the answer.

As to small threads so I am always menging small stand-alone threads with the other big threads. because forum is big and sometimes members are trying to open separated threads for just one question and in the end of the day we are having 10 or 20 separated threads with 1 or 2 posts. So, i am always merging ...

This programming section is for the people whio probable know the answer for your question.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #253 (permalink)  
Old 12-07-2007, 12:32 AM
Member
 
Join Date: Dec 2006
Posts: 30
Nomura is on a distinguished road
Yes Sir !
You know what is the best to this Forum and you are at the position to maintain it.
Sorry for giving you extra work load.
Regards.
Nomura
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #254 (permalink)  
Old 12-07-2007, 05:36 PM
Junior Member
 
Join Date: Oct 2007
Posts: 6
nakata79087 is on a distinguished road
question

I think " if ( alertTag!=Time[0]) " means if not same send mail and alert

but I do not understand " alertTag = Time[0]; " meaning at all .

alet and send mail is finish.why need this code????



if ( (fasterMAnow > slowerMAnow) && (fasterMAprevious <
slowerMAprevious) && (fasterMAafter > slowerMAafter)) {
CrossUp[i] = Low[i] - Range*0.5;
if ( alertTag!=Time[0]) ←
{
PlaySound(SoundWAV);// buy wav
Alert(Symbol()," M",Period()," MA cross BUY");
SendMail(Period()+" hit MA long ",Bid +"long");
}
alertTag = Time[0]; ← what mean???

}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #255 (permalink)  
Old 12-07-2007, 05:58 PM
Senior Member
 
Join Date: Feb 2006
Posts: 519
Michel is on a distinguished road
Quote:
Originally Posted by nakata79087 View Post
I think " if ( alertTag!=Time[0]) " means if not same send mail and alert

but I do not understand " alertTag = Time[0]; " meaning at all .

alet and send mail is finish.why need this code????



if ( (fasterMAnow > slowerMAnow) && (fasterMAprevious <
slowerMAprevious) && (fasterMAafter > slowerMAafter)) {
CrossUp[i] = Low[i] - Range*0.5;
if ( alertTag!=Time[0]) ←
{
PlaySound(SoundWAV);// buy wav
Alert(Symbol()," M",Period()," MA cross BUY");
SendMail(Period()+" hit MA long ",Bid +"long");
}
alertTag = Time[0]; ← what mean???

}
It is needed to run the sound/alert/mail routine maximun only once per bar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #256 (permalink)  
Old 12-08-2007, 09:56 PM
Junior Member
 
Join Date: Oct 2007
Posts: 2
Mrxit is on a distinguished road
EX4 loading probs.

Ok, I've done my due diligence to try and solve this problem to no avail. I have downloaded and used many mq4 advisors/indicators.. I know the process for that. However, EX4 files are something different. I know ex4 files are suppose to be like mq4 files but with the code hidden. Anyway, whenever I save these files into metrader4 experts/indicators ...close program and reopen they are not in the folder. What am I doing wrong. It seems Metrader only recognizes mq4 files. Any help is appreciated. I cant seem to find any info. it seems othere people are having the same problem but no one has supplied an answer.
Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #257 (permalink)  
Old 12-09-2007, 12:05 AM
Senior Member
 
Join Date: Jun 2006
Posts: 1,136
prasxz is on a distinguished road
hi

Quote:
Originally Posted by Mrxit View Post
Ok, I've done my due diligence to try and solve this problem to no avail. I have downloaded and used many mq4 advisors/indicators.. I know the process for that. However, EX4 files are something different. I know ex4 files are suppose to be like mq4 files but with the code hidden. Anyway, whenever I save these files into metrader4 experts/indicators ...close program and reopen they are not in the folder. What am I doing wrong. It seems Metrader only recognizes mq4 files. Any help is appreciated. I cant seem to find any info. it seems othere people are having the same problem but no one has supplied an answer.
Thanks

ex4 is compiled file from mql4 ...maybe your MT4 not yet updated or there's wrong syntax code in your mql4 ...

===================
Forex Indicators Collection
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #258 (permalink)  
Old 12-12-2007, 03:58 PM
syedks's Avatar
Junior Member
 
Join Date: Dec 2007
Location: London
Posts: 28
syedks is on a distinguished road
Question Please help - what is "shift" in iMA method?

Friends, can anyone please explain me in simple english that what is SHIFT parameter in iMA method?

double iMA(string symbol, int timeframe, int period, int ma_shift, int ma_method, int applied_price, int shift)

according to MT4 help, its "Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago)." - what is indicator buffer???

please help.

cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #259 (permalink)  
Old 12-12-2007, 04:39 PM
Junior Member
 
Join Date: Sep 2007
Posts: 14
deuxmille is on a distinguished road
0 means current value of ma
1 means value of ma of last candle
2 means value of ma of last but one candle
etc....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #260 (permalink)  
Old 12-12-2007, 08:39 PM
Member
 
Join Date: Oct 2006
Posts: 56
Jovager is on a distinguished road
How change a stoploss ?

In an EA, I have SL=50.

How change it to have SL=50 or crossing of 2 MAs ?

Thanks for help.

Jo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
close, eas, profit, reach

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Learning Cycles For New Traders Dan7974 General Discussion 350 01-18-2008 06:04 PM
Learning to code for autotrading GoatT Metatrader Programming 8 01-10-2007 08:55 PM
Self learning expert mrtools Expert Advisors - Metatrader 4 32 10-22-2006 05:29 PM


All times are GMT. The time now is 10:43 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.