PureBytes Links
Trading Reference Links
|
yes, i think you need to store your buyprice for later use:
myBuyPrice = Valuewhen(Buy,BuyPrice);
--- In amibroker@xxxxxxxxxxxxxxx, "archstone2003"
<archstone2003@xxxx>
wrote:
> Hi,
>
> Could someone help me on this?
>
> Suppose I want to write something like this:
>
> Buy = condition_1; // suppose it is true at day X
> Sell = if close price is in certain relationship with the buy price;
> // suppose it is true at day Y. (Y > X)
>
> I want to compare the price I bought at day X with the close price
at
> day Y.
>
> The BuyPrice array is not what I need, if my understanding is right.
> When I am on day Y, both Close and BuyPrice array are refering to
the
> same day.
>
> Thanks.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/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/
|