"OnCalculate not found in custom indicator" error. Trying to use Custom Indicator in EA via iCustom
This doesn't make sense
double zigzagline = double zigzagline = iCustom(NULL,0,"ZigZag",12,5,3,0,1);
oops i meant just
double zigzagline = iCustom(NULL,0,"ZigZag",12,5,3,0,1);
GumRai, yes the indicator code compiles but when i insert the iCustom into my EA it does not compile and says the OnCalculate is not found...which does not make sense to me. The code looks good but compiling just the iCustom won't work for me.
EDIT: Actually i made a quick EA and it compiled and worked. Although for some reason with the EA i am working on it won't work within it. Not sure why. Everything is the same, but my EA may be using too much memory maybe? If i simplify it maybe it will work as i did with a simple moving average cross EA that i plugged this iCustom into which worked. Thank you
The code that you have posted compiles just fine.
You thought than I will write again on forum or not.
No, thanks. You are not better then other moderators.
Chao!
wait, what is going on here? lol
eevviill has just returned from a ban. It's difficult to decipher exactly what his post means, but maybe he is saying goodbye and that he will not be posting anymore.
That would be a relief to many regular posters who would be glad to no lobger have this disruptive element in the forum.
oops i meant just
GumRai, yes the indicator code compiles but when i insert the iCustom into my EA it does not compile and says the OnCalculate is not found...which does not make sense to me. The code looks good but compiling just the iCustom won't work for me.
GumRai, if i wanted to create a triangle object, using swinghigh and swinglow buffer from the provided indicator, can you give me an example of what the code would look like, with the third base point being the current bid/ask price point?
would it be like this?
I'm confused, you ask about a triangle, but show code for a rectangle
The co-odinates would be Time of the Swing High, Price of the Swing High, Time of the Swing Low, Price of the Swing Low, Time[0], Bid

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi i have an indicator i want to use in my ea through iCustom but can't get it to compile due to "OnCalculate not found in custom indicator" error.
Here is the code.
and i am trying to link it in my ea with this line of code:
but it won't compile, and looking at the indicator code it clearly has an OnCalculate function....can anyone kindly help?