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

[amibroker] Re: Buyprice problem



PureBytes Links

Trading Reference Links


Think I have solved problem by using:

Buystop=..;
Shortstop=...;

BuyPrice = Max(buystop,Open);
ShortPrice = Min(shortstop,Open);

SellPrice=ShortPrice;
CoverPrice=BuyPrice;



--- In amibroker@xxxxxxxxxxxxxxx, "qweds_560" <qweds_560@xxxx> wrote:
> 
> Hello All,
> 
> Assume I have defined Buyprice. If I now receive a buy signal on 
the 
> next bar, but which has gapped beyond my defined buyprice, then 
the 
> backtester takes the low of the bar as the buyprice. I would like 
it 
> to take the open.
> 
> Any suggestions?
> 
> Sam





------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/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/