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

[amibroker] Re: Novice question



PureBytes Links

Trading Reference Links

Thanks a lot. I had the sell order coded with a positive n instead 
of a negative. Seemed more intuitive to me, but I guess I was just 
thinking backwards. 

Jacques

--- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
> you can simply use this
> Buy = YourBuyCondition;
> Sell = Ref(Buy,-5); // sell 5 bars after buy signal
> 
> you will however need to add this line exremspan to remove any
> additional buy signals that may occur within 5 bars of the first
> signal. The additional buy signals will reset the counter for the 
sell
> signal to be 5 bars from the most recent buy signal
> 
> Buy = YourBuyCondition;
> Buy = ExRemSpan( Buy, 5 );
> Sell = Ref( Buy, -5 ); 
> 
> On 6/7/05, jacquesmmathieu <jacquesmmathieu@xxxx> wrote:
> > Just wondering if there is an easy way to have a sell order 
occur a
> > certain interval from the buy order. Looked for a couple hours 
through
> > the help section, but couldn't find anything. Maybe it's my lack 
of
> > programming experience. Also, is there a better tutorial 
somewhere on
> > the internet?
> > 
> > Thanks,
> > 
> > Jacques
> > 
> > 
> > 
> > 
> > 
> > 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
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> 
> 
> -- 
> Cheers
> Graham
> http://e-wire.net.au/~eb_kavan/




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