|
|||||||
| 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 |
|
![]() |
|
|
LinkBack (3) | Thread Tools | Display Modes |
|
||||
|
Quote:
You can use this indictor in your case! Wait the explanation of the indicator and you will know how. |
|
||||
|
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! Last edited by codersguru : 02-26-2006 at 06:18 PM. |
|
|||
|
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 ? |
|
||||
|
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:
|
|
||||
|
Quote:
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! Last edited by codersguru : 02-27-2006 at 12:48 AM. |
|
||||
|
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
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |