Sorry to bother you again, but a question has come up. There is a Color Level indicator for MT4, in its set there are line segments, which are created from TrendCreate trend line, which has 4 anchor points - date and price, and if I extend it further as a level, I have to press Shift. Is it possible to change the TrendCreate property like the HLineCreate, i.e. to have the segment as from the level, or maybe there is a way to make the segment by HLineCreate itself? I mean to make the segment behave like a level, not a trend line
DYM: Sorry to bother you again, but a question has come up. There is a Color Level indicator for MT4, it has line segments in its set which are created from TrendCreate line that has 4 anchor points - date and price, and if I stretch it further as a level I have to hold Shift. Is it possible to change the TrendCreate property like the HLineCreate, i.e. to have the segment as from the level, or maybe there is a way to make the segment by HLineCreate itself? I mean to make the segment behave like a level, not a trend line
The question is not clear...
Why hold down Shift? The lines move however you want. If you move by the centre point, the slope does not change.
If you want to change the length of the line in the indicator, add the yellow highlight to the code
externint x_coor = 10; // Coordinate Xexternint y_coor = 20; // Coordinate Yexternint x_size = 155; // длина объектов
Waaaaaaaaaaaaaaaaaaa. Help me solve the problem. I can't figure out what's wrong. It's not even testing in the tester. What is missing there? Why is it executed on each candle, and not on the arrow? I'm going crazy already((((
Why hold down Shift? The lines move however you want. If you move by the centre point, the slope does not change.
If you want to change the length of the line in the indicator, add the highlighted yellow line to the code
I made a gif, the first line has trend line properties, the second one has level properties (it seems that way to me). I would like to understand how you can make a line segment have the properties of the second line.
I made a gif, the first line has trend line properties, the second line has level properties (well, it seems that way to me). I would like to understand how a line segment can have the properties of the second line.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Sorry to bother you again, but a question has come up. There is a Color Level indicator for MT4, it has line segments in its set which are created from TrendCreate line that has 4 anchor points - date and price, and if I stretch it further as a level I have to hold Shift. Is it possible to change the TrendCreate property like the HLineCreate, i.e. to have the segment as from the level, or maybe there is a way to make the segment by HLineCreate itself? I mean to make the segment behave like a level, not a trend line
The question is not clear...
Why hold down Shift? The lines move however you want. If you move by the centre point, the slope does not change.
If you want to change the length of the line in the indicator, add the yellow highlight to the code
The question is not clear...
Why hold down Shift? The lines move however you want. If you move by the centre point, the slope does not change.
If you want to change the length of the line in the indicator, add the highlighted yellow line to the code
I made a gif, the first line has trend line properties, the second one has level properties (it seems that way to me). I would like to understand how you can make a line segment have the properties of the second line.
I made a gif, the first line has trend line properties, the second line has level properties (well, it seems that way to me). I would like to understand how a line segment can have the properties of the second line.
Igor, thank you, but MT4 is not working correctly.
Can you tell me what to fix?
This code should work:
this code should work:
Thanks so much! Everything works...now I'll try to figure out the logic(building a zigzag is difficult for me to understand).
did not check, ran it - it draws
The logic is simple - look for the number of bar in which one of the conditions occurs and store it in the code
and then compare this bar with the next one, if it is a break in phase, we will memorize this bar in static int LastExt
did not check, ran it - it draws
The logic is simple - look for the number of bar in which one of the conditions occurs and store it in the code
and then you compare this bar with the next one and if there is a break in phase, you store it in static int LastExt
Now everything is lined up in my head) Thank you, Igor.
I'm having trouble with this, I understand the price1 anchor point, but I can't figure out how to make the condition. My variant doesn't work.