(1)use TimeFrameRestore() before TimeFrameSet(inWeekly). (2)make sure u use right time frame while exploring
--- On Wed, 4/7/10, michel_junior003 <[email protected]> wrote: From: michel_junior003 <[email protected]> Subject: [amibroker] Help with simple AFL code To: [email protected] Date: Wednesday, April 7, 2010, 8:55 PM Hi, I want to identify stocks (Weekly) that have ADX(11) > 25 I used this code: TimeFrameSet( inWeekly ); Filter = ADX(11) > 25; AddColumn( Close, "Close " ); AddColumn( Open, "Open " ); AddColumn( High, "High " ); AddColumn( Low, "Low " ); AddColumn( Volume, "Volume " ); AddColumn( ADX(11), "ADX " ); Something is wrong because I see stocks that have ADX lower than 25. How can I correct this? This code works well for Daily stocks, but doesn't work for Weekly stocks. Thanks in advance.
