Forex
Google

Go Back   Forex Trading > Metatrader Training > Metatrader 4 mql 4 - Development course > Questions
Forex Forum Register FAQ Members List Calendar Today's Posts


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 (2) Thread Tools Display Modes
  #11 (permalink)  
Old 11-10-2005, 06:32 PM
newdigital newdigital is offline
Administrator
 
Join Date: Sep 2005
Posts: 15,222
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 did very small EAs for RSTL and Supertrend crossing alert.
First one is working on current bar.
Second one is working on optional bar (current, previous or any).
Alerts only.

Sorry bad coding: we did not study EAs yet.
And may be I did some mistake ...
but I tested and it works.
Attached Files
File Type: mq4 cross.mq4 (2.7 KB, 182 views)
File Type: mq4 cross1.mq4 (2.7 KB, 167 views)
File Type: mq4 RSTL.mq4 (3.8 KB, 153 views)
File Type: mq4 Supertrend.mq4 (3.5 KB, 193 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 11-10-2005, 06:58 PM
Tor10 Tor10 is offline
Junior Member
 
Join Date: Nov 2005
Posts: 1
Tor10 is on a distinguished road
Implementing EA

Quote:
Originally Posted by codersguru
Hi folks,

I've got a lot of private messages asking me for helping with some pieces of code.

Here you can post your questions related to MQL4, and I'll do my best to answer them.
How do you implement an EA program for testing at the Strategic Tester? Please give me an exact step by step advice from a written program in a word document to a functional program in a Strategic Tester. Thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 11-11-2005, 07:48 AM
hua hua is offline
Member
 
Join Date: Oct 2005
Location: Athens
Posts: 75
hua is on a distinguished road
Quote:
Originally Posted by newdigital
I did very small EAs for RSTL and Supertrend crossing alert.
First one is working on current bar.
Second one is working on optional bar (current, previous or any).
Alerts only.

Sorry bad coding: we did not study EAs yet.
And may be I did some mistake ...
but I tested and it works.
Sorry but i cannot attach ''cross'' and cross1 to my charts.
it is an indicator and not EA, isnt' it?
mny tks in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 11-11-2005, 08:36 AM
newdigital newdigital is offline
Administrator
 
Join Date: Sep 2005
Posts: 15,222
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
It is EA. Use one of it (do not attach both).
But it is not trading (alarm only).

I want to note that I understand this thread as the samples for the most often useful pieces of the code. I did not develop anything.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 11-11-2005, 02:02 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Thumbs up Great Work!

Quote:
Originally Posted by newdigital
I did very small EAs for RSTL and Supertrend crossing alert.
First one is working on current bar.
Second one is working on optional bar (current, previous or any).
Alerts only.

Sorry bad coding: we did not study EAs yet.
And may be I did some mistake ...
but I tested and it works.

New developer is coming GREAT WORK!

Quote:
A little note: don't include <stdlib.mqh> (or any header file) if you will not use it.
I'm so happy for you, KEEP GOING BROTHER!
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 11-11-2005, 02:10 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow If not, it's not!

Quote:
Originally Posted by hua
Sorry but i cannot attach ''cross'' and cross1 to my charts.
it is an indicator and not EA, isnt' it?
mny tks in advance
Hi hua,

There's a simple method to know which is an Indicator and which is an EA.

Open the source file and if you find one of these two lines it's an indicator:

#property indicator_chart_window
#property indicator_separate_window


If not, it's not.
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 11-11-2005, 02:38 PM
hua hua is offline
Member
 
Join Date: Oct 2005
Location: Athens
Posts: 75
hua is on a distinguished road
Quote:
Originally Posted by codersguru
Hi hua,

There's a simple method to know which is an Indicator and which is an EA.

Open the source file and if you find one of these two lines it's an indicator:

#property indicator_chart_window
#property indicator_separate_window


If not, it's not.
tks once more indeed. But if i am allowed to say that any alerts as EA doesnt make any sense due to the fact we hv to use only one EA. So its much better on an indicator basis. Dont yu think? all the best.
PS: what we shall do to an indicator alert to alarm only '' ONE TIME''?
TKS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 11-11-2005, 03:24 PM
newdigital newdigital is offline
Administrator
 
Join Date: Sep 2005
Posts: 15,222
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
Sorry we do not understand what "one time" is.
What does is mean?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 11-11-2005, 06:18 PM
hua hua is offline
Member
 
Join Date: Oct 2005
Location: Athens
Posts: 75
hua is on a distinguished road
Quote:
Originally Posted by newdigital
Sorry we do not understand what "one time" is.
What does is mean?
To sounds/alarm only once (only one time), those using Alpari's platforma, can
realize that dont need continuous alerts (when the event happen), since Alpari has a window listing all alerts, so yu can see it at any time. tks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20 (permalink)  
Old 11-11-2005, 06:26 PM
newdigital newdigital is offline
Administrator
 
Join Date: Sep 2005
Posts: 15,222
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
It was one time alert only when crossing.
If two lines are crossed two times the alert will be two times as well.

Or use cross1 EA and select Bar 1 (instead of 0).

Last edited by newdigital : 11-11-2005 at 07:28 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



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

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

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/questions/270-ask.html
Posted By For Type Date
OzFx System:) - Page 639 This thread Refback 06-21-2008 09:53 PM
Forex SRDC Sidus Sibkis EA MT4 Forum OTCSmart This thread Refback 12-08-2007 11:46 AM


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