[amibroker] When using TimeFrameCompress the week is starting on a Friday

2008-04-06 Thread dawsonsg
Hi Guys, I have used the code below to get the weekly plots of ift rsi and it looks ok. There is a poblem though, when you look at the stepped values, each value is the same for the five days (as it is weekly) but the fist day is a Fiday not a Monday. Is there anything that I have to set som

[amibroker] When using TimeFrameCompress the week is starting on a Friday

2008-04-06 Thread dawsonsg
Hi Guys, I have used the code below to get the weekly plots of ift rsi and it looks ok. There is a poblem though, when you look at the stepped values, each value is the same for the five days (as it is weekly) but the fist day is a Fiday not a Monday. Is there anything that I have to set som

[amibroker] Re: Last weeks weekly high/low plotted on a daily chart using TimeFrameSet

2008-04-05 Thread dawsonsg
): > plot(lwh, etc, ); > > > Regards > > ChrisB > > > > > > > ChrisB wrote: > > > > dawsonsg > > > > you could try something like this > > > > TimeFrameSet( inWeekly) ; > > wHigh = Ref(High,-1) ; > &g

[amibroker] Last weeks weekly high/low plotted on a daily chart using TimeFrameSet

2008-04-05 Thread dawsonsg
Hi Guys, I have placed the code below into an indicator and put this indicator onto a daily chart. The result I am getting is not what I would have expected. TimeFrameSet(inWeekly); wHigh = Ref(High,-1); wLow = Ref(Low,-1); TimeFrameRestore(); Plot(wHigh,"Weekly High", colorRed, styleLine); Pl

[amibroker] Help with PREVIOUS function

2008-03-21 Thread dawsonsg
Hi Guys, Can someone please give me a hand with converting a metastock formula using PREVIOUS to Metastock. I believe I am supposed to be using a FOR loop to do it but am not sure where to start. I have been pointed to http://www.amibroker.com/guide/afl/afl_view.php?ama and have also found a m

[amibroker] Ehlers DCF

2008-02-19 Thread dawsonsg
Hi Guys, Does anyone have a formula for ehlers dcf. I have been looking around and haven't been able to find anything. Regards Steve

[amibroker] Re: Graham is great

2008-01-21 Thread dawsonsg
Hi Guys, Sorry I asked the question about scans/explorations, I wont be doing that in a hurry again. I am not sure what is worse, not having used a charting program before or having used Metastock for years and then trying to find the equivalents in Amibroker. While it was implied by vlanschot

[amibroker] Re: Scan ONLY a watchlist and not the entire database.

2008-01-21 Thread dawsonsg
Thanks Graham. It is appreciated. Regards Steve --- In amibroker@yahoogroups.com, Graham <[EMAIL PROTECTED]> wrote: > > Use the Filter settings in Analysis window > > -- > Cheers > Graham Kav > AFL Writing Service > http://www.aflwriting.com > >

[amibroker] Scan ONLY a watchlist and not the entire database.

2008-01-20 Thread dawsonsg
Hi Guys, Is there anyway to scan only a Watchlist in Amibroker without needing to scan the entire database. I have found the command InWatchListName( watchlist ) and have used that in the filter so only the stocks I am interested in are displayed, but it is still slow when going through 22000

[amibroker] Re: can some one help to code this

2008-01-20 Thread dawsonsg
0)>10,20); > D1=Valuewhen(R1,DateNum()); > Filter=R1; > Addcolumn(R1,"ROC_10%"); > Addcolumn(D1,"Date"); > > Can u modify please. > > > --- In amibroker@yahoogroups.com, "dawsonsg" wrote: > > > > Sorry, should have been > >

[amibroker] Re: can some one help to code this

2008-01-20 Thread dawsonsg
0)>10,20); > D1=Valuewhen(R1,DateNum()); > Filter=R1; > Addcolumn(R1,"ROC_10%"); > Addcolumn(D1,"Date"); > > Can u modify please. > > > --- In amibroker@yahoogroups.com, "dawsonsg" wrote: > > > > Sorry, should have been > >

[amibroker] Re: can some one help to code this

2008-01-19 Thread dawsonsg
Sorry, should have been Hold(Roc(Close,10)>10,20) Steve --- In amibroker@yahoogroups.com, "dawsonsg" <[EMAIL PROTECTED]> wrote: > > Try > > Hold(Roc(Close,10),20) > > > > --- In amibroker@yahoogroups.com, "ramvilas" wrote: > > &

[amibroker] Re: can some one help to code this

2008-01-19 Thread dawsonsg
Try Hold(Roc(Close,10),20) --- In amibroker@yahoogroups.com, "ramvilas" <[EMAIL PROTECTED]> wrote: > > I want to scan my database(EOD) for last 20 bars to find if ROC OF ANY > ONE BAR IS GREATER THAN 10%. please help me. >

[amibroker] Re: can some one help to code this

2008-01-19 Thread dawsonsg
Try Hold(Roc(Close,10),20) --- In amibroker@yahoogroups.com, "ramvilas" <[EMAIL PROTECTED]> wrote: > > I want to scan my database(EOD) for last 20 bars to find if ROC OF ANY > ONE BAR IS GREATER THAN 10%. please help me. >

[amibroker] Re: Referencing an indicator from a scan

2008-01-19 Thread dawsonsg
gt; > AmiBroker will look for C:\AFL\MyIncludes\common.afl file > > Also now #include reports file(s) not found in regular error message box. ? > > > > EXAMPLE > #include "C:\Program Files\AmiBroker\AFL\common.afl" &

[amibroker] Re: Referencing an indicator from a scan

2008-01-19 Thread dawsonsg
Thanks Robert. Do you know if there are any examples of this anywhere? Regards Steve --- In amibroker@yahoogroups.com, Robert Nemeth <[EMAIL PROTECTED]> wrote: > > Try using: > #include > > Robert > > - Original Message > From: dawsonsg <[

[amibroker] Referencing an indicator from a scan

2008-01-19 Thread dawsonsg
Hi Guys, Can I ask another question please? I have started moving a number of indicators from metastoc to amibroker but I also want to reference these indicators from the 'Explore' in automatic analysis. Does anyone know if there is a function call to do this? Regards Steve

[amibroker] Re: Equivalent to Metastocks "Alert"

2008-01-19 Thread dawsonsg
Tomasz, Thanks very much. Steve --- In amibroker@yahoogroups.com, "Tomasz Janeczko" <[EMAIL PROTECTED]> wrote: > > Hello, > > The equivalent in AFL is Hold > http://www.amibroker.com/f?hold > > Best regards, > Tomasz Janeczko > amibroker.com > -

[amibroker] Equivalent to Metastocks "Alert"

2008-01-19 Thread dawsonsg
Hi Guys, I have only just started using Amibroker (in the last 24 hours to be honest) and was wondering if I could get some help? Metastock has a command called 'Alert' and what this function does is return TRUE if a condition is met within the last x days. eg. Alert(Close>100,5) This would r