PureBytes Links
Trading Reference Links
|
Hi,
Here is the code. You can also use the build-in settings.
Simple click in AA: Settings - Trade
Buy = RSI() < 25;
BuyPrice = ValueWhen(Buy,C);
Sell = RSI() > 50 OR Close < BuyPrice *.90;
Regards
Thomas
www.tradingbasis.com
-----Ursprüngliche Nachricht-----
Von: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] Im Auftrag
von jacquesmmathieu
Gesendet: Sonntag, 26. Juni 2005 05:24
An: amibroker@xxxxxxxxxxxxxxx
Betreff: [amibroker] Selling by percent drawdown
I wanted to code so that my system sold when it drew down a certain
percentage from the buy, but after repeated checking of my results I
have been getting no sell signals from drawdowns (in essence a
stop). My coding sucks, but maybe someone can tell me what I'm doing
wrong.
Simple version:
buy = rsi() < 25;
sell = rsi() > 50 or close < buy*.90;
Can I even use buy like that? Sorry for the stupid question guys.
Thanks,
Jacques
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
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/
|