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

Notification

Icon
Error

Options
Go to last post Go to first unread
MS Support  
#1 Posted : Wednesday, June 15, 2022 4:11:52 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,960

Thanks: 92 times
Was 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.

Users browsing this topic
Guest (Hidden)
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.