Forum

Reading buffer value

I have an indicator that I'm using iCustom to feed an EA. I can get the value from Buffer 0, seen below with a value of 1. But when I go back more than 500 bars, even though I see a value of 1 in the date window, the value it returns in iCustom is EMPTY_VALUE. So I thought maybe it was stored in a

Simplify Indicator buffers.... or my kingdom for a 2 dimensional indicator buffer

I have an indicator that draws multiple divergence lines in the same area of the chart as you can see below. I want the values in an indicator buffer rather than just drawing lines on the chart. Because of that I need multiple buffers so I can alternate between filing them. The result is what is

Best way to read info from separate indicator into chart window

In a perfect world MT4 would let me draw buffers from one indicator into both a separate window and the chart window. I have an indicator in a separate window that does some calcs and draws a modified MACD. But I also need to do some calcs on the chart window and display stuff there. I tried using

MACD Axis changes

I've written a version of the MACD indicator and am storing some price values in an array. i will be passing the values to an EA to trade. The problem is when i add the price values to an array, the MACD axis changes so that the max axis value is equal to price. this completely flattens the MACD