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

Re: [amibroker] Re: Getting AB to keep TABS of yre TRADE once active



PureBytes Links

Trading Reference Links

As long as you have a reference, it will. For example, if you want the 
BuyPrice at entry you can get it with ValueWhen(Buy,BuyPrice,1) for the 
last Buy signal. If you want 3 Buys ago it's ,3. The trick may be in 
knowing which Buy you want. Also, this is an array function so you can't 
use it inside looping code. You could also find out the value of an 
indicator as well as price, or any other array you have already calculated.

Terry

sebastiandanconia wrote:

>I'm a pretty shallow thinker when it comes to coding and maybe I'm 
>misunderstanding the problem, but VALUEWHEN wouldn't work 
>in "remembering" the entry price for other/later references?
>
>
>Luck,
>
>Sebastian
>
>  
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/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/