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

[amibroker] Re: Stop and reverse trading AFL question



PureBytes Links

Trading Reference Links


Not really. 

I pretty much only want to be long in this system, but will only 
become short IF I get stopped out at some price x.  

In this situation, I sell 2 contracts....one to cover my long and 
the remaining one to make me short 1 contract.

I tried using your suggestion, but I'm now getting too many sells.
I only want to be short if I get stopped out of my original long 
position.  And I want to cover the short position 5 bars later at 
the close.  Any suggestions for how to do this?  Thanks.  





--- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
> I presume you want to trade long and short
> Just define your buy and sell as normal for long and then use
> Short=Sell;
> Cover=Buy;
> 
> 
> On Sun, 09 Jan 2005 21:21:35 -0000, The Webmaster
> <maintainer_wiz@xxxx> wrote:
> > 
> > 
> > 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
> > 
> > 
> > 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
> > 
> > 
> > 
> > 
> > 
> 
> 
> -- 
> Cheers
> Graham
> http://e-wire.net.au/~eb_kavan/





------------------------ 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/