Thread: ASCTrend system
View Single Post
  #517 (permalink)  
Old 08-18-2006, 08:40 AM
newdigital newdigital is offline
Administrator
 
Join Date: Sep 2005
Posts: 15,954
Blog Entries: 65
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Quote:
Originally Posted by serdar
Hii ND

EA for M5 is not worked is there any adjustment in my meta?

Thanks in advance
It will not be very difficult to create EA for this easy asctrend system on M5 timeframe because:

- NRTR_color_line indicator is using ATR indicator;

- ASCTrend indicator is using the following:
Code:
int ASCTrend( int risk )
{

   double smin, smax, bsmin, bsmax;

   smin=Low[Lowest(NULL,0,MODE_LOW,9,1)]; 
   smax=High[Highest(NULL,0,MODE_HIGH,9,1)];

   bsmax = smax-(smax - smin)*(33.0-risk)/100.0;
   bsmin = smin+(smax - smin)*(33.0-risk)/100.0;

   asctrend = asctrend1;
   
   if(Close[1]>bsmax)  asctrend= 1; 
   if(Close[1]<bsmin)  asctrend=-1;
   
   asctrend1 = asctrend;
  return(asctrend);
and

Code:
bool ASCtrendBuy  = ASCtrend>0 && ASCtrend1<0;  
bool ASCtrendSell = ASCtrend<0 && ASCtrend1>0;
I will try to create this simple EA when I will have a time. Or somebody may do it (because I am not good coder ).
Reply With Quote