Download MetaTrader 5

indicator to draw short lines

To add comments, please log in or register
wadi2014
124
wadi2014  

Hello

I am trying to make daily pivot indicator to draw short vertical lines, but i want to draw it not using objectcreat() function but using indicator functions. Precisely, i want how to draw a vertical line between 2 candles stick and the lines are discrete not continued. Any codes to help ?

Thanks

Ubzen
5390
Ubzen  
fx2013: Hello I am trying to make daily pivot indicator to draw short vertical lines, but i want to draw it not using objectcreat() function but using indicator functions. Precisely, i want how to draw a vertical line between 2 candles stick and the lines are discrete not continued. Any codes to help ? Thanks

You can make a request here: https://www.mql5.com/en/job. Allot of programmers there will be happy to provide codes for you.

whroeder1
15934
whroeder1  
fx2013: i want how to draw a vertical line between 2 candles stick
Can't be done with mt4. Lines are only drawn when A(p,t) != B(p,t) or x1,y1 != x2,y2 That means you can draw a vertical line ON a candle or a horizontal/trend line from one to another candle. There is no between.
Alain Verleyen
Moderator
33359
Alain Verleyen  
fx2013:

Hello

I am trying to make daily pivot indicator to draw short vertical lines, but i want to draw it not using objectcreat() function but using indicator functions. Precisely, i want how to draw a vertical line between 2 candles stick and the lines are discrete not continued. Any codes to help ?

Thanks

It can be done with MT5/mql5 only.
Simon Gniadkowski
Moderator
18027
Simon Gniadkowski  
fx2013:

Hello

I am trying to make daily pivot indicator to draw short vertical lines, but i want to draw it not using objectcreat() function but using indicator functions. Precisely, i want how to draw a vertical line between 2 candles stick and the lines are discrete not continued. Any codes to help ?

What do you mean by "between" ? in the gap between 2 candles ? or from one candle to the next ? if it's in the gap then, as has already been said, you cannot do it.
Alain Verleyen
Moderator
33359
Alain Verleyen  
RaptorUK:
What do you mean by "between" ? in the gap between 2 candles ? or from one candle to the next ? if it's in the gap then, as has already been said, you cannot do it.

If it's a vertical line, it can only be in the gap, not ?
Simon Gniadkowski
Moderator
18027
Simon Gniadkowski  
angevoyageur:
If it's a vertical line, it can only be in the gap, not ?
If it's in the gap it doesn't connect to any candle . . . the OP needs to be clear on what he/she is trying to do. Pivot points would usually be horizontal lines . . .
whroeder1
15934
whroeder1  
I thought it was clear. OP said "vertical line between 2 candles." Between not on. Vertical not horizontal.
wadi2014
124
wadi2014  
RaptorUK:
What do you mean by "between" ? in the gap between 2 candles ? or from one candle to the next ? if it's in the gap then, as has already been said, you cannot do it.


I mean short horizontal line between 2 candles, not candles close together, for example horizontal line connected between candle 5 and candle 10, i can draw it using object create, but i want using indicator functions rather.
whroeder1
15934
whroeder1  
fx2013: 2013.12.06 09:40 # i want how to draw a vertical line between 2 candles stick
fx2013: 2013.12.07 16:15 # I mean short horizontal line between 2 candles, not candles close together,
Make up your mind. Then use SetIndexStyle with DRAW_SECTION instead of line, just like ZigZag does.
Алексей Тарабанов
7329
Алексей Тарабанов  
WHRoeder:
Make up your mind. Then use SetIndexStyle with DRAW_SECTION instead of line, just like ZigZag does.

No. DRAW_ZIGZAG only, not between candles, but on the same candle.
12
To add comments, please log in or register