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

[amibroker] Stop and reverse trading AFL question



PureBytes Links

Trading Reference Links


Hi All:

Just bought AB and am getting adjusted to AFL programming(was a long 
time Easy Language programmer from way back when).

Here's my question:

How would I code a "stop and reverse" trade entry based on my 
initial position being long one SP contract, then getting stopped 
out at price x by selling two contracts at that price, so that now 
I'm net short one contract at stop price x?  

What would the "Sell = " code look like?

Thanks,
-Craig





------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/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/