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

Re: [amibroker] How to code - "Using stops as cover/sell"?



PureBytes Links

Trading Reference Links

Short = Sell;
Cover = Buy;
-- 
Terry


From: "quexos0" <quexos0@xxxxxxxxxxxx>
Reply-To: amibroker@xxxxxxxxxxxxxxx
Date: Wed, 06 Oct 2004 17:22:12 -0000
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] How to code - "Using stops as cover/sell"?


>From reading of help files and AFL reference, I know we can code:

cover = 0;
sell = 0;

And use "ApplyStop" function so the stoplosses or takeprofitstops
are taken as exit.

I also know that this line of code:

Buy=ExRem(Buy,Sell);Sell=ExRem(Sell,Buy);
Short=ExRem(Short,Cover);Cover=ExRem(Cover,Short);

Removes excessive signals.

But, how do I code it so that the ExRem codes recognises the stops
as cover/sell?

Is there is way to code something like "Cover = Applystop" etc so we
can associate the stops as our cover/sell function?

Thanks in advance!








Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html


Yahoo! Groups Sponsor
 
 ADVERTISEMENT
 <http://us.ard.yahoo.com/SIG=129j1jjjo/M=295196.4901138.6071305.3001176/D=g
roups/S=1705632198:HM/EXP=1097169781/A=2128215/R=0/SIG=10se96mf6/*http://com
panion.yahoo.com>  


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
<mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
*  
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .




[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

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/