Error

 Previous Topic Next Topic
 arnevanveen #1 Posted : Thursday, January 5, 2006 9:14:05 AM(UTC) Rank: Advanced MemberGroups: Registered, Registered UsersJoined: 10/15/2005(UTC)Posts: 31Location: The Netherlands Dear all, Somewhere in a tradingsystem metastock the formula below is used. When testing, it gives very promising exit points. The problem is that i don't understand the way it is build and what it exactly does :? . Can someone explain the formula to me, it is based on a combination of bollinger bands and RSI? Formula: Abs(13-BarsSince(Ref(C>BBandTop(C,20,S,2),-1) AND H<=Ref(H,-1) AND Ref(H,-1)>=Ref(H,-2) AND Ref(RSI(14)>65,-1)))<=7 AND Ref(C>BBandTop(C,20,S,1.25),-1) AND Ref(C=Ref(H,-2) AND Ref(RSI(14),-1)BBandTop(C,20,S,2),-1) AND H<=Ref(H,-1) AND Ref(H,-1)>=Ref(H,-2) AND Ref(RSI(14)>65,-1),Ref(RSI(14),-1)) AND BarsSince(CBBandTop(C,20,S,2),-1) AND H<=Ref(H,-1) AND Ref(H,-1)>=Ref(H,-2) AND Ref(RSI(14)>65,-1)) AND BarsSince(C>BBandTop(C,20,S,2))>BarsSince(C
 Wanna join the discussion?! Login to your Discussions forum accountor Register a new forum account.
 Jose #2 Posted : Thursday, January 5, 2006 11:06:03 AM(UTC) Rank: Advanced MemberGroups: Registered, Registered UsersJoined: 1/19/2005(UTC)Posts: 1,065Location: Koh Pha-Ngan, EarthWas thanked: 2 time(s) in 2 post(s) arnevanveen wrote:Somewhere in a tradingsystem metastock the formula below is used. Not so much a formula, but more like a spaghetti code nightmare. You would be better off asking the perpetrator of this "formula" what he/she had in mind. In the meantime, use the tidier code version below to try and sort out the exit strategy, which looks somewhat like a basic Bollinger Band Top breakout. [code:1:93e49958c4] h1:=Ref(H,-1); h2:=Ref(H,-2); bbt1:=BBandTop(C,20,S,2); bbt2:=BBandTop(C,20,S,1.25); rs:=RSI(14); condition:= H<=h1 AND h1>=h2 AND Ref(C>bbt1,-1) AND Ref(rs>65,-1); H<=h1 AND h1>=h2 AND Ref(Cbbt2,-1) AND BarsSince(C>bbt1)>BarsSince(C
 arnevanveen #3 Posted : Thursday, January 5, 2006 12:33:37 PM(UTC) Rank: Advanced MemberGroups: Registered, Registered UsersJoined: 10/15/2005(UTC)Posts: 31Location: The Netherlands Thank you Jose for you reply! I searched in metastock where i found it, it is in the Equis - Bollinger Bands - Expert System. This is written as explanation: This system is patterned after the rules in an article written by John Bollinger in the February 1992 issue of Technical Analysis of Stocks and Commodities magazine. The rules are based on Bollinger Bands in combination with the Relative Strength Index (RSI) and the trend. I checked your version and it gives exactly the same signals. Your version is much easier to figure out, and thats what i'm going to do right now. Thanks again!
 Users browsing this topic
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.