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

[amibroker] Re: Problems in back testing



PureBytes Links

Trading Reference Links


> 
> 1)suppose I'm long and get a stop and reverse signal for tomorrow
> at 10,59.
> 
> Next day the market opens at 10.18 than rallies and make a high at 
> 10.80 and close at 10.76 (that's a real case about an Italian
> stock).
> 
> In the real life I should have sold and open a short position at 
> 10.18, the open. Unluckily, AMB sells at 10.59, i.e. doesn't have 
> any control about the order of the price inside the daily bar.
> 


I think I have resolved problem 1) with these 2 lined of code:

BuyPrice = IIf(Open> channeltop, Open, channeltop);
SellPrice = IIf(Open <channelbottom, Open, channelbottom);

For me, problems 2) and 3) remain.






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/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/