View Single Post
  #56 (permalink)  
Old 06-07-2008, 05:36 AM
sonicdeejay's Avatar
sonicdeejay sonicdeejay is offline
Member
 
Join Date: Apr 2008
Posts: 98
sonicdeejay is on a distinguished road
I am want to write a EA write using this Advanced ADX indicator...How can I extract the value and color from the indicator...



Buy
ADX color green and (ADX this hour> ADX previous hour)



Sell
ADX color red and (ADX this hour< ADX previous hour)

I have tried out abit in coding on my own. The coding correct with my rule??Help me out here??


thx
sonic


PHP Code:
for (Bars 205>= 0--)
   {
   
  
double adx1         =iCustom(NULL0"Advanced_ADX",13,0,i); 
  
double adx2         =iCustom(NULL0"Advanced_ADX",13,1,i); 
  
   if ((
adx1[i]>adx2[i])&&(adx1[i+1] > adx1[i]) // BUY 
      
BUY routine}
   
   if ((
adx1[i]<adx2[i])&&(adx1[i+1] < adx1[i]) // SELL  
      
SELL routine}


Attached Images
File Type: gif advanced_adx_1.gif (16.1 KB, 172 views)
Attached Files
File Type: mq4 Advanced_ADX.mq4 (2.2 KB, 22 views)
__________________
~It's not who I am underneath but, what I do that defines me!!

My FOREX Journal

Last edited by sonicdeejay; 06-07-2008 at 11:05 AM.
Reply With Quote