[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Intercept Help



PureBytes Links

Trading Reference Links

n=10;    // this is for an MA period of 10
 
Cross(C,MA(C,n);
----- Original Message -----
From: ed nl
Sent: Sunday, February 06, 2005 12:58 PM
Subject: Re: [amibroker] Intercept Help

Carl,
 
use the Cross function (see manual),
 
rgds
 
ed
 
 
----- Original Message -----
From: Carl K
Sent: Sunday, February 06, 2005 7:48 PM
Subject: [amibroker] Intercept Help


I have tried to calculate an intercept of price and a ma.
I tried

for(i=0; THi2<THi; i++)      // THi2>Test      Test++  This is the logic
{
   THi = High + (i/100);// Test High = High + .01 incrument
   THi2 = DEMA(THi, 3);      // DEMA of Test High
}

had no luck saving it, so I modified it to

// Calculate the intercept
MB = 1;

for(i=0; MB > 0; i++)            // THi2>Test      Test++  This is the
logic
{  THi  = High + (i/100);            // Test High = High + .01
incrument
   THi2 = DEMA(THi, 3);            // DEMA of Test High
   MB   = IIf(THi2>THi, 1, 0);      // Test to Make/Break loop
}
//   no luck either

I must be missing something.

Carl





Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html




Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 2/3/2005


Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html




Yahoo! Groups Links

No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 2/3/2005