Welcome Guest! To enable all features please Login or Register.

Error

 Previous Topic Next Topic
 MS Support #1 Posted : Wednesday, June 15, 2022 4:11:52 PM(UTC) Rank: Advanced MemberGroups: Moderators, Registered, Registered Users, SubscribersJoined: 10/8/2010(UTC)Posts: 1,953Thanks: 91 timesWas thanked: 155 time(s) in 150 post(s) Jay Leavitt wrote several articles over the past couple of years.  In November, he answered some Letters to S&C and included formulas for the calculations used by his strategies. The MetaStock versions of those formulas are below:  Leavitt Convolution: Formula: Code:``````x:= Input("Length", 2, 500, 61); lenconv:= LastValue( Int(Sqrt(x))); LeavPro:= Ref(LinearReg(C, x), -1); Ref(LinearReg(LeavPro, lenconv), -1)`````` Leavitt Convolution Slope: Formula: Code:``````x:= Input("Length", 2, 500, 61); lenconv:= LastValue( Int(Sqrt(x))); LeavPro:= Ref(LinearReg(C, x), -1); LinRegSlope(LeavPro, lenconv)``````   Leavitt Convolution Curvature: Formula: Code:``````x:= Input("Length", 2, 500, 61); lenconv:= LastValue( Int(Sqrt(x))); LeavPro:= Ref(LinearReg(C, x), -1); LeavConSlope:= LinRegSlope(LeavPro, lenconv); If(LeavConSlope>Ref(LeavConSlope,-1), LeavConSlope, 0); If(LeavConSlope<=Ref(LeavConSlope,-1), LeavConSlope, 0);`````` Please note: The formula for the Curvature plots two lines, one for increasing values and the other for decreasing values.  Jay Leavitt suggests setting the increasing values line to Green with a Histogram line style.  Set the decreasing values line to Red with a Histogram line style.  He also adds two lines at values of 0.2 and -0.2 for boundaries within which price direction is unclear.MetaStock suggests increasing the weight of the histogram lines by one or two levels to make the lines more visible and give the chart a more striking appearance.
 Wanna join the discussion?! Login to your Discussions forum accountor Register a new forum account.
 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.