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

[amibroker] How can I control trades during specific hours?



PureBytes Links

Trading Reference Links

Graham told me how to set AB up to trade during specific hours. 
Thanks again.

But I ran into a problem with that. On the first trade of the day, 
say the trade should be buy, since the conditions are the same for 
cover, I get a buy and cover on the same bar even though there were 
no short trade active. 

What control does AB provide that will allow the program to know not 
to cover if there is no short position. I also have the same problem 
when I close all trades at the end of a trading session, typically 
before the close. When I close a short I also get a buy on the last 
bar. 

So at the open and close of my trading period I need to control what 
I buy/sell other than just the indicator signals. How is that done? 
Does AFL have status indicators that will tell me what trades are 
active?

Thanks for the help,
Barry





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/