iCustome

 

Im trying to use iCustom to get indicator into EA but it doesn't seem to pick up the values..


This is what I have in the Indicator:

   SetIndexBuffer(0,RSI1);
   SetIndexBuffer(1,RSI2);
   SetIndexBuffer(2,RSI3);


And this is how i define it my EA:

cDRSI_0 = iCustom(NULL, 0, "MyRSIindicator", 0, 0);
cDRSI_1 = iCustom(NULL, 0, "MyRSIindicator", 1, 0);
cDRSI_2 = iCustom(NULL, 0, "MyRSIindicator", 2, 0);



Any ideas why it doesn't work? I have tried so many different options but with no luck.


Thanks a lot for any tips.


Jiri

 

Hi Jiri

You don't show the inputs required for your indicator. Try setting shift to 1. Why is iCustom pink it should be green?

 
Thanks for the tip Ruptor, but it's still not working. Do I need to create a loop to load the indicator every time there is a new tick data?
 
jirimac:
Thanks for the tip Ruptor, but it's still not working. Do I need to create a loop to load the indicator every time there is a new tick data?

No iCustom calls indicator. Does your indicator require inputs?

 
Yeah, its RSI so it has the number of periods. I tried to pass that into my EA but it didnt help..
 
jirimac:
Yeah, its RSI so it has the number of periods. I tried to pass that into my EA but it didnt help..

So your calls should look like this then for a period of 13, any other format is wrong.

now run a visual back test and see what the varible value is

cDRSI_0 = iCustom(NULL, 0, "MyRSIindicator",13, 0, 0);
Comment("cDRSI_0=",cDRSI_0);

 

Awesome! Thanks a lot Ruptor for your great help! Its works fine now.

Thanks again for your time and you help. This is really great community with great people.