PureBytes Links
Trading Reference Links
|
Good morning,
I want to start learning AFL with this simple stupid code, but I am
not getting further.
Buy=Open;
conditionsell=IIf ((H-O)>10,SellPrice=(Open+10),SellPrice=Close);
Sell=Conditionsell;
this should just buy at the opening and sell if the Dow Jones is going
up 10 Points. The profit should be 10 Points.
If the Dow is not going up 10 points the position should be closed at
the end of the day.
The backtest with this code is giving me daily results with just a buy
at the opening and sell at the close.
What is wrong ? pls help ?
------------------------ 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/
|