PureBytes Links
Trading Reference Links
|
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
------------------------ Yahoo! Groups Sponsor --------------------~-->
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~->
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
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|