Forum

calculate only when the bar closes

Hello, I have an indicator that runs really heavy. Instead of it calculating every tick i want it to calculate once only when the bar closes. Is there a quick way to do this (like there is in ninjatrader etc) where you can tell it to run only when the bar closes? Eg. if it's a 15 min bar, the values

saving text into file creates weird diamond questionmarks

I'm writing to a file.... int file = FileOpen(filedump, FILE_WRITE | FILE_TXT); Then its the print line... after i copy this to a linux server ... I get this error when importing this into mysql... ERROR: ASCII '\0' appeared in the statement, but this is not allowed unless option --binary-mode is

normalizedoubl

Yes, i have read: https://www.mql5.com/en/docs/convert/normalizedouble# No, not a programmer.. just trying to do a simple change. Print("Point A: " + NormalizeDouble(m_LastSwingPoints[3].swingValue, Digits() - 1)); Output: 0.9641999999999999 How can i get this down to 4 digits after the decimal