Forum

Automatic back and forth Timeframe change using a global terminal variable

Hello everyone, I'm currently developing several multitimeframe (MTF) indicators for MT5, and I have been dealing with the well-known problem of working with MTF when the market is closed, as I have recently posted here . I think I have successfully developed a new solution I haven't found in the

Strange error returning 'rates_total' in OnCalculate function on an indicator

Hello everybody, I was trying to solve this well-known problem explained by Fabio Cavalloni and others, when I have discovered some really strange behaviour in OnCalculate. I have written a small sample program that reads the closing value in a different timeframe. Inside onCalculate, I check