PureBytes Links
Trading Reference Links
|
Arold:
You may use all ApplyStops at once. They do not cancel each other. They're
all mutually exclusive anyway. For example, if you have a max stoploss and a
profit target in place at the same time, and the price advances enough to
trigger the profit target, you exit your trade and that's it. No more need
for the max stoploss. Same if the stock tanked to your max stoploss before
the profit target triggered. So, in that sense, they cancel each other
(simply because you can only exit a trade once). ApplyStop is a very
versatile and powerful function in AB.
Al Venosa
----- Original Message -----
From: "Arold" <arold_ite@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, February 15, 2004 3:54 AM
Subject: [amibroker] Is "ApplyStop" mutually exclusive?
> Hi, does anybody know if I can have multiple "ApplyStop" statements
> working for me at the same time?
>
> Or, does each successive "ApplyStop" statement cancel the last?
>
> I WAS under the impression that I could build a whole set of exit
> rules by adding successive "ApplyStop" statements but having tried
> this, I'm not so sure?
>
> This is what I'm trying...
>
> profitTarget = Optimize( "Profit Target Points", 25, 1, 100, 1 );
> stopLoss = Optimize( "Initial Stop Loss Points", 1, 0, 100, 5 );
> trailingStopLoss = Optimize( "Traling Stop Loss Points", 20, 0, 100,
> 1 );
>
> ApplyStop( stopTypeProfit, 3, profitTarget, 1); // Profit Target in
> Risk Percentage
> ApplyStop( stopTypeLoss, 3, stopLoss, 1 ); // Initial Stop Loss in
> Risk Percentage
> ApplyStop( stopTypeTrailing, 3, trailingStopLoss, 1 ); // Trailing
> Stop Loss in Risk Percentage
>
>
> When running my test, it LOOKS as if successive "ApplyStop"
> statements cancel out the previous one.
>
> Is this right?
>
> Thanks
> Arold
>
>
>
>
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
>
>
>
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/
|