MQL4 - automated forex trading   /  

Forum

Advance Indicator question

Back to topics list To post a new topic, please log in or register

avatar
86
yarns90401 2007.12.06 09:14 
I have two indicators on a chart, they both but arrows on the chart. How can I capture in an EA when the indicator has placed and arrow on the chart? I want to also determine if the arrow is an up arrow or a down arrow. Is there a better way to approach this?

Let's say that the indicators are MACD and Stochastic.

Thanks in advance,

Ed
article

Registration Is Closed!

Everybody could apply for participation in the Automated Trading Championship 2007 within 3 months. 2011 people have been registered. 731 Expert Advisors have already been checked and are ready to start the contest.


avatar
Moderator
5089
stringo 2007.12.06 10:39 
Use iCustom function in your EA

avatar
194
bonechair 2007.12.06 19:29 
You just got me thinking on an alternate way of doing it.
What about using:
if(ObjectFind("arrow_up")!='')direction = 'up';
ObjectsDeleteAll();

avatar
86
yarns90401 2007.12.06 22:08 
Hi Stringo,

Do you have any example code of how to use iCustom()?

Thanks,

Ed

avatar
Moderator
33780
Rosh 2007.12.07 10:22 
Back to topics list  

To add comments, please log in or register