read again the documentation how to use iCustom()
symbol | - | Symbol the data of which should be used to calculate indicator. NULL means current symbol. |
timeframe | - | Timeframe. It can be any of Timeframe enumeration values. 0 means the current chart timeframe. |
name | - | Custom indicator compiled program name. |
... | - | Parameters set (if necessary). The passed parameters and their order must correspond with the desclaration order and the type of extern variables of the custom indicator. |
mode | - | Line index. Can be from 0 to 7 and must correspond with the index used by one of SetIndexBuffer functions. |
shift | - | Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago). |
qjol:
read again the documentation how to use iCustom()
symbol | - | Symbol the data of which should be used to calculate indicator. NULL means current symbol. |
timeframe | - | Timeframe. It can be any of Timeframe enumeration values. 0 means the current chart timeframe. |
name | - | Custom indicator compiled program name. |
... | - | Parameters set (if necessary). The passed parameters and their order must correspond with the desclaration order and the type of extern variables of the custom indicator. |
mode | - | Line index. Can be from 0 to 7 and must correspond with the index used by one of SetIndexBuffer functions. |
shift | - | Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago). |
Hey, thanks for the reply!
UPDATE: I got it to work. I finally figured out the buffers. I realized what they are FINALLY!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have been trying to program an EA that uses some custom indicators. When I compile my EA I do NOT get any errors. However, when I back test it no trades are ever placed so I am guessing I called iCustom wrong.
Here is my code:
So, can you please tell me what I did wrong with iCustom? Or is it something else?
I have attached the custom indicator below.
Thanks you so much!
If you have any questions about my code please ask.