I have been struggling with this problem for a while. I used mql4 references and Googled so hard that actually some keypad came out of my keyboard.
So what am I trying to achieve? I have this indicator SDX8 and EA from a template. SDX8 indicator draws lower and upper zones (max and lows in last 8 hours) and also draws entry signals.
I want the EA to be able to map those variables via iCustom function but I've had no luck so far. I want the EA to go long when entrysignals are drawn on the Zone1Lower and go short when entrysignals are drawn on the Zone1Upper. I only want them to go long/short when there are 2 or more signals (circles) drawn on those max/low lines.
I dont worry about the exit strategy because I will use fixed stop loss/ take profit and those should be pre-coded into the EA
I tried to code it but I am a beginner and this is too big challenge for me. Thank you in advance for help.
Attachment 149873Attachment 149874
The indicator and the EA are attached.