It is my first time writing a custom indicator and what I am trying to do is very simple but somehow I am not getting the expected result.
I just want to call the custom indicator "Moving Averages.mq4" a few times with different parameters.
Right now, this is the code I came up with. The Moving Averages are not being drawn right now.
Thank you for any help.
aoeuaoeu
I just want to call the custom indicator "Moving Averages.mq4" a few times with different parameters.
Right now, this is the code I came up with. The Moving Averages are not being drawn right now.
Inserted Code
//+------------------------------------------------------------------+
//| close.mq4 |
//| Copyright ゥ 2004, MetaQuotes Software Corp. |
//| http://www.metaquotes.net/ |
//+------------------------------------------------------------------+
#property copyright "Copyright, 2004, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net/"
#property indicator_chart_window
//+------------------------------------------------------------------+
//| puts up a 12 EMA, 26 EMA, 26 SMA and 200 EMA |
//+------------------------------------------------------------------+
int init()
{
iCustom(0, 0, "Moving Averages", 12, 0, 1, 1, 0);
iCustom(0, 0, "Moving Averages", 26, 0, 1, 1, 0);
iCustom(0, 0, "Moving Averages", 26, 0, 2, 1, 0);
iCustom(0, 0, "Moving Averages",200, 0, 1, 1, 0);
return(0);
}
int start()
{
return(0);
}
int deinit()
{
return(0);
}
//+------------------------------------------------------------------+ Thank you for any help.
aoeuaoeu