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

[amibroker] Buy/Sell price on a stop



PureBytes Links

Trading Reference Links

Could someone point me in the right direction for the AFL in calculating the slippage of buying or selling on a stop. I searched ticksize and point value to no avail. For example:
 
BuyStp = HHV(Ref(H,-1),15);
Buy = Cross (High, BuyStp);
BuyPrice = Max (BuyStp, L);   I want  BuyPrice = Max (BuyStp, L)+ 1 tick ;  
 
In this case of buying on a stop at BuyStp, you will almost never get filled at BuyStp because the ask will be at least 1 tick higher, therefore I would like to adjust the buy price by a certain number of ticks.
 
Thank you,
James

__._,_.___

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




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___