Leavitt Projection indicator free

by mfejza in category Oscilator at 13/09/2022
Description

The Leavitt Projection indicator was created by Jay Leavitt (Stocks and Commodities Oct 2019, page11), who is most well known for creating the Volume Weighted Average Price indicator.

Respecting the slope of indicator and position of crossing zero level is giving the satisfied signals.

Notification Publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section you may use the Copyright Infringement Notification form to submit a claim.
Formula / Source Code
Language: C#
Trading Platform: cAlgocTrader

using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;

namespace cAlgo
{
    [Levels(0)]
    [Indicator(IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class mLeavittProjection : Indicator
    {
        [Parameter("Period Fast (14)", DefaultValue = 14)]
        public int inpPeriodFast { get; set; }
        [Parameter("Period Slow (14)", DefaultValue = 30)]
        public int inpPeriodSlow { get; set; }

        [Output("Main")]
        public IndicatorDataSeries outLeavittProjection { get; set; }

        private IndicatorDataSeries _price, _delta;
        private LinearRegressionForecast _lrffast, _lrfslow;


        protected override void Initialize()
        {
            _price = CreateDataSeries();
            _delta = CreateDataSeries();
            _lrffast = Indicators.LinearRegressionForecast(_price, inpPeriodFast);
            _lrfslow = Indicators.LinearRegressionForecast(_price, inpPeriodSlow);
        }

        public override void Calculate(int i)
        {
            _price[i] = (Bars.HighPrices[i] + Bars.LowPrices[i] + Bars.ClosePrices[i] + Bars.ClosePrices[i]) / 4;
            _delta[i] = _lrffast.Result[i - 1] - _lrfslow.Result[i - 1];

            outLeavittProjection[i] = _delta[i];
        }
    }
}
Comments

annacrawd - September 15, 2022 @ 06:38

Of course, there are many gambling games on the Internet. But is it worth trusting one-day sites. Personally, I like the resource duck dice which I have been visiting every week for several years now. I recently discovered the zcash cryptocurrency for myself and with great pleasure I play online dice here https://duckdice.io/dice/zec-zcash. This game does not bother me and the main thing is that I win quite often.

mikle.jk2009 - September 21, 2022 @ 14:16

Hello. I can help you with good advice on where you can buy a small payment institution for sale. Go to their website and you will like it 100%. I am very glad to have found such a cool and trustworthy partner. Real professionals with experience.

5