Download MetaTrader 5
To add comments, please log in or register
Find out how to add a video in the messages editor
Bernard Inthavanh
171
Bernard Inthavanh 2015.03.27 17:42 

Hi,

 I'm using the custom indicator i-Regr (see attached file) and I create an EA using the iCustom for calling the value from i-Regr, but it doesn't match ... and I don't understand why... I have tried to use all the buffers to see if I get the wrong index value.

 

See some printscreen that I have made to show you the issue.

Or you can run the EA and see what the journal is showing and then compare the value with the data window.... nothing match for i-Regr. 

 

Please can someone help me to find the correct buffer or anything to get the same value as the data window ???

 

Thanks.

Burny 

Irwan Adnan
876
Irwan Adnan 2015.03.27 20:30  
binthavanh:

Hi,

 I'm using the custom indicator i-Regr (see attached file) and I create an EA using the iCustom for calling the value from i-Regr, but it doesn't match ... and I don't understand why... I have tried to use all the buffers to see if I get the wrong index value.

 

See some printscreen that I have made to show you the issue.

Or you can run the EA and see what the journal is showing and then compare the value with the data window.... nothing match for i-Regr. 

 

Please can someone help me to find the correct buffer or anything to get the same value as the data window ???

 

Thanks.

Burny 

Actually it is match.

Perhaps you forgot to check Last Data in data windows. 

 

 

 

Sergey Dzyublik
4788
Sergey Dzyublik 2015.03.27 22:26  
IndicatorDigits(8);
just add to init function.
Bernard Inthavanh
171
Bernard Inthavanh 2015.03.28 04:06  
belido:

Actually it is match.

Perhaps you forgot to check Last Data in data windows. 

 

 

 

 

Hi, 

Can you screenshot the time so I can see ?

 

Because I did the same code as you and see what I get (see attached files). The values are completely different.

 

Please help.

Thanks.

Burny 

  

 

Files:
data_window.jpg 124 kb
journal.jpg 34 kb
code.jpg 73 kb
Irwan Adnan
876
Irwan Adnan 2015.03.28 12:01  
binthavanh:

 

I think the problem you face is the column of data window. For the last data (last bar), you have to move your cursor to the right most side. Or you can make 2 column of data window which is the first is for last data.

For 26/03/2015 00:00, it is similar number between above picture and yours. 

Hope it helps you.

Regards. 

 PS : Sorry, I can't  show you the journal because market is off. Should wait until monday if you want to. 

Bernard Inthavanh
171
Bernard Inthavanh 2015.03.28 16:30  
belido:

 

I think the problem you face is the column of data window. For the last data (last bar), you have to move your cursor to the right most side. Or you can make 2 column of data window which is the first is for last data.

For 26/03/2015 00:00, it is similar number between above picture and yours. 

Hope it helps you.

Regards. 

 PS : Sorry, I can't  show you the journal because market is off. Should wait until monday if you want to. 

Belido,

 

thanks for your reply.

The last data will match, no problem with that... but the nth data won't match... its why I just need to see your journal if the time matches with the data window. I will wait Monday, so you can send me the journal and match the data with the journal.

 

Thanks for your help. 

Burny 

Irwan Adnan
876
Irwan Adnan 2015.03.30 01:37  

Here you are, the last and bar 20.

 last bar :

 

 

bar = 20 :

 

Bernard Inthavanh
171
Bernard Inthavanh 2015.03.31 06:55  
belido:

Here you are, the last and bar 20.

 last bar :

 

 

bar = 20 :

 

you showed bar = 20.... but I was using bar = 250 ??? does it change anything ? it souldn't , right ??
Irwan Adnan
876
Irwan Adnan 2015.03.31 08:34  
binthavanh:
you showed bar = 20.... but I was using bar = 250 ??? does it change anything ? it souldn't , right ??
LOL, you didnt mention bar 250 before or at least I didnt see it.
Bernard Inthavanh
171
Bernard Inthavanh 2015.03.31 08:47  

lol, sorry about that... well, im using : 

 

iCustom(NULL, TimeFrame1, "i-Regr", 3, 2.0, 250, 0, 0, 1)

 

and it doesn't match at all... I don't understand why ? 

Sergey Dzyublik
4788
Sergey Dzyublik 2015.03.31 08:56  
binthavanh:

lol, sorry about that... well, im using : 

 

iCustom(NULL, TimeFrame1, "i-Regr", 3, 2.0, 250, 0, 0, 1)

 

and it doesn't match at all... I don't understand why ? 

ALXIMIKS 2015.03.27 22:26   EN
IndicatorDigits(8);
just add to init function.


IS IT SO HARD?
/ /12
To add comments, please log in or register