@RN81 Did you find a solution? I also need an indicator in MQ5 to use in my EA.
Posts made by leecourt
-
RE: Can someone please convert this to a working MQ5 indicator? (regression channel with buffers and timeshift)posted in Questions & Answers
-
RE: Simple Crossover Detection Not Workingposted in Questions & Answers
OK so I can get an output when I compare the previous candle to the current moving average indicator value but that is no good to me. Anyway below is the adjustment I made for clarity.

Cheers,
Lee. -
Simple Crossover Detection Not Workingposted in Questions & Answers
Hi,
I have a simple EA that should draw a line when the candle crosses a moving average indicator. It is in the same format to that shown in the Help examples but it doesn't work. (Image below). I can get it to work if I am detecting if the candle opens and closes below the indicator (and vice versa) but not crossing over the indicator. I have also tried the "crosses above/below" operand but that doesn't work either.
Any help much appreciated!

Cheers.
Lee.
-
RE: Compilation error with Condition criteriaposted in Questions & Answers
@sydneyfox Thanks for solving the problem

-
RE: Compilation error with Condition criteriaposted in Questions & Answers
SydneyFox you are a genius! It was the decimal point. The space makes no difference - if the number is an integer - it compiles either way.
Thanks again!
-
Compilation error with Condition criteriaposted in Questions & Answers
Hi!
I have created a condition that should pass OK when a specific candle closes not more than 2.5 pips away from a moving average....but it won't compile and I get the error "some operator expected".
Please see https://prnt.sc/hn9jfb
Can anyone tell me what I am doing wrong?
Thank you!
Lee.