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

[amibroker] Trailing Stops



PureBytes Links

Trading Reference Links




Hello,
 
For the past several days, I have been trying to code a 
Trailing Stop without success.
 
I'm using both AFL and VB Script.
 
My problem is that I always seem to end up with a circular 
reference problem which
boils down to:  I need a Trailing stop variable to define 
the Sell condition and I need
the Sell condition to define the Trailing stop 
variable.
 
Can anyone give me advice/code sample to help?
 
As an aside, I've looked at the ApplyStop function and it does 
not seem to do what I
am seeking .  
 
My goal is, for a long entry, to have an amount defined by the 
ATR function, which is subtracted from
the low creating the stop level.  The stop level would 
then trail up only.
 
Any help would be appreciated.
 
Regards,
 
Tony
 
 






Yahoo! Groups Sponsor


  ADVERTISEMENT









Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.