Forum

Price cross MA, EA entry signal problem. Please help!

Hello, I am coding an entry signal where when price opens below an MA line and close above it, go long and vice versa. The code I have done is shown below, the problem i am stuck with is the "sig" value. When the short condition is fulfilled, sig valued -1, but when the very next candle starts, sig

Using iCustom to get value from an indi, only the 1st value is extracted, how can I get the rest of the values?

Hi guys, I am pretty new to MQL5. Currently am building EAs with downloaded indicators. I used iCustom to extract values that are calculated in the indis, but only the 1st value is got, the rest seems like empty value or 0.0. I read that in MQL4 we can choose the buffer index in the second last