fix trend line

Jhennifher
1839

Hi.

Is It possible fix trend line? This way, If I graphic moves, trendline stays at same place I putted.

Vladimir Karputov
308452
Jhennifher :

Hi.

Is It possible fix trend line ? This way, If I graphic moves, trendline stays at same place I putted.

What exactly are you going to fix? The trend line ( OBJ_TREND ) does not require any corrections.

Documentation on MQL5: Constants, Enumerations and Structures / Objects Constants / Object Types / OBJ_TREND
Documentation on MQL5: Constants, Enumerations and Structures / Objects Constants / Object Types / OBJ_TREND
  • www.mql5.com
OBJ_TREND - Object Types - Objects Constants - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Keith Watford
Moderator
36151
Jhennifher:

Hi.

Is It possible fix trend line? This way, If I graphic moves, trendline stays at same place I putted.

Fix can also mean repair, but here I assume that you mean to stay in place in the way that a label does.

A label is anchored by pixel co-ordinates, a trend-line is anchored by time and price, so it will always move with the chart.

It would be possible to "fix" the trend-line position, but it would be quite complicated.

I don't see why you would want this. Once a trend-line is not ancored by time and price, it is no longer a  trend-line, but simply a line on the chart.

Jhennifher
1839
Jhennifher  
Keith Watford:

Fix can also mean repair, but here I assume that you mean to stay in place in the way that a label does.

A label is anchored by pixel co-ordinates, a trend-line is anchored by time and price, so it will always move with the chart.

It would be possible to "fix" the trend-line position, but it would be quite complicated.

I don't see why you would want this. Once a trend-line is not ancored by time and price, it is no longer a  trend-line, but simply a line on the chart.

Vladimir Karputov:

What exactly are you going to fix? The trend line ( OBJ_TREND ) does not require any corrections.

Hi. Fix I mean freeze position of this trend on chart.

Jhennifher
1839
Jhennifher  
Keith Watford:

Fix can also mean repair, but here I assume that you mean to stay in place in the way that a label does.

A label is anchored by pixel co-ordinates, a trend-line is anchored by time and price, so it will always move with the chart.

It would be possible to "fix" the trend-line position, but it would be quite complicated.

I don't see why you would want this. Once a trend-line is not ancored by time and price, it is no longer a  trend-line, but simply a line on the chart.

Hi, tks for your attention; yes, I mean stay in place, pin.

It is exactly what I want.

I know I cant do It with a vertical or horizontal line.

But I wish the same to a trend line, or as you say, a simply line on chart.

Keith Watford
Moderator
36151
I am not aware of any way to do that. But somebody else who is cleverer than I may well have done it with canvas or something like that..
Vladimir Karputov
308452
I have an idea: open a terminal, open a chart and use FLOMASTER to draw a line on the monitor! Now the line will always be in one place :)
Jhennifher
1839
Jhennifher  
Vladimir Karputov:
I have an idea: open a terminal, open a chart and use FLOMASTER to draw a line on the monitor! Now the line will always be in one place :)

Hi, tks for you attention. Is that a program or a pencil?

Fernando Carreiro
11237
Jhennifher: Hi, tks for you attention. Is that a program or a pencil?
I believe it was an attempt at humor - a joke!
Jhennifher
1839
Jhennifher  
Fernando Carreiro:
I believe it was an attempt at humor - a joke!

Hi, It really seems this...hahahha