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

[amibroker] Re: Why raw signals different than actual trades?



PureBytes Links

Trading Reference Links

Just stating opening equity is not enough information. What is your position sizing, what is the max number of trades, do you allow position size shrinking, would your trade represent too large a ratio of the days trading volume, are you using commissions? All of these will impact whether a trade is taken or not.

Mike

--- In amibroker@xxxxxxxxxxxxxxx, "Peter" <aretep@xxx> wrote:
>
> Hi
> 
> I'm having similar problems with some trades being missed on 1 minute data.
> The arrows for actual trades are correct but some trades are missed by the
> back tester. Below is the code I used, Equity is 1,000,000.
> 
>  
> 
> As I notice if I change to hour bars there is no problem I wonder if data
> integrity an issue?
> 
>  
> 
> Any help would be appreciated
> 
>  
> 
> Thanks
> 
> Peter
> 
>  
> 
>  
> 
> SetOption("FuturesMode",True);
> 
> PositionSize =  MarginDeposit = 1;
> 
> SetOption("AllowSameBarExit", True);
> 
> SetTradeDelays(0,0,0,0);
> 
> SetBacktestMode( backtestRegularRaw );
> 
>  
> 
> BuyPrice = C;
> 
> SellPrice = C;
> 
>  
> 
> MA1 = MA(C,5);
> 
> MA2 = MA(C,25);
> 
>  
> 
> Buy = Cross(MA1,MA2);
> 
> Sell = Cross(MA2,MA1);
> 
>  
> 
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
> Of Mike
> Sent: Thursday, 8 October 2009 7:55 a.m.
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: Why raw signals different than actual trades?
> 
>  
> 
>   
> 
> As alluded to by Mark, the default backtest behavior will only allow one
> position per symbol at a time. Also, your position size may be causing you
> to run out of funds, and your Max Positions setting may be preventing you
> from taking on more positions (if trading a portfolio of stocks). See the AA
> settings, SetPositionSize function, SetOption function.
> 
> Mike
> 
> --- In amibroker@xxxxxxxxxxxxxxx <mailto:amibroker%40yahoogroups.com> ,
> "fcee150206014" <xk9.xk9@> wrote:
> >
> > Hello,
> > 
> > I've been trying to backtest some old ideas but I have a problem, the
> system recognizes all the raw signals but ignores more than half when doing
> actual trades. 
> > 
> > 
> > 
> > Thank you for your help.
> >
>




------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/