New metatrader 4 compatible indicators - page 151

 
Alekc:
Dear of mladem and others..

Correct please under 670b the indicator MTrendLine __ alert.mq4.

The indicator has ceased to work in 670b, but compile without errors.

Beforehand big thanks.

Hi,

seems to work for me Built670.

By the way , Mladen , how can we integer that indic into an Expert?

" if (iCustom(NULL, 0,"MTrendLine__alert.mq4",?,?)) result sell ; ??

How can we do that?

Thanks.

Tomcat98

 
Tomcat98:
Hi,

seems to work for me Built670.

By the way , Mladen , how can we integer that indic into an Expert?

" if (iCustom(NULL, 0,"MTrendLine__alert.mq4",?,?)) result sell ; ??

How can we do that?

Thanks.

Tomcat98

Tomcat98

Since it is using only objects, it would neeed to be recoded (to either use some buffer for results or to use some global variable for communication)

 
alpine4133:
I am looking for a indicator that will display the spread of every pair I have on one chart. I had an indicator like this but lost it

Do you mean this one? :-)

 
mladen:
Tomcat98 Since it is using only objects, it would neeed to be recoded (to either use some buffer for results or to use some global variable for communication)

Ok,

Mmm, ok...,how would you code that? Can you give me an example?

...

if" Bid < TrendLine1_Red" result sell?

Interested in how to implement a Expert with such a code...

Thanks for your enlightenment.

Tomcat98

 
Tomcat98:
Ok,

Mmm, ok...,how would you code that? Can you give me an example?

...

if" Bid < TrendLine1_Red" result sell?

Interested in how to implement a Expert with such a code...

Thanks for your enlightenment.

Tomcat98

Tomcat

If you know the name of the object, then it is simple. Then it goes like this :

double TrendLineRedValue = ObjectGetValueByShift(TrendLineRedName,shift);

And in that case any call using iCustom() will create trend lines that you can then use to get their values. So, all you need is to know the exact names of the objects

 

hello all friends

please help me ..

i see have error...

thanks all

r-v1.mq4

r-v2.mq4

Files:
r-v1.mq4  21 kb
r-v2.mq4  21 kb
 
geckofx:
hello all friends

please help me ..

i see have error...

thanks all

r-v1.mq4

r-v2.mq4

Here us the r-v1 made new metatader compatible : r-v1_nmc.mq4

Files:
r-v1.gif  73 kb
r-v1_nmc.mq4  21 kb
 

And the r-v2 without compiler errors : r-v2_nmc.mq4

Files:
r-v2_nmc.mq4  21 kb
 
mladen:
Tomcat

If you know the name of the object, then it is simple. Then it goes like this :

double TrendLineRedValue = ObjectGetValueByShift(TrendLineRedName,shift);

And in that case any call using iCustom() will create trend lines that you can then use to get their values. So, all you need is to know the exact names of the objects

Hi Mladen,

I see now.

Small step for you, huge enhancement for me.

Many thanks for this reply.

Sincerely.

Tomcat98

 
mladen:
Tomcat

If you know the name of the object, then it is simple. Then it goes like this :

double TrendLineRedValue = ObjectGetValueByShift(TrendLineRedName,shift);

And in that case any call using iCustom() will create trend lines that you can then use to get their values. So, all you need is to know the exact names of the objects

Hi Mladen,

And now ladies and gentlemen...it even works in an EA!

Many many thanks Mladen for that coding lesson.

Have a good WE.

Sincerely.

Tomcat98