Hi Brandsma,
your iCustom request is wrong.
TrendDirection2 = iCustom(NULL,0,"_trend", 0, 2); //asks the same index buffer at candle 2 (current -2) TrendDirection3 = iCustom(NULL,0,"_trend", 0, 3); //asks the same index buffer at candle 3 (current -3)
This is the correct request for buffer 2 and 3
TrendDirection2 = iCustom(NULL,0,"_trend", 1, 0); /asks the buffer 2 of the Trend Indicator on candle 0 (current) TrendDirection3 = iCustom(NULL,0,"_trend", 2, 0); //asks the buffer 3 of the Trend indicator on candle 0 (current)
Please keep in mind that the index buffer count starts with 0
You can use as many iCustom requests as you want.
A simple MA or any other standard indicator isn't very complicated and quick to calculate.
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
Hi there,
When you call the iCustom function to a (custom) indicator, somehow like this ->
You get only 1 indexBuffer from inside the indicator.. But what if you want more data from the indicator? Lets say indexBuffer1, indexBuffer2, indexBuffer3
Could you do
I wonder if the indicator gets 're-run' again, so practically you would run the indicator to many times and create loads of overhead.
Is that theory correct?
The real question is: Is it safe to 'repeat' the iCustom function, to retrieve different indexBuffers?
Thanks!