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

Re: [amibroker] Is "ApplyStop" mutually exclusive?



PureBytes Links

Trading Reference Links

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



------------------------ 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/