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

RE: [amibroker] hard coding when to trade open/close



PureBytes Links

Trading Reference Links

Hello,

yes, you can do this through using BuyPrice, SellPrice, ShortPrice,
CoverPrice

Example to buy always on open price.
BuyPrice = 0pen; 

Example for symbol based BuyPrice: 
BuyPrice = IIf(Name() == "SymbolA", Open, IIf(Name() == "SymbolB", Close,
Close));


Kind regards
Thomas Zmuck
www.patternexplorer.com




From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of loveyourenemynow
Sent: Tuesday, January 01, 2008 9:40 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] hard coding when to trade open/close

Is it possible to hard code when to trade?
I know this option is available from the trades setting of the
automatic analysis, but I would prefer to set it directly in the code
to avoid to set it properly for different systems.

Trading delays can be set by setoption, but I can't find a similar
option for trade at close/open.
Can it be changed on bar and symbol base?

thanks
Ly
 


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/
 

<<attachment: winmail.dat>>