Hi,
This time, I try to export Doda Dochia level to Excel for a list of date recorded in date.txt file.
There are 5 parameters in the inputs menu of this indicator and I listed in the "extern int" below.
The output file create only value 0.000 for the Doda Dochia variable.
Could you please help me with that?
Your iCustom() call looks wrong, you have included all the extern parameters but what buffer are you looking to get data from ?
double x= iCustom(NULL, 0,doda, ChannelPeriod, EMAperiod, StartEMAshift, EndEMAshift, angletreshold, shift);
Hi RapterUK,
I try all mode from 0 to 7 but the results are the same 0.0000.
Could you help me to find out the error?
Thank you,
HHC
buffer = buffer + ";" + DoubleToStr(getdoda( ChannelPeriod, EMAperiod, StartEMAshift, EndEMAshift, angletreshold,2, bar), Digits); FileWrite(log, buffer); } FileClose(log); FileClose(log2); MessageBox("Finished writing " + i + " rows into " + TerminalPath() + "\\experts\\files\\" + file); //------------------------------------------------------------------ return(0); } //+--------define function----------------------------------------------------------+ double getdoda(int ChannelPeriod, int EMAperiod, int StartEMAshift, int EndEMAshift, int angletreshold, int mode, int shift) { double x= iCustom(NULL, 0,doda, ChannelPeriod, EMAperiod, StartEMAshift, EndEMAshift, angletreshold, 2, shift); return (x); }
Hi RapterUK,
I try all mode from 0 to 7 but the results are the same 0.0000.
Could you help me to find out the error?
Thank you,
HHC
Do you see anything wrong in this list of inputs ?
extern int ChannelPeriod = 28; extern int EMAperiod = 120; extern int StartEMAshift = 6; extern int EndEMAshift = 0; extern int angletreshold = 0.32;
Do you see anything wrong in this list of inputs ?
Yes, I think I see it, didn't I?
Thank you, Raptor UK.
But still error somewhere else.
Please help.
HHC
extern int ChannelPeriod = 28; extern int EMAperiod = 120; extern int StartEMAshift = 6; extern double EndEMAshift = 0; extern double angletreshold = 0.32;
Yes, I think I see it, didn't I?
Thank you, Raptor UK.
But still error somewhere else.
Please help.
A clue . .
double getdoda(int ChannelPeriod, int EMAperiod, int StartEMAshift, int EndEMAshift, int angletreshold, int mode, int shift) { double x= iCustom(NULL, 0,doda, ChannelPeriod, EMAperiod, StartEMAshift, EndEMAshift, angletreshold, 2, shift); return (x); }
A clue . .
Hi RaptorUK,
Is that what you mean?
I already change all systematically but no work.
extern string doda = "Doda-Dochian_1"; extern int ChannelPeriod = 28; extern int EMAperiod = 120; extern int StartEMAshift=6; extern double EndEMAshift=0; extern double angletreshold=0.32; buffer = buffer + ";" + DoubleToStr(getdoda(ChannelPeriod, EMAperiod, StartEMAshift, EndEMAshift, angletreshold,4, bar), Digits); double getdoda(int ChannelPeriod, int EMAperiod, int StartEMAshift, double EndEMAshift, double angletreshold,int mode, int shift) { double x= iCustom(NULL, 0,doda, ChannelPeriod, EMAperiod, StartEMAshift, EndEMAshift, angletreshold, mode, shift); return (x);
Hi RaptorUK,
Is that what you mean?
I already change all systematically but no work.
Put this Indicator on a chart, look at the inputs, they are all ints except the last, that is the first key bit of information you need to keep in mind, next open the Date Window and move your cursor along the bars from bar 0 to the left, you will see that not all buffers have values for all bars . . . so if you read some buffers where there are no values you may get 0.0 or EMPTY_VALUE.
Fix your code, pass the correct values or the correct type. Learn about the Indicator you are trying to use . . .

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
This time, I try to export Doda Dochia level to Excel for a list of date recorded in date.txt file.
There are 5 parameters in the inputs menu of this indicator and I listed in the "extern int" below.
The output file create only value 0.000 for the Doda Dochia variable.
Could you please help me with that?
Thank you so much.
HHC