A tick seems to occur every second or several times a second in MetaTrader 4. And every tick OnCalculate() is called. However, OnCalculate's parameters such as high[i] are such that each index in high represents one minute of data
I understand that prev_calculated = 0 is passed to the first call of OnCalculate then it is incremented each time by one? So inside OnCalculate, how would I handle all bars that are less than prev_calculated? If prev_calculated starts at, 0
Hello, I'm in the process of porting some old code (start(), init(), etc) to the updated MQL4. I've gotten rid of all the compiler warnings and replaced start() with OnCalculate() and so on. Now without this one line, the chart window
Hi, With some indicators that I have code for, when hitting "Debug / Play" in the MetaEditor, the terminal will bring up the input parameter dialog, I hit Ok and then nothing shows up in the chart (where as drag-n-dropping in terminal shows
The example code for MQL4 can be found here: https://docs.mql4.com/constants/objectconstants/enum_object/obj_text What it does: Absolutely nothing!!!! Someone please help with displaying text at any time / price