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

Re: [trading] Re: [amibroker] ValueWhen(Ref()) question



PureBytes Links

Trading Reference Links

Thanks Herman!

----- Original Message ----- 
From: "Herman van den Bergen" <psytek@xxxxxxxx>


> 
> LastValue(valuewhen(Buy,Close));
> 
> herman
>  -----Original Message-----
>  From: Beachie [mailto:beachie41@xxxxxxxxxxx]
> > 
>  Thanks Anthony....not what I was wanting to hear though :(
>  Do you (or anyone for that matter) have any ideas how I can retrieve the
> value of the
>  Close of the last Buy that was traded on?
> 
> 
>  ----- Original Message -----
>  From: "Anthony Faragasso" <ajf1111@xxxxxxxx>
>> 
> 
>  >I read it as this.....
>  >
>  > Give me the value of the close when the Buy was the day before....
>  > ----- Original Message -----
>  > From: "Beachie" <beachie41@xxxxxxxxxxx>
>  >
>  >
>  >> Just some clarification please for the following:
>  >> ValueWhen(Ref(Buy,-1),C)
>  >> Does this return the Close value of the last time a Buy was actually
>  >> executed, or does it
>  >> return just the last Buy signal, regardless whether there was still a
>  >> trade open before
>  >> that? In other words I wish to only reference the last Buy signal that
>  >> actually caused me
>  >> to enter a trade, despite subsequent Buy signal positives.
>  >> cheers
>  >>
>  >>
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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/