Rex indicator buffers???
-
Hi all, does any body know how to modify the code so that FXDreema recognises the buffers on this code?
I'd like to get a value from the signal line and the main rex line.
Any help please -
@joemarkey6 have you tried looking at data window? Press Ctrl+D on your MT4 chart.
-
OK but i want my ea to know the values automatically
-
Added indicators will use these values, there is normally a buffer doing this (think these values are taken from buffer, if not you can get them from icustom, as custom code).
-
Thanks for the info but I can't write code, the buffers don't show in the indicator inside the condition block, I asked the creator of the indicator if he could do this but he hasn't got back to me yet.
-
@joemarkey6
I am afraid the only reason why the buffer not showing up in the condition block is because you have not set the buffer for the indicator in the import indicator session. -
Thanks, how do I do that? normally the buffers are already there when you add custom indicator, but not with the Rex
-
Add the indicator here, I'll have a look.
-
THats great, thanks
-
Couldn't get my mt5 working, Try adding them like this:

-
Thanks for the help jstap, I can't get it to work, I tried naming them buffers a and b, also using the names from the code but I can't make it work.
I'm guessing it's this part of the code
//--- set global variables
period_rex=int(InpPeriod<1 ? 1 : InpPeriod);
period_sig=int(InpPeriodSig<2 ? 2 : InpPeriodSig);
//--- indicator buffers mapping
SetIndexBuffer(0,BufferRex,INDICATOR_DATA);
SetIndexBuffer(1,BufferSignal,INDICATOR_DATA);
SetIndexBuffer(2,BufferTVB,INDICATOR_CALCULATIONS);
//--- setting indicator parameters
IndicatorSetString(INDICATOR_SHORTNAME,"Rex ("+(string)period_rex+","+(string)period_sig+")");
IndicatorSetInteger(INDICATOR_DIGITS,Digits());
//--- setting buffer arrays as timeseries
ArraySetAsSeries(BufferRex,true);
ArraySetAsSeries(BufferSignal,true);
ArraySetAsSeries(BufferTVB,true);I've no idea what needs to be done to make it work with FXDreema
-
Please take a look at these helpful custom indicators tutorials:
https://fxdreema.com/forum/topic/4208/tutorial-06-my-indicators-in-fxdreema
https://fxdreema.com/forum/topic/9105/tutorial-working-with-ex4-ex5-indicator-file