I'm still trying to work out the logic in places, but have thrown together an EA which hopefully is of some use as a starting point. It draws arrows when the long or short trigger points are met, so can be a way of defining/formulating and elaborating that logic which has been rather sketchy to date. The bands in the CR need to be defined better and possibly that code moved into the EA, so that it becomes more useful to the EA. Please have a look and see if it's even close to being on the right track....
I've added the following into the CR code itself: return(buf1[p]); instead of return(0);. The EA simply checks the last reading, compares to current and gets it's trade direction from there, then it waits for 5, 15 and 60 min Demarker(10)'s to align above 0.95 or below 0.05 in that trade direction - perhaps they should be simply setting a flag here - I don't know. I'm assuming there is more logic required to determine price/price band fitting - but that would require more CR knowledge than I have.
I've added the following into the CR code itself: return(buf1[p]); instead of return(0);. The EA simply checks the last reading, compares to current and gets it's trade direction from there, then it waits for 5, 15 and 60 min Demarker(10)'s to align above 0.95 or below 0.05 in that trade direction - perhaps they should be simply setting a flag here - I don't know. I'm assuming there is more logic required to determine price/price band fitting - but that would require more CR knowledge than I have.

