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

RE: [amibroker] Looping within QuickAFL bounds



PureBytes Links

Trading Reference Links

Hello Graham,

you misunderstand my point.

basically, once the first trade is instigated the trailing STOP is the exit
point for ALL future trades.

After first Buy for long entry, the stop is a trailing stop value. After
this is triggered the Short is implimented and there is now a trailing stop
for that Short Entry.

Don



-----Original Message-----
From: Graham [mailto:gkavanagh@xxxxxxxxxxxxx]
Sent: Sunday, 25 July 2004 3:28 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] simple code idea


Easiest to just define your Sell condition, then use Cover=Buy;Short=Sell;
Eg maybe you use similar sell to your buy

Buy = Cross( H, Ref( HHV(H, 5), -1 ) );
Sell = Cross( Ref( LLV(L, 5), -1), L );
Cover=Buy;Short=Sell;


Cheers,
Graham
http://e-wire.net.au/~eb_kavan/

-----Original Message-----
From: Collectable Images [mailto:telecard@xxxxxxxxxxxxxx]
Sent: Sunday, July 25, 2004 1:04 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] simple code idea

This should be simple I think but I am going round in circles as usual.

An always in system. Stop and Reverse. Any ideas?

Buy on an initial breakout signal such as

buy = Cross(H,Ref(HHV(H, 5),-1)); //break out when high breaks highest high
of last 5 days.

Stop is a trailing stop.

When stopped out, Go short.

When short is stopped out go Long,

continue this for ever.








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








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








------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/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/