Download MetaTrader 5

Using iCustom in EA

To add comments, please log in or register
salirazataqvi
24
salirazataqvi  

Hi all,


I am trying to use SupportResistance custom indicator available in MT4 platform using iCustom function in Expert Advisor. I am using following code.

          Resistance = iCustom(NULL, 0, "SupportResistance", 0, 0);
          Support = iCustom(NULL, 0, "SupportResistance", 1, 0);

By using above code I am getting both Support and Resistance 0. Then I change the code as follows:


          Resistance = iCustom(NULL, 0, "SupportResistance", 0, 1);
          Support = iCustom(NULL, 0, "SupportResistance", 1, 1);

By using above code I am getting only Resistance value, Support is still equals to zero.


Please tell me how to use SupportResistance indicator in Expert Advisor. Any help or code example would be highly appreciated.


Thanks.

whroeder1
15934
whroeder1  
  1. Don't paste
code
    Play video
    Please edit your post.
    For large amounts of code, attach it

  2. salirazataqvi: Please tell me how to use SupportResistance indicator in Expert Advisor.
    How should we know when you don't supply the indicator?
  3. Detailed explanation of iCustom - MQL4 forum
salirazataqvi
24
salirazataqvi  
whroeder1:
  1. Please edit your post.
    For large amounts of code, attach it

  2. How should we know when you don't supply the indicator?
  3. Detailed explanation of iCustom - MQL4 forum

You can find this indicator in MT4. under the menu:

Insert---->indicators---->Custom---->SupportResistance

To add comments, please log in or register