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

Re: [amibroker] I want to sell a stock on next bar open what will be the code



PureBytes Links

Trading Reference Links

Hi Graham,
 Thanks for your early reply,
I want to buy a stock at close if the price is
more than 5% up and sell at open next day.
 I wrote the following code but it is not
working properly

SetTradeDelays(0,1,1,1);
Buy = Close >  Ref(Close, -1)*1.05;
BuyPrice = C;
Sell = True;
SellPrice = O; //sell price is open

Thanks

Shirish

--- Graham <kavemanperth@xxxxxxxxx> wrote:
> SetTradeDelays(1,1,1,1); //sets buy/sell/short/cover
> to 1 bar delay
> after the signal bar
> SellPrice = O; //sell price is open
> 
> 
> On 5/21/05, sshirbhate <sshirbhate@xxxxxxxxx> wrote:
> > dear friends,
> >  I want to sell a stock on open on the next bar
> > 
> > what will be the code.
> > 
> > Thanks in advance
> > 
> > Shirish
> > 
> > 
> > 
> > 
> > 
> > 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/
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


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