question on iCustom

 

Hello All,

Does anybody know what does the "mode" parameter in iCustom mean?

iCustom( string symbol, int timeframe, string name, ..., int mode, int shift)

Thank you

 

It's the reference number of the buffer in the indicator being called so will be between 0 and 7.

hth

V

 
Viffer:

It's the reference number of the buffer in the indicator being called so will be between 0 and 7.

If you have the mq4 version, just look up the source code for the buffer numbers.

If you only have the compiled ex4 version, open the MT4 Data Window and slide the mouse over the indicator.

The values it returns is in ascending order with mode 0 on top.

 
I've noticed custom indicators decrease the speed of back-tests considerably compared to standard indicators. Is this due to their calculations OR the fact that custom indicator are just generally slower?