ho i can call supertrend indicator?

 

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:
 

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);
 

You must put the SuperTrend indicator in this folder:

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

Reason: