The line is displayed correctly, but it needs to be extended until it crosses the price or until the next line is formed. Can you please tell me how to do this....
I tried it this way
if (Close[i]<Line_UP)ObjectMove(nameUP1,0,Time[i],Line_UP);
but the line shifts and is not displayed correctly.....
Good afternoon! Question about the chart....Created a sloping line in the indicator, based on two points
The line is displayed correctly, but it needs to be extended until it crosses the price or until the next line is formed. Can you please tell me how to do this....
I tried it this way
but the line shifts and is not displayed correctly.....
Gets/sets the ray property flag for objects of type OBJ_TREND and similar
Thanks for the reply.The chart will also display the ray, but it could probably be done in a different way, i.e. the line display ends(i-2) when the price breaks at i or when a new line appears?
LOA: Thank you for the answer.The chart will also display the ray, but you can probably do it in a different way, i.e. displaying the line ends(i-2) when the price breaks at i or when a new line appears?
Again, at breakdown of a line by price or a new line, take a price reading on the given bar using functionObjectGetValueByShift(), move the second price and time to the current bar and remove the ray property.
Again, when the line is broken by the price or a new line, you take a price reading on this bar using theObjectGetValueByShift() function, move the second price and time to the current bar and remove the ray property.
Ok. Thanks again, it all makes sense. I just recently started to learn programming, so maybe I'm really complicating things or I just don't know a lot of tricks....
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.
Good afternoon! Question about the chart....Created a sloping line in the indicator, based on two points
The line is displayed correctly, but it needs to be extended until it crosses the price or until the next line is formed. Can you please tell me how to do this....
I tried it this way
but the line shifts and is not displayed correctly.....
Good afternoon! Question about the chart....Created a sloping line in the indicator, based on two points
The line is displayed correctly, but it needs to be extended until it crosses the price or until the next line is formed. Can you please tell me how to do this....
I tried it this way
but the line shifts and is not displayed correctly.....
Thank you for the answer.The chart will also display the ray, but you can probably do it in a different way, i.e. displaying the line ends(i-2) when the price breaks at i or when a new line appears?
Again, at breakdown of a line by price or a new line, take a price reading on the given bar using functionObjectGetValueByShift(), move the second price and time to the current bar and remove the ray property.
Again, when the line is broken by the price or a new line, you take a price reading on this bar using theObjectGetValueByShift() function, move the second price and time to the current bar and remove the ray property.
I can't figure out why this code doesn't close ALL the sells, but only the freshest one?
Thank you.
I can't figure out why this code doesn't close ALL the sells, but only the freshest one?
Thank you.
After PlaySound() there is a break