Forex
Google

Go Back   Forex Trading > Downloads > Indicators - Metatrader 4
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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 (3) Thread Tools Display Modes
  3 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 02-21-2006, 11:09 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
Talking Easy iCustom and Alerts!

Hi folks,

I know very much the pain of using iCustom function and thousand of requests asking me about Alerts on crossing an indicator another indicator.

Well, it will not be painful anymore.
Just download this new indicator and wait my description.

Please vote if you like it !
Attached Files
File Type: mq4 Easy_iCustom_and_Alerts.mq4 (11.2 KB, 1716 views)
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm

Last edited by codersguru : 02-22-2006 at 01:28 AM. Reason: Indicator updated!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2006, 11:33 PM
jerami jerami is offline
Member
 
Join Date: Dec 2005
Posts: 58
jerami is on a distinguished road
Smile Alert and Sound

Thanks Dude..
I has a request. Can u develop an Indicator that can give an alert and Sound from 2 indicator ( Silvertrend and Triggerline).

Condition:- Only when both meet on the same time..

thanx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-22-2006, 01:13 AM
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

Quote:
Originally Posted by jerami
Thanks Dude..
I has a request. Can u develop an Indicator that can give an alert and Sound from 2 indicator ( Silvertrend and Triggerline).

Condition:- Only when both meet on the same time..

thanx
You're welcome!

You can use this indictor in your case! Wait the explanation of the indicator and you will know how.
__________________
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
  #4 (permalink)  
Old 02-26-2006, 12:08 PM
jgabin jgabin is offline
Junior Member
 
Join Date: Feb 2006
Posts: 8
jgabin is on a distinguished road
Hi Guru !

When you get a chance to post the explanation, I would be very interested too!

Thanks !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-26-2006, 06:11 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
Post Explanation!

Hi folks,
If you get tired of iCustom usage and Alerts embedding, this indicator for you!
You can use this indicator to load the indicators you want using iCustom function but you will not write a line of code. All what will you do is entering the inputs of the indicators you want to load in the Easy iCustom and Alerts input window and when the indicator alerts you.

Parameters:

Alert_On_Crossing
Set this option to true if you want the indicator alerts you when any of the loaded indicators has been crossed.

Pair_1
Set here the currency pair string you want to use with the first indicator. Use "NULL" if you want to work with the current currency.
EX: "EURUSD".

Indicator_Name_1
The name of the first indicator you want to load. This name must be the same as the file name of the indicator without the .ex4 extension.
EX: "Moving Averages" (the original file name is Moving Averages.ex4)

TimeFrame_1
The timeframe (in minutes) of the first indicator you want to load. use 0 if you want to work with the current time frame.
EX: 30


PERIOD_M1 1
PERIOD_M5 5
PERIOD_M15 15
PERIOD_M30 30
PERIOD_H1 60
PERIOD_H4 240
PERIOD_D1 1440
PERIOD_W1 10080
PERIOD_MN1 43200

Line_1
The line of the indicator you are loading that you want to use. It's zero based number which means the first line is 0 and the second line is 1 and the last line is 7 (The maximum value of lines allowed in any indicator are 8 and starts from 0, then the last line is 7).
The most of the indicator uses only one line, so you will use 0 here.

Parameter1_1
Set the first parameter of the indicator you want to load as the first line. The parameters of the indicator are any values declared as external variables.
For example the Moving Averages indicator accepts three parameters:
extern int MA_Period
extern int MA_Shift
extern int MA_Method
So, you have to enter the MA_Period here as the first parameter.

Parameter2_1
The second parameter of the indicator you want to load as the first line.

Parameter3_1
The third parameter of the indicator you want to load as the first line.

Parameter4_1
The fourth parameter of the indicator you want to load as the first line.

Parameter5_1
The fifth parameter of the indicator you want to load as the first line.

Pair_2
Set here the currency pair string you want to use with the second line.

Indicator_Name_2
The name of the second line you want to load.

TimeFrame_2
The timeframe (in minutes) of the second line you want to load.

Line_2
The line of the second indicator you are loading that you want to use.

Parameter1_2
Set the first parameter of the indicator you want to load as the second line.

Parameter2_2
The second parameter of the indicator you want to load as the second line.

Parameter3_2
The third parameter of the indicator you want to load as the second line.

Parameter4_2
The fourth parameter of the indicator you want to load as the second line.

Parameter5_2
The fifth parameter of the indicator you want to load as the second line.

Pair_3
Set here the currency pair string you want to use with the third line.

Indicator_Name_3
The name of the third line you want to load.

TimeFrame_3
The timeframe (in minutes) of the third line you want to load.

Line_3
The line of the second line you are loading that you want to use.

Parameter1_3
Set the first parameter of the indicator you want to load as the third line.

Parameter2_3
The second parameter of the indicator you want to load as the third line.

Parameter3_3
The third parameter of the indicator you want to load as the third line.

Parameter4_3
The fourth parameter of the indicator you want to load as the third line.

Parameter5_3
The fifth parameter of the indicator you want to load as the third line.


Note 1: How to know how many lines (buffers) in an indicator?
Just open the source code of the indicator in MetaTrader and check the line:
#property indicator_buffers 1
The number 1 means 1 line and 2 means 2 line etc (up to 8 lines).


Note 2: How to know how many parameters the indicator accept?
AS I told you before the parameters are the external functions that the indicator uses.
So, Open the indicator source code and check how many external functions it uses.


Note 3: The order of the external functions declaration in the source code of the indicator are the order of the parameters the indicator accept. EX:
extern int MA_Period=13; <-- Parameter 1
extern int MA_Shift=0; <-- Parameter 2
extern int MA_Method=0; <-- Parameter 3


Hope to see your comments!

__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm

Last edited by codersguru : 02-26-2006 at 06:18 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-26-2006, 07:21 PM
Audio's Avatar
Audio Audio is offline
Senior Member
 
Join Date: Oct 2005
Posts: 140
Audio is an unknown quantity at this point
Exselento, what about an EA maker short cut custom? cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-26-2006, 10:08 PM
jgabin jgabin is offline
Junior Member
 
Join Date: Feb 2006
Posts: 8
jgabin is on a distinguished road
Thanks Guru. I didn't understand everything. Can I use this program to make an alert when 2 lines cross from the same indicator ? For example, Stoch%K and Stoch%D
Is it possible to make the alert work only at the close of the bar ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-27-2006, 12:09 AM
cockeyedcowboy's Avatar
cockeyedcowboy cockeyedcowboy is offline
Senior Member
 
Join Date: Nov 2005
Posts: 267
cockeyedcowboy is on a distinguished road
CodersGuru

I took the liberty and added your explainations to your code. That way when someone goes to use it they dont have to go looking for the documentation or examples That you supplied on how to use your code.

I always try to include documentation at the end of my code, which includes the purpose of the code, its usage, a record of version updates with a list of planed future inprovements along with debuging and coding notes. Its a nice finish touch too. This aids myself, as well as others in the usage of my code. Its a practice I wish more people would use.

I, by no means, am trying to be critical of your work. You of all people, have given of your time for the benefit of others. You do alot of coding here, and I just figured if you were to pick up the ball in this area and run with it, maybe others will take notice and follow your leed and document their code too.



Thanks again, your effects donot go un-noticed.



The CockeyedCowboy


Quote:
Originally Posted by codersguru
Hi folks,

I know very much the pain of using iCustom function and thousand of requests asking me about Alerts on crossing an indicator another indicator.

Well, it will not be painful anymore.
Just download this new indicator and wait my description.

Please vote if you like it !
Attached Files
File Type: mq4 Easy_iCustom_and_Alerts[1].mq4 (18.7 KB, 879 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-27-2006, 12:44 AM
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 Thanks!

Quote:
Originally Posted by cockeyedcowboy
CodersGuru

I took the liberty and added your explainations to your code. That way when someone goes to use it they dont have to go looking for the documentation or examples That you supplied on how to use your code.

I always try to include documentation at the end of my code, which includes the purpose of the code, its usage, a record of version updates with a list of planed future inprovements along with debuging and coding notes. Its a nice finish touch too. This aids myself, as well as others in the usage of my code. Its a practice I wish more people would use.

I, by no means, am trying to be critical of your work. You of all people, have given of your time for the benefit of others. You do alot of coding here, and I just figured if you were to pick up the ball in this area and run with it, maybe others will take notice and follow your leed and document their code too.



Thanks again, your effects donot go un-noticed.



The CockeyedCowboy
CockeyedCowboy,

THANKS! That's Great!
You've read my mind, I have intended to copy the explanation to the source code but you do it. And you do it the way better than what I was intending to do!

Thanks again!
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm

Last edited by codersguru : 02-27-2006 at 12:48 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-27-2006, 07:36 AM
Audio's Avatar
Audio Audio is offline
Senior Member
 
Join Date: Oct 2005
Posts: 140
Audio is an unknown quantity at this point
Hi codersguru is there any pacth on for the eazy to add on arrow when the indi cross ? like when the rsi cross 0 ,the arrow appear assoon as the rsi line cross 0 ,or when price cross ma not anew bar but right when the price cross or when fmas cross smas the arrow will appear? cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

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/indicators-metatrader-4/1094-easy-icustom-alerts.html
Posted By For Type Date
。レForex。ロMetaTrader Partュコ。レCFD.&Futures。ロ - MetaTrader、゙、ネ、畍iki This thread Refback 02-01-2008 09:00 AM
。レForex。ロMetaTrader Partュコ。レCFD.&Futures。ロ - MetaTrader、゙、ネ、畍iki This thread Refback 01-08-2008 11:15 AM
【Forex】MetaTrader PartY【CFD.&Futures】 This thread Refback 11-04-2007 05:22 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
iCustom question .. yaniv_av Indicators - Metatrader 4 16 06-20-2008 04:37 PM
iCustom function homicida Questions 55 06-07-2008 04:36 AM
icustom maje Questions 24 12-05-2007 09:26 AM
I need help on creating an Icustom statement for my EA using this indicator as input! iscuba11 Expert Advisors - Metatrader 4 4 09-11-2006 07:18 PM
iCustom() problem billritz Indicators - Metatrader 4 5 08-23-2006 07:22 AM


All times are GMT. The time now is 02:56 AM.