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

Re: [amibroker] setting buyprice



PureBytes Links

Trading Reference Links

Ivan, Try This....
SetTradeDelays(0,0,0,0);

Condition1=blah;
Condition2=blah;
BuyPrice=Ref(L,-1);
Buy=Ref(Condition1,-1) AND Ref(Condition2,-1);
Sell=Close;



----- Original Message ----- 
From: "idkokos" <idkokos@xxxxxxxxxxxxx>
To: "amibroker" <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, December 31, 2004 1:52 PM
Subject: [amibroker] setting buyprice


>
> Hello,
>
> Hopefully someone can help me out with this. I'm pretty new to Amibroker.
>
>
> if condition 1 and condition 2 is met today, then i would like to buy
tomorrow
> at today's low and exit at tomorrow's close.This is the code i have so
far, i
> ommited the conditions. But this doesnt seem to work. can anyone help me
out?
>
> Condition1=blah;
> Condition2=blah;
> BuyPrice=Ref(L,-1);
> Buy=Condition1 AND Condition2;
> Sell=ref(C,1);
>
> -Ivan Kokos
>
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
>
>
>
>
>
>
>




------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/