Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
//+------------------------------------------------------------------+
//| Fisher_v1 |
//+------------------------------------------------------------------+
int start()
{
int shift;
double smin=0,smax=0;
if (NumBars>0) int NBars=NumBars; else NBars=Bars;
for(shift=NBars;shift>=0;shift--)
{
UpBuffer[shift]=0.0;
DnBuffer[shift]=0.0;
Value [shift]=0.0;
Fisher[shift]=0.0;
}
Could somebody write me an icustom statement for my EA that will import the values coming from this indicator - I am totally confused and really need the professional assistance from you coder pro's.
I tried, it failed!:
buy_cur=iCustom(NULL,0,"Fisher_v1",length,price,1, 0); (The message under the Experts tab reads buy_cur=0). I am not reading the indicator!
//+------------------------------------------------------------------+ //| Fisher_v1 | //+------------------------------------------------------------------+ int start() { int shift;
double smin=0,smax=0;
if (NumBars>0) int NBars=NumBars; else NBars=Bars;
for(shift=NBars;shift>=0;shift--) { UpBuffer[shift]=0.0; DnBuffer[shift]=0.0; Value [shift]=0.0; Fisher[shift]=0.0; }
Could somebody write me an icustom statement for my EA that will import the values coming from this indicator - I am totally confused and really need the professional assistance from you coder pro's.
I tried, it failed!:
buy_cur=iCustom(NULL,0,"Fisher_v1",length,price,1, 0); (The message under the Experts tab reads buy_cur=0). I am not reading the indicator!
Please Help Me!
This indicator has two buffers, to get the value of the first line use:
So, the lenght, price and numbars are the required parameters for the indicator and the "3" indicates that it will return the values of the 4th buffer, which is the Fisher.
So, the lenght, price and numbars are the required parameters for the indicator and the "3" indicates that it will return the values of the 4th buffer, which is the Fisher.
Hope this helps.
Yes! That's right! the Fisher buffer is the fourth one (which has the index 3)! but for the current bar it should be :
I'm thinking in creating a little visual basic toy that takes a mql4 file as input and returns the line of the icutom depending in the options (ex: which buffer) the user sets! WHAT DO YOU THINK?
Thanks CodersGuru and Maji, I think I got it now how this works. I was at your site CodersGuru and the amount of variables messed me up, as well as buffers. Most examples people use in training are basic 1 variable examples. This multiple variable, multiple buffer usage really clarified the more extreme usage of this statement along with both your excellent comments. I dreaded icustom statements, but now I feel I understand them (I'm pretty sure!). What is sad is the examples the MetaEditor has most of the time in the Dictionary suck! I even went on their help site and the past answers to the questions on their forum were deleted - That really helps people - Not!
Trial by fire. Like I told somebody in the past, by the time I reach Moses' of the Bible retirement age, I will know this stuff!
Thanks again guys, if it wasn't for your help and the help we all share with each other, this programming for most of us would be hopeless. Now to fully document what I now have learned concerning icustom statements.