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

RE: [amibroker] Cover & ShortPrice issue



PureBytes Links

Trading Reference Links

Have you set trade delays?

when = ParamToggle("Trade Day:","Same Day|Next Day",1);
SetTradeDelays(when,when,when,when);

Also you formula implies you are testing against your short entry, but
this code does not know your entry bar, just the current bar's value of
ShortPrice should you want to go Short on the current bar.
--
Terry

-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
Behalf Of eric paradis
Sent: Tuesday, January 03, 2006 20:40
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Cover & ShortPrice issue

Hi, 

I have a question about Cover and ShortPrice. 

My system is having some big losses in the backtest
results because the cover and shortprice function
seems to be misused. It seems it is ignoring the
initial shortprice for some other value. Any thoughts?

ShortPrice = Open;
CoverPrice = Open;

Short = IIf(Close < (HHV(Ref(Close,-1),365)- 10 *
ATR(10)),1,0);
Cover = Close > (ShortPrice *1.05 );



		
__________________________________________ 
Yahoo! DSL - Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 




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



 





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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/