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

Re: [amibroker] AFL Help For Newbie



PureBytes Links

Trading Reference Links

Norm
In Help screens
Tutorial - Amibroker Formula Language - Using Studies in AFL Formulas

This should be enough to get you started

On 5/15/05, longarm61 <norm1@xxxxxxxxxxx> wrote:
> I'm an Amibroker and AFL newbie with no coding experience
> other than HTML, so learning this stuff will take a while, I
> can tell. I was wondering if someone here would be kind
> enough to give me a head start on some code for a backtest
> and then HOPEFULLY I'll be able to take it from there.
> 
> Here's what I'd like to do: I want to draw my own trendlines
> on a chart, four distinct kinds.  For example, Uptrend A,
> Uptrend B, Downtrend A, Downtrend B.
> 
> * I would like to buy using 50% of my capital when Downtrend
> A is crossed AND the following day's price goes higher than
> the high of the day Downtrend A was crossed.
> 
> * I would like to buy using my remaining capital when
> Downtrend B is crossed.
> 
> * I would like to sell 50% of my position when Uptrend A is
> crossed.
> 
> * I would like to sell my remaining position when Uptrend B
> is crossed.
> 
> * Then I would like to short using 50% of my capital when
> the next day's price goes lower than the low on the day that
> Uptrend B was crossed.
> 
> * I would like to cover my short when Downtrend A is crossed.
> 
> Is this doable in AFL?  There's more to it, but this should
> knock a year or so off of my learning curve anyway! ;-)
> 
> Thanks very much for any help on this.
> 
> Norm
> 
> 
> 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 other support material please check also:
> http://www.amibroker.com/support.html
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


------------------------ 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
--------------------------------------------------------------------~-> 

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

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