Vertical Line - page 2

 

If you want to see the example about how to program trendlines and support/resistance lines based on the how many bars counted ... so look at attached indicator.

It is from Paramon system: https://www.mql5.com/en/forum/173317

Just play with Pfast and Pslow settings.

In this image Pfast=5 and Pslow=8:

It means: current open bar = 0 and Pfast is 5th bar and Pslow is 8th bar to draw trendlines and so on.

We can change number of the bars in the settings.

You can use it as an example.

As to coding so sorry - I am not a coder.

 
newdigital:
I know that it is different. I moved just to keep similar cases in one place. Because this thread was linked many times and quoted many times everywhere. So, it is better to be in well promoted thread anyway. Forum is big.

------

May be you can try channel indicator?

https://www.mql5.com/en/forum/173261

https://www.mql5.com/en/forum/172920

There are some channels here as well https://www.mql5.com/en/forum/172904

If you are asking about how to program so I am sorry - I am not a coder.

Oh thank you ND. And thanks for your suggestion too, honestly I'm using the SHI Channel True indicator, my aim is to change it's simple trendline to a zonal trendline with X pips above and Y pips below each trendlines.

Unfortunately I can't find how to do it yet.

Still awaiting for helps..

 

Zigzag channel?

https://www.mql5.com/en/forum/175712

Because what is trend line?

It can be drawn by many other indicators.

 
newdigital:
If you want to see the example about how to program trendlines and support/resistance lines based on the how many bars counted ... so look at attached indicator.

It is from Paramon system: https://www.mql5.com/en/forum/173317

Just play with Pfast and Pslow settings.

In this image Pfast=5 and Pslow=8:

It means: current open bar = 0 and Pfast is 5th bar and Pslow is 8th bar to draw trendlines and so on.

We can change number of the bars in the settings.

You can use it as an example.

As to coding so sorry - I am not a coder.

Thanks again for your suggestion. But what I looking for is how to make the "zone" visible exactly like my screenshoot on page 1.

Thank you

 

Or you can use russian trendlines as sky in the morning :)

The other indicators ... as I remember raff created 2 good indicators for tendlines with alert ...

TrendLines and TLine Alert.

You just need to modify any one.

Files:
 
Devil2000:
Oh thank you ND. And thanks for your suggestion too, honestly I'm using the SHI Channel True indicator, my aim is to change it's simple trendline to a zonal trendline with X pips above and Y pips below each trendlines.

Unfortunately I can't find how to do it yet.

Still awaiting for helps..

If exactly so it is the channel.

 

Or channel "to the future" is Ichimoku cloud.

Do not look at trendlines indicators: you need to find some other indicators.

 

How can I get the value of all drawn Trendlines?

Hey guys,

I have written an EA to get all Trendlines value so that i can change their styles automatically and it's working well but the problem is, I can't get the value of manually drawn Trendlines. As you know MT4 names the Trendlines by default with this sequence(even it's not a sequence it's random digits): Trendline XXXXX and EA doesn't recognize these default names and I should change the name of TLs one by one to get it work.

here's the code:

int start()

{

int obj_total=ObjectsTotal(2); //2 is equal to OBJ_TREND

string name;

for(int i=0;i<obj_total;i++)

{

name=ObjectName(i);

if(ObjectType(name) == 2){ //2 is equal to OBJ_TREND

ObjectSet(name, OBJPROP_COLOR, Yellow);

}

}

any ideas would be appreciated.

 
pepsiamir:
Hey guys,

I have written an EA to get all Trendlines value so that i can change their styles automatically and it's working well but the problem is, I can't get the value of manually drawn Trendlines. As you know MT4 names the Trendlines by default with this sequence(even it's not a sequence it's random digits): Trendline XXXXX and EA doesn't recognize these default names and I should change the name of TLs one by one to get it work.

here's the code:

int start()

{

int obj_total=ObjectsTotal(2); //2 is equal to OBJ_TREND

string name;

for(int i=0;i<obj_total;i++)

{

name=ObjectName(i);

if(ObjectType(name) == 2){ //2 is equal to OBJ_TREND

ObjectSet(name, OBJPROP_COLOR, Yellow);

}

}

any ideas would be appreciated.

hey,

i've got my own answser.

the reason this code doesn't work in some windows is because of other objects that have long name(e.g:#1463392 buy 0.10 GBPUSD at 1.7429).

simply remove those objects and that's it. very easy!

 

Petor

newdigital:
Zigzag channel?

https://www.mql5.com/en/forum/175712

Because what is trend line?

It can be drawn by many other indicators.

O-o-o-o-o-o! Wonderful is this Wolf-Wafe Auto Chanel! Perfect, precise and nice! Thank you very much!

Reason: