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

[amibroker] How do you know what your last trade was



PureBytes Links

Trading Reference Links


I want to write stop logic, but since its based on a logical test I 
cannot seem to use the applystop function.

Therefore  it seems I will need to have another Cover /Sell statement 
which will only be triggered if I already have an opposite position.
i.e. Cover if am already Short and my stop condition is true, and 
Sell if I am already long and that stop position is true.

This means I need to know what my current position is, and my 
question is how do I do this. I know Wealthlab has a Position Array 
but I can't find anything similar in AB.

I am sure there must be a way to do this. Would be grateful if 
someone could provide the code.

Thanks









------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/