Trading:
Would it be possible to manually draw a trendline and then code something within my EA to recognise it?
- yes. possible to recognize any object (drawn manually / drawn by EA) within the EA.
I think I've made progress. Would you be able to tell me if I'm correct?
I plan to use a custom indicator to draw trend lines then i would add into the EA this:
double trenddown = ObjectGetValueByShift("UpperWeekLine",0); double trendup = ObjectGetValueByShift("LowerWeekLine",0);
the indicator draws trend lines and uses the string which i inserted.
this should work right?
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Would it be possible for someone to explain how i may be able to implement a trendline within my EA?
I've tried looking for custom indicators and trying to use the setindexbuffer but cant seem to find a buffer which is related to a trendline.
Would it be possible to manually draw a trendline and then code something within my EA to recognise it?
I literally want to add a if statement where if the close[0]> trendline then execute a trade but have been searching for a very long time. Any help will be much appreciated.