You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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
thanks a bunch
wow good information
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
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.
TEAMTRADERIf 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,....)
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);
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
Dear teamtrader
here are symbol numbers and color names,if i am correct.
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'.
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