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

RE: [amibroker] Selling by percent drawdown



PureBytes Links

Trading Reference Links

I don't think that will work since BuyPrice changes everyday. You'd have
to remember the BuyPrice on the day of the Buy. However, ApplyStop will
do this using Max Loss and Trailing Stop too if you want the drawdown
from the MFE (high point of the trade).

--
Terry


| -----Original Message-----
| From: amibroker@xxxxxxxxxxxxxxx 
| [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of TB
| Sent: Sunday, June 26, 2005 02:51
| To: amibroker@xxxxxxxxxxxxxxx
| Subject: AW: [amibroker] Selling by percent drawdown
| 
| 
| 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
| 
| 
| 
|  
| 
| 
| 



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/