Forum

Using OnCalculate(...) but indicator still flattens out

Hi, I literally took the example listed on https://docs.mql4.com/customind/indicatorbuffers and just modified it slightly to create a ROC [rate of change] indicator. However even though new quotes arrive the indicator flattens out after a while. Like seen in the attached image. What am I doing wrong

Set fixed (main)chart scale on main chart to draw custom candles (for us dollar index)

Hi everyone, My data provider recently had a conflict with the CME about usdx data feed so I tried to be smart and quickly merge two pieces of mql4 code together to make up for the lack of data. Basically the code does: 1) calculate the USD Dollar Index values 2) draw custom candles in the main