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

[amibroker] Re: to place an order on the close of the bar for real



PureBytes Links

Trading Reference Links

My question is not in the right forum. 
It's concerning the Auto Trade forum :
http://finance.groups.yahoo.com/group/AmiBroker-at/

An answer, to Barry Scarborough's question, is given here by Chris
DePuy and TJ
http://finance.groups.yahoo.com/group/AmiBroker-at/message/3515


--- In amibroker@xxxxxxxxxxxxxxx, "reinsley" <reinsley@xxx> wrote:
>
> 
> 
> Thanks to Ed emp62 that has written few lines somewhere in the ABous
> expanses, I found a surprising way of doing.
> 
> sigbuy = O>Ref(C,-1);
> sigsell = O<Ref(C,-1);
> 
> sigbuyonclose = Ref(O,-1)>Ref(C,-2);
> sigsellonclose = Ref(O,-1)<Ref(C,-2);
> 
> Backtesting and real time trading give same signals...
> 
> NB : hope this basic question will be useful for beginners digging
> into archives.
> 
> Regards
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "reinsley" <reinsley@> wrote:
> >
> > Hello,
> > 
> > How can we place an order on the close of the bar for real ?
> > 
> > I see many way of doing it in the backtester, 
> > SetTradeDelays(0,0,0,0);
> > BuyPrice =  C;
> > 
> > But what is the equivalent command to place a real order into IB
> > Controller ?
> > 
> > My signal is on the Open, but I want to place a market order on the
> > close of the bar.
> > 
> > Buy = O>Ref(C,-1) AND MarketON;
> > Sell = O<Ref(C,-1) OR MarketOFF; 
> > Short = Sell;
> > Cover = Buy;
> > 
> > I don't find the help, I don't know the right words to goggle.
> > 
> > Thank you 
> > 
> > regards
> >
>



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

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/