PureBytes Links
Trading Reference Links
|
You can do this:
Sell = IIf(LinRegAngleTDREI < -20,7,IIf(TDREI <= 45 AND TDREI > 0,8,0));
Now you can review the value of your exits to see which triggered, maybe
using an Explore or you can plot them. AB uses this technique for
ApplyStops which is why I started at 7 and not 1. This works because any
positive number is considered to be TRUE.
--
Terry
| -----Original Message-----
| From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
| Behalf Of Dickie Paria
| Sent: Wednesday, June 29, 2005 10:06
| To: amibroker@xxxxxxxxxxxxxxx
| Subject: [amibroker] A Qts on Understanding Sell Rules
|
| Suppose you have the following Sell rule - "Sell = LinRegAngleTDREI <
| -
| 20 OR (TDREI <= 45 AND TDREI > 0) ;" or any other Sell rule with more
| than one sell condition.....
| The qts is - how do you tell which one of your trading system exits is
| from one condition as opposed to the other ? Is there some way to
| code
| that will tell you which exit is from which condition ?
| Seems to me that if we could do that - then you would shave off hours
| from any system development.......
|
|
|
|
|
|
| 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/
|