MQL4 - automated forex trading   /  

Forum

How to draw an arrow

Back to topics list To post a new topic, please log in or register

avatar
18
Financialabs 2008.11.14 13:15 

Hi,

I would like to draw an arrow/marker on a specific position - height - of a chart, different for different "shift" positions.

Which functions can be used?

Drawing functions are not so simple to understand....

Thanks in advance

Alex

article

Can the Forex Market Be Forecasted? How to Create One's Own Trading Strategy?

Everyone starting to work in Forex tries to answer these questions. But not everyone finds the answer, even after many years of hard work and search. I personally have answered this question, as well as many other questions of this article. As a result of these answers a way of creating an efficient trading strategy was determined.


avatar
1265
Roger 2008.11.14 21:54 

avatar
38
Blooper1980 2008.11.16 06:00 
Financialabs wrote >>

Hi,

I would like to draw an arrow/marker on a specific position - height - of a chart, different for different "shift" positions.

Which functions can be used?

Drawing functions are not so simple to understand....

Thanks in advance

Alex

Should draw a up and down arrow on every tick.

int i;

i=Bars;


name = "Dn"-i;

ObjectCreate(name, OBJ_ARROW, 0, Time[a], High[a]+20*Point); //draw an up arrow
ObjectSet(name, OBJPROP_STYLE, STYLE_SOLID);
ObjectSet(name, OBJPROP_ARROWCODE, SYMBOL_ARROWUP);
ObjectSet(name, OBJPROP_COLOR,Blue);


name2 = "Dn"+i;
ObjectCreate(name2,OBJ_ARROW, 0, Time[a], Low[a]-20*Point); //draw a dn arrow
ObjectSet(name2, OBJPROP_STYLE, STYLE_SOLID);
ObjectSet(name2, OBJPROP_ARROWCODE, SYMBOL_ARROWDOWN);
ObjectSet(name2, OBJPROP_COLOR,Red);

Back to topics list  

To add comments, please log in or register