I have an EA that enters in a pyramid type grid. When DD hits a certain percentage it closes the first order opened in the basket, I tried coding this but it just seems to hang the EA.
Can someone find the culprit in this code?
Struggling trying to hardcode the formula for 5 day ADR into my expert advisor. Not sure what I'm missing but it keeps returning 0.