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

Re: [amibroker] Function for entry stop / limit order



PureBytes Links

Trading Reference Links

Provided I understand yur query, just create a statement that outlines
your requirements

SetOption( "PriceBoundChecking", 1 );
settradedelays(0,0,0,0);
ticksize = 0.01;
Buy = Cross( H, ref(h,-1) ); // should trigger only when high crosses
above previous bar high
Buyprice = ref(H,-1)+ticksize;

if this is not the only condition then just ass them to the buy statement liine

 //ticksize is reserved variable and can be set per symbol in symbol information

On 9/2/05, Richard Taylor <ricardo.juangga@xxxxxxxxx> wrote:
> Hi All,
> 
> I need to write again my question. Is there any function in AFL for
> entry stop / limit order ? e.g put entry stop long order on the
> previous day high + 1 tick. How to do that ?
> In the reference I can only find buy/sell or short/cover or buyprice/
> shortprice.
> 
> Thank you for the help.
> BTW I'm new to this language
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 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
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Help tsunami villages rebuild at GlobalGiving. The real work starts now.
http://us.click.yahoo.com/njNroD/KbOLAA/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/