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

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



PureBytes Links

Trading Reference Links


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








------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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/