how does the indicator define how the trendlines are made?
how does the indicator define how the trendlines are made?
Hi, the trendlines are initially placed on the chart at 20% from top and 20% from bottom of the chart range. This is initial placement only; the user must then reposition them to the angle / level at which they wish to be alerted.
moose
very very good work but if you can make the indi automatically draw diagonal lines as shown in your picture would be perfect
moose
very very good work but if you can make the indi automatically draw diagonal lines as shown in your picture would be perfect
Hi, I'll see what I can come up with. It's quite a challenge because to a trader, a particular trend may be "obvious" (as in the picture above), whereas to a piece of software, it is not. Also one trader may be interested in a certain price level where another trader may not. So you see it is quite subjective. This is why with this indicator, the onus is on the trader to place the alert lines at the particular levels/angles in which they are interested. Anyway, I'll try out some algorithms and post back if I come up with anything viable!
Regards,
Moose.
Hi, this is exactly what I am looking for, although I would like to know if these trendlines are also to be used as horizontal trend line alerts ? So, in other words, you just use the existing horizontal line function in MT4 and move the lines to the respective levels, and while hit, the alert sound and window will come up with reference to the respective currency pair chart ? Thanks.
Bernard
Hi Moose,
Again the indicator is perfect, with the exception of one issue, that if possible I would like to ask you to adjust in the code. I have personally no clue ... I select the two lines when they pop up in the window, and make them through Trend Line properties one inch thicker. And under parameters I DESELECT "Ray" because I prefer to have them only horizontal and drawn over the total chart . However, then when the market moves forward the line will not follow it seems to the right, probably because the Ray selection was deselected. However, I prefer a horizontal line over the total chart. Can you let me know what adjustments have to be made in the coding to do that ?
Thanks
Bernard
Hi Moose,
Again the indicator is perfect, with the exception of one issue, that if possible I would like to ask you to adjust in the code. I have personally no clue ... I select the two lines when they pop up in the window, and make them through Trend Line properties one inch thicker. And under parameters I DESELECT "Ray" because I prefer to have them only horizontal and drawn over the total chart . However, then when the market moves forward the line will not follow it seems to the right, probably because the Ray selection was deselected. However, I prefer a horizontal line over the total chart. Can you let me know what adjustments have to be made in the coding to do that ?
Thanks
Bernard
Hello Bernard, please see the private message I sent you. You actually answered your own question; you need to create an object of type OBJ_HLINE instead of OBJ_TREND.
Change this line of code: ObjectCreate(name, OBJ_TREND, 0, T1, P1, T2, P2);
To this: ObjectCreate(name, OBJ_HLINE, 0, T1, P1);
Regards,
Moose.
Update Version 1.2
Features new to version 1.2
how does the indicator define how the trendlines are made?
Hi, the trendlines are initially placed on the chart at 20% from top and 20% from bottom of the chart range. This is initial placement only; the user must then reposition them to the angle / level at which they wish to be alerted.
hello,
very nice indicator is it possible that if i placed the two horizontal lines it stays in place when i change timeframe, now the lines are moving to another level
hello,
very nice indicator is it possible that if i placed the two horizontal lines it stays in place when i change timeframe, now the lines are moving to another level- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Trendline Price Alert:
Author: Ron