Download MetaTrader 5

ho i can call supertrend indicator?

To add comments, please log in or register
Search in documentation is available via MetaTrader 5. Search and learn!
andream1977
52
andream1977 2016.01.17 22:23 

Hi

 

i dont understand how to use supertrend indicator for mt4

i try this code:

 

double superTrendValue = iCustom(NULL, 0, "Downloads/SuperTrend", 14, false, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0);
Print("superTrendValue: ",superTrendValue);

 but it does not work

anybody can help me?

 

best regards 

Files:
Biantoro Kunarto
14806
Biantoro Kunarto 2016.01.20 03:40  

Please try this :

      double superTrendValueUp = iCustom(NULL, 0, "SuperTrend", 14, false, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0);
      double superTrendValueDown = iCustom(NULL, 0, "SuperTrend", 14, false, 14, 14, 14, 14, 14, 14, 14, 14, 14, 1, 0);      
      Print("superTrendValueUp: ",superTrendValueUp);
      Print("superTrendValueDown: ",superTrendValueDown);
Biantoro Kunarto
14806
Biantoro Kunarto 2016.01.20 03:43  

You must put the SuperTrend indicator in this folder:

\AppData\Roaming\MetaQuotes\Terminal\\MQL4\Indicators

To add comments, please log in or register