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

[amibroker] Anyone able to access Amibroker AFL Library



PureBytes Links

Trading Reference Links

Don, what exactly was you query about in the first email.
Here is another stab at inderstanding, and just an idea that would prob need
expanding and fiddling to actually work

You can just use applystop to create a trailing stop. 

Buy = Cross( H, Ref( HHV(H, 5), -1 ) );
Applystop( stopTypeTrailing, stopModePoint, 2*ATR(14), 0);


This can then possibly be used as you entry conditions for future trades
(double check the numbers for type os sell/cover)

Short = Sell ==4; 
Buy = Cover==4;


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

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

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









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