I like to create a trend channel EA using attached indicator. Unfortunately it does not have buffers set.
I would like to add 3 buffers, just for the top line, middle line and bottom line of the channel.
Any chance someone could add this ? Thank you!
Use ObjectGetValuesByShift Instead Of Buffers
You can get your values directly from the trend lines on the chart without using buffers by using this in your EA:
You just have to know the names of the trend lines to get their values on the current bar (or any bar).
Place your cursor on the line to get the name of the trend lines.
Examples to get the values:
UpperBlue= ObjectGetValueByShift("2AutoTrendChannel", 0)
MiddleSkyBlue = ObjectGetValueByShift("0AutoTrendChannel", 0)
LowerRed = ObjectGetValueByShift("1AutoTrendChannel", 0)
Hope this helps you,
Amazing, that helps a lot. Thank you
If I achieve good results with that EA, I will post it here for other members
Thanks again Robert