I've written an indicator that draws breakout boxes and it works fine. I now want to call this indi from an EA using iCustom(). I've made an "EA" version of the indicator for this purpose where I've changed all the inputs that don't affect the result (line styles and colours etc) to internal globals so the indicator now only has three user inputs:
I know the buffer that I need to call and I want the signal from the last closed candle so it should be an easy case of using a call such as this:
Code: Select all
BoxValue = iCustom(_Symbol,0,"MySqueezeBoxes_FOR_EA",LookBackBars,SqueezeZonePoints,MinBarsBetweenBoxes,21,1);Code: Select all
// user inputs:
extern int LookBackBars = 90;
extern int SqueezeZonePoints = 130;
extern int MinBarsBetweenBoxes = 60;I really don't want to take up people's time unnecessarily so before I get into posting pages and pages of indicator, EA and include code, has anyone else had a similar problem? Can anyone think of the things I could try differently?
Thanks
Bruster