PureBytes Links
Trading Reference Links
|
Hi to all,
I am trying to trace a Trailing Stop line on a chart,
but I do not know the way to make it.
Can anyone put these MS formulae into AB language ?
Or any AB Trailing Stop formula ?
--------------------------------------------------------------
strata:=3;
If(C=PREV,PREV,
If(((Ref(C,-1)<PREV)AND (C<PREV)),Min(PREV,C*(1+strata/100)),
If((Ref(C,-1)>PREV) AND (C>PREV),Max(PREV,C*(1-strata/100)),
If(C>PREV,C*(1-strata/100),C*(1+strata/100)))))
-------------------------------------------------------------
Big Thanks
--
regards,
stefano
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->
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 http://docs.yahoo.com/info/terms/
|