Forex



Go Back   Forex Trading > Training > Metatrader > Metatrader 4 mql 4 - Development course > Questions
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old 11-10-2005, 07:32 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
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, 212 views)
File Type: mq4 cross1.mq4 (2.7 KB, 191 views)
File Type: mq4 RSTL.mq4 (3.8 KB, 181 views)
File Type: mq4 Supertrend.mq4 (3.5 KB, 239 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #12 (permalink)  
Old 11-10-2005, 07:58 PM
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #13 (permalink)  
Old 11-11-2005, 08: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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #14 (permalink)  
Old 11-11-2005, 09:36 AM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #15 (permalink)  
Old 11-11-2005, 03:02 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 994
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #16 (permalink)  
Old 11-11-2005, 03:10 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 994
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #17 (permalink)  
Old 11-11-2005, 03: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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #18 (permalink)  
Old 11-11-2005, 04:24 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #19 (permalink)  
Old 11-11-2005, 07: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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #20 (permalink)  
Old 11-11-2005, 07:26 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
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 08:28 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
forex, histogram, JMASlope, ToR 1.20, ZUP_v1.mq4


Currently Active Users Viewing This Thread: 3 (2 members and 1 guests)
chrisstoff, Aceton
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


All times are GMT. The time now is 01:40 PM.



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