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

[amibroker] Re: Back testing Help



PureBytes Links

Trading Reference Links

Oops, made a mistake in my editing.

Change

> Buy = Ref(setup, -1) AND Low <= (Ref(Close, -1) * .90);
> BuyPrice = min(Open, myPrice);

To read

myPrice = (Ref(Close, -1) * .90);
Buy = Ref(setup, -1) AND Low <= myPrice;
BuyPrice = min(Open, myPrice);

--- In amibroker@xxxxxxxxxxxxxxx, "Mike" <sfclimbers@xxx> wrote:
>
> Hi,
> 
> One note, Your entry price would actually have to be the lesser of 
> the Open and 90% of the previous Close, since the Open might be 
less 
> than your limit order and would thus result in a fill. Also, I'm 
> assuming that you don't want to apply your rule to indexes, only 
> stocks.
> 
> I don't have AmiBroker on this machine and am going from memory, so 
> you'll have to double check all this code. But it should give you a 
> running start...
> 
> lowRSI = Sum(Ref(RSI(10), -1) < 30, 5) == 5;
> highClose = Close > 10;
> highVol = MA(Vol, 30) > 150000;
> 
> setup = lowRSI AND highClose AND highVol AND NOT IsIndex();
> 
> // Buy based on yesterday's setup, but only if today's low
> // drops below 90% of yesterday's close (i.e. limit entry).
> // Note that lesser of Open and limit price is used as entry.
> 
> Buy = Ref(setup, -1) AND Low <= (Ref(Close, -1) * .90);
> BuyPrice = min(Open, myPrice);
> 
> ...
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "hotstix101" <hotstix101@> wrote:
> >
> > 
> > I would like to enter a position only if it drops more than 10% 
> from 
> > yesterday close. 
> > I want my entry price in the back testing to be (Close 1 day ago -
 
> 10%) 
> > Example if close 1 day ago = 10 the entry price would be 9. 
> > I want also RSI(10) from 1 day ago to be below 30 for last 5 days 
> and 
> > close > 10 and average volume (30) > 150000 
> > 
> > Thanks, 
> > 
> > RNR
> >
>




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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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/

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