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

Re: [amibroker] Re: 5 days momentum



PureBytes Links

Trading Reference Links

try this

Cond1 = ADX(14) > 35 AND C > 50 AND PDI(14)>MDI(14) AND StochK(8,1) < 40;

Buy = ref(Cond1,-1) and H>ref(h,-1);
Sell = 0;
ApplyStop(stopTypeNBar , stopModePoint,5, 0);
ApplyStop(stopTypeLoss, stopModePercent,2, 0);



-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com







On 18/05/07, veszka <veszka@xxxxxxxxx> wrote:
> --- In amibroker@xxxxxxxxxxxxxxx, "veszka" <veszka@xxx> wrote:
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "veszka" <veszka@> wrote:
> Nobody can't help me?:(
>
> > >
> > > Anybody can help me?
> > Please help me!
> > Thanks in advance!
> >
> > > Thank you!
> > > --- In amibroker@xxxxxxxxxxxxxxx, "veszka" <veszka@> wrote:
> > > >
> > > > I wrote this code:
> > > >
> > > > Cond1 = ADX(14) > 35 AND C > 50 AND PDI(14)>MDI(14) AND StochK(8,1)
> > > < 40;
> > > >
> > > > Buy = Cond1;
> > > > Sell = BarsSince(Buy)>= 5 OR ApplyStop(stopTypeLoss,
> > > stopModePercent,
> > > > 2, 0);
> > > >
> > > > How can I expand my buying condition like below?
> > > >
> > > > Thanks in advance!
> > > >
> > > >
> > > > --- In amibroker@xxxxxxxxxxxxxxx, "veszka" <veszka@> wrote:
> > > > >
> > > > > Hi!
> > > > >
> > > > > I try to interpret the idea in the subject form Jeff Cooper. I
> > > have a
> > > > > problem with the following condition. If the base conditions -
> > > (ADX()
> > > > > >35 and +DI>-DI and Fast%K<40) - realized (Day 1) then I can buy
> > > after
> > > > > one day (Day 2) when this conditions are true on price High of
> > > Day 1 +
> > > > > 1tick.
> > > > >
> > > > > I can't code the criteria after 1 day. How can I solve this?
> > > > >
> > > > > Thank you!


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/