[amibroker] Simple "Days Back" Question

2009-01-11 Thread Conrad Smith
Hi guys, In the following custom indicator, I reference a day back but, for reasons that I hope are obvious to you, it throws an error. The indicator: PastWeight = Param("Past Data Weight", 0.1, 0.1, 2, 0.1); NewWeight = Param("New Data Weight", 0.9, 0.1, 2, 0.1); AdvDecEMA = (NewWeight * Ref(

Re: [amibroker] Standard Deviation

2007-10-24 Thread Conrad Smith
Thank you Graham and Ara for you help!

Re: [amibroker] Standard Deviation

2007-10-23 Thread Conrad Smith
pass all stocks - Original Message ----- From: Conrad Smith To: Amibroker Sent: Tuesday, October 23, 2007 7:41 PM Subject: [amibroker] Standard Deviation Hi guys, I'm trying to get the standard deviation for each stocks. So far I have the following, but

Re: [amibroker] Standard Deviation

2007-10-23 Thread Conrad Smith
-- Cheers Graham Kav AFL Writing Service http://www.aflwriti ng.com On 24/10/2007, Ara Kaloustian <[EMAIL PROTECTED] com> wrote: Your filter statement needs to be changed. Use Filter =1; // This will pass all stocks - Original Message ----- From:

Re: [amibroker] Standard Deviation

2007-10-23 Thread Conrad Smith
. Use Filter =1; // This will pass all stocks - Original Message - From: Conrad Smith To: Amibroker Sent: Tuesday, October 23, 2007 7:41 PM Subject: [amibroker] Standard Deviation Hi guys, I'm trying to get the standard deviation for each

[amibroker] Standard Deviation

2007-10-23 Thread Conrad Smith
Hi guys, I'm trying to get the standard deviation for each stocks. So far I have the following, but nothing comes back in the exploration. Period = 20; CloseTotal = Close[0]; CloseMean[0] = Close[0]; SumDeviation = 0; SqDev = 0; for( i = 0; i > Period; i++ ) { CloseTotal = CloseTotal + Clo

[amibroker] Dynamic Variables

2007-10-23 Thread Conrad Smith
Hi, Does AFL support dynamic variable creation? My goal is to determine the standard deviation of one or more stocks. But I don't want to limit the time period to the number of variables that I have to write out in the formula. I'd like to take the number of periods back as a parameter and t

[amibroker] New To Explorations

2007-10-21 Thread Conrad Smith
Hi guys, Like the title reads, I'm new to explorations, and AFL in general, and need a bit of help getting started. What I'm looking to do is find when the 12-day MA crosses down the 26-day MA, but only when the signal line is above the zero line. So far I've got: MSignnal=Signal(12, 26, 9);

Re: [amibroker] Re: Getting Today

2007-10-19 Thread Conrad Smith
under "Range" and select n last days and put a 1. You might also need to look under settings in automatic analysis and select the "portfolio" tab and choose the option for future data. Good luck, JH --- In [EMAIL PROTECTED] ps.com, Conrad Smith wrote: > &g

[amibroker] Getting Today

2007-10-18 Thread Conrad Smith
Hi guys, I'm trying to write an exploration that finds the stocks where the MACD fast MA crosses down the slow MA and the signal is more than 0. I've come up with this so far: Mac1 = MA(Close, 12); Mac2 = MA(Close, 26); Filter = Cross(Mac2, Mac1) AND (Mac2 - Mac1) > 0; AddColumn( Close, "Clo

Re: [amibroker] Opinion: best Moving Avarages ?

2007-10-14 Thread Conrad Smith
The thing about the 50/200 crossover technical indicator is that's it a self-fulfilling prophecy. Some of the institutional traders (the big guys) trade on this event. And when they buy or sell, in such a big quantity, it'll defiantly affect the price. Other than that, it comes down to what yo