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

[amibroker] AFL Help For Newbie



PureBytes Links

Trading Reference Links

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







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/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/