Can you please tell me if a trend line is programmatically drawn on a chart, is it possible to read its value at the desired point (again, programmatically)?
Can you please tell me if a trend line is programmatically drawn on a chart, is it possible to read its value at the desired point (again, programmatically)?
Some time ago I wrote an article where the trend line was used to find the right point on the chart. Take a look, maybe you'll find something for yourself... :)
Can you please tell me if a trend line is programmatically drawn on a chart, is it possible to read its value at the desired point (again, programmatically)?
It seems to be impossible, but if I really want to, I suppose I can...:-Р
They don't seem to be able to, but if you really want to, you can...:-Р
I'd like that very much :)
I wanted to make an indicator, but as I'm dealing with indicators for the first time, I got lost. The lines are drawn as they should be, but I cannot find the way to squeeze in the array with values. In the end, I haven't got anywhere.
artmedia70: I wrote an article once where I used the trend line to find the right point on the chart. Have a look, maybe you'll find something for yourself... :)
Thanks, I've got the straight line function there, I'll twist it a bit
I wanted to make an indicator, but as I'm dealing with indicators for the first time, I got lost. The lines are drawn as they should be, but I cannot find the way to squeeze in the array with values. As a result, I didn't manage to squeeze it in.
But if you had shown the code and told me what you want, you might have done without the straight line equation... It's an indicator and all the necessary data are in its buffers... Although ... :)
I think I have an idea... If you have a trendline constructed, then, using the straight line equation function, run in the loop from the value of its start point to the value of its end point and at each bar enter the values returned by the straight line equation function into another indicator array created for this purpose. Then, using the number of the needed bar, take these values from the array. It goes something like this...
artmedia70: If you'd show me the code and tell me what you want, you'd probably won't need straight line equation... It's an indicator and all the necessary data are in its buffers ... Although ... :)
Here's the code, copied from the tutorial from the same site :)
I need an indicator with the following requirements: 1) Intersection of two MAs (you can choose type of MA, period of MA, what MA is applied to, as well as shift).
2) The indicator draws an arrow at the intersection point.
3) At the moment of crossing, there will be a beep and an e-mail message.
4) The signal is produced only once. At the moment of crossing the MA.
There are two indicators: MA_Shift_Crossover_Alert.mq4 and 2MA CrossoverWithPrice_fixed.ex4
The first one doesn't like that the signal is given at every candlestick and after crossing the MA. The second one does not manage to set the MA shift.
Is there some way to add the possibility to shift MA to the second indicator?
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.
Hello!
Can you please tell me if a trend line is programmatically drawn on a chart, is it possible to read its value at the desired point (again, programmatically)?
Hello!
Can you please tell me if a trend line is programmatically drawn on a chart, is it possible to read its value at the desired point (again, programmatically)?
Hello!
Can you please tell me if a trend line is programmatically drawn on a chart, is it possible to read its value at the desired point (again, programmatically)?
It seems to be impossible, but if I really want to, I suppose I can...:-Р
They don't seem to be able to, but if you really want to, you can...:-Р
I'd like that very much :)
I wanted to make an indicator, but as I'm dealing with indicators for the first time, I got lost. The lines are drawn as they should be, but I cannot find the way to squeeze in the array with values. In the end, I haven't got anywhere.
I wrote an article once where I used the trend line to find the right point on the chart. Have a look, maybe you'll find something for yourself... :)
With MoveFileA all went well. Thank you very much, TheXpert!
I'd like that very much :)
I wanted to make an indicator, but as I'm dealing with indicators for the first time, I got lost. The lines are drawn as they should be, but I cannot find the way to squeeze in the array with values. As a result, I didn't manage to squeeze it in.
If you'd show me the code and tell me what you want, you'd probably won't need straight line equation... It's an indicator and all the necessary data are in its buffers ... Although ... :)
Here's the code, copied from the tutorial from the same site :)
I want to get two lines and read their values on any bars via iCustom
Dear forum members, help!
I need an indicator with the following requirements: 1) Intersection of two MAs (you can choose type of MA, period of MA, what MA is applied to, as well as shift).
2) The indicator draws an arrow at the intersection point.
3) At the moment of crossing, there will be a beep and an e-mail message.
4) The signal is produced only once. At the moment of crossing the MA.
There are two indicators: MA_Shift_Crossover_Alert.mq4 and 2MA CrossoverWithPrice_fixed.ex4
The first one doesn't like that the signal is given at every candlestick and after crossing the MA. The second one does not manage to set the MA shift.
Is there some way to add the possibility to shift MA to the second indicator?
The indicators are attached in the archive.
Thank you.