Mladen Rakic
197178
Mladen Rakic  
drunkpips:
pls can this indicator be coded to work with the new mt4?

Since MACD is actually a cross of two moving averages, one macd that can show those crosses (and much more) can be found here : https://www.mql5.com/en/forum/general or this one (with more averages types - 20 types total) : https://www.mql5.com/en/forum/general

Or this one can be used (which should work exactly what the idea is) : https://www.mql5.com/en/forum/general

kingsleyedeh4re
346
kingsleyedeh4re  

thanks a bunch

ilene dotco
21
ilene dotco  

wow good information

[Deleted]  

Is there a code for a vertical line?

I am trying to replace my key SIGNAL indicators (with arrow signals) so that they show vertical lines.

TEAMTRADER

Mladen Rakic
197178
Mladen Rakic  
TEAMTRADER:
Is there a code for a vertical line?

I am trying to replace my key SIGNAL indicators (with arrow signals) so that they show vertical lines.

TEAMTRADER

If you have an indicator that creates arrow objects on chart, simple replace the "OBJ_ARROW" in a line going something like this

ObjectCreate(name,OBJ_ARROW,0,....)

to be like this :

ObjectCreate(name,OBJ_VLINE,0,....)

[Deleted]  
mladen:
If you have an indicator that creates arrow objects on chart, simple replace the "OBJ_ARROW" in a line going something like this

ObjectCreate(name,OBJ_ARROW,0,....)

to be like this :

ObjectCreate(name,OBJ_VLINE,0,....)

It does not drag across to the chart - here is what I have done. I think maybe the 233 and 234 refer to an arrow size or type - I do not know.

Can you let me know which of the other words I need to change please?

Here is the code - I'll attach the indicator in case there is more words to change.

Thanks

TEAMTRADER

Code changed

{

SetIndexStyle(0, DRAW_VLINE,0,ArrowSize);

SetIndexArrow(0, 233);

SetIndexBuffer(0, g_ibuf_76);

SetIndexStyle(1, DRAW_VLINE,0,ArrowSize);

SetIndexArrow(1, 234);

SetIndexBuffer(1, g_ibuf_80);

mntiwana
4903
mntiwana  
mladen:
If you have an indicator that creates arrow objects on chart, simple replace the "OBJ_ARROW" in a line going something like this

ObjectCreate(name,OBJ_ARROW,0,....)

to be like this :

ObjectCreate(name,OBJ_VLINE,0,....)

Dearest MLADEN

i am zero in coding workshop but i am interested in creating Vlines in some of my favorite and concerning indies (in place of arrow-same like teamtrader).

so is there any other way and formula than this,that help me and guide me creating Vlines,as to my understanding there would be too many ways in coding to plot arrows....all indies do not have same coding line,as this (ObjectCreate(name,OBJ_ARROW,0,....) for example under given indi,i do not see same.

regards

Files:
tb_plph.mq4 3 kb
mntiwana
4903
mntiwana  

Dear teamtrader

here are symbol numbers and color names,if i am correct.

Files:
[Deleted]  

I have several indicators - used on timeframe and offline charts - so there are too many to post for adaptation.

This attached indicator I tried to change but like the MACD it would not load to the chart.

Your help is appreciated and I thought I could do this myself rather than bother you.

TEAMTRADER

PS - I understand, coding will never be 'my thing'.

Mladen Rakic
197178
Mladen Rakic  
TEAMTRADER:
It does not drag across to the chart - here is what I have done. I think maybe the 233 and 234 refer to an arrow size or type - I do not know.

Can you let me know which of the other words I need to change please?

Here is the code - I'll attach the indicator in case there is more words to change.

Thanks

TEAMTRADER

Code changed

{

SetIndexStyle(0, DRAW_VLINE,0,ArrowSize);

SetIndexArrow(0, 233);

SetIndexBuffer(0, g_ibuf_76);

SetIndexStyle(1, DRAW_VLINE,0,ArrowSize);

SetIndexArrow(1, 234);

SetIndexBuffer(1, g_ibuf_80);

You can not do that like that - those are buffers not objects.

Here is one example how to create line objects (there is no simpler way than that) : https://www.mql5.com/en/forum/180648/page623

PS: did not change the code, As you know I do not alter decompiled code. and that is decompiled code