-
Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page)?
General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
Next time, post in the correct place. The moderators will likely move this thread there soon. -
Do you really expect an answer? There are no mind readers here and our crystal balls are cracked.
How To Ask Questions The Smart Way. (2004)
Be precise and informative about your problemDo you expect us to know what indicator and what version you are trying to use? Where is the indicator or a link to it.
Remember to use the CODE button (Alt-S) when inserting code.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi All,
I'm going to go at this question from a simple and basic approach before posting too much code, etc...
I have a version of the REX oscillator indicator that I use in a manual algo (as an exit indicator) and recently I decided to try and create a EA, I found the iCustom command and have used it for some of the other indicators in my system - now the actual question - I'm now trying to use REX in the iCustom however am not getting expected outputs.
When I add the default parameters and use the final 2 iCustom fields; the last field points to the candle as expected but the other field is where I get unexpected results - if I use the number 2, I get the TvB (True value of bar) value however using 0 & would have given me the Rex and Signal values .. or so I thought!!
Unfortunately the use of either 0 or 1 just results in zero/0 .. can anyone advise what value I should use or where I'm going wrong? REX attached now.