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

Re: [amibroker] AFL functions not aligned with loop code



PureBytes Links

Trading Reference Links

Analysis setting 'pad and align' sets the values equal to previous
traded day OHLCV

-- 
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com


On 16/08/07, oceanchimes <oceanchimes@xxxxxxxxx> wrote:
> Hi all
> I code an array AFL code sum(llv(v>0,7)==7
> Exploration always gives sum==7 even though explore/backtest picks
> stocks with data holes. I have checked AA.settings.pad&align with
> index(XAO) but this does not seem to help.
>
> The problem shows up when mixing AFL and forLoop code.
> eg. TOvr = V*C;
>
> for(i=0; i<barcount; i++)
> {
>  ...
>  buy[i] = BuySig and TOvr[i];
>  ...
> }
>
> My take and trades list seems to confirm is that the alignment of bars
> for AFL and XAO occurs during backtest. However if mixed with loop
> code the logic before backtest doesn't, so the logic for the AFL array
> code and loop code do not align bars correctly.  So the logic is
> flawed when backtest is active and code processed.
>
> I have proved the above by moving the TOvr into the loop, all OK, but
> there are AFL functions such as BBandTopthat I cannot move into the loop.
> Many thanks for your help
> franc
>
> I'm sure I have missed something, so suggestions are welcomed.
>
>
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
> Yahoo! Groups Links
>
>
>
>


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/