VWAP Mean indicator free

by mfejza in category Oscilator at 01/10/2022
Description

This indicator follow the price pressure sentiment. As a trigger is used the limits between High and Low pressure.

Bullish sentiment is definated when Mean component is above the triggers limits.

Bearish sentiment is definated when Mean component is below the triggers limits.

Mean -black component
Bullish sentiment level - red component
Bearish sentiment level - green component

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
//idea: mfejza (https://ctrader.com/users/profile/58775)
using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;
 
namespace cAlgo
{
    [Levels(0)]
    [Indicator(IsOverlay = false, AccessRights = AccessRights.None)]
    public class mVWAPmean : Indicator
    {
        [Parameter("Periods (10)", DefaultValue = 10)]
        public int inpPeriods { get; set; }
 
        [Output("VWAP Bulls", LineColor = "Green", LineStyle = LineStyle.Solid, Thickness = 1)]
        public IndicatorDataSeries outVWAPbulls { get; set; }
        [Output("VWAP Bears", LineColor = "Red", LineStyle = LineStyle.Solid, Thickness = 1)]
        public IndicatorDataSeries outVWAPbears { get; set; }
        [Output("VWAP Mean", LineColor = "Black", LineStyle = LineStyle.Solid, Thickness = 1)]
        public IndicatorDataSeries outVWAPmean { get; set; }
 
        private IndicatorDataSeries _vwaphigh, _vwaplow, _mean;
 
        protected override void Initialize()
        {
            _vwaphigh = CreateDataSeries();
            _vwaplow = CreateDataSeries();
            _mean = CreateDataSeries();
        }
 
        public override void Calculate(int i)
        {
            _vwaphigh[i] = ((Bars.HighPrices.Sum(inpPeriods) * Bars.TickVolumes.Sum(inpPeriods)) / Bars.TickVolumes.Sum(inpPeriods)) / inpPeriods;
            _vwaplow[i] = ((Bars.LowPrices.Sum(inpPeriods) * Bars.TickVolumes.Sum(inpPeriods)) / Bars.TickVolumes.Sum(inpPeriods)) / inpPeriods;
            _mean[i] = (_vwaphigh[i] + _vwaplow[i]) / 2;
            
            outVWAPbulls[i] = _vwaplow[i] - _mean[i];
            outVWAPbears[i] = _vwaphigh[i] - _mean[i];
            outVWAPmean[i] = Bars.ClosePrices[i] - _mean[i];
        }
    }
}
Comments

chdima1822 - October 02, 2022 @ 14:53

If you interested creative Lego creations or you collect own favorite Lego series, welcome to
our Lego fan blog where you find latest news on Lego and more.

among012a - October 04, 2022 @ 12:58

Thanks so much for sharing this great information! I look forward to seeing more of your posts as soon as possible! poppy playtime

cutieprincessshona - October 07, 2022 @ 13:30

I really appreciate you letting me know about this. I hope to read more of your updates very soon! word wipe

nguyentra3493 - October 10, 2022 @ 22:12

KUBET999.Vip belongs to KUBET (also known as Thien Ha Bet – THABET), is one of the prestigious, top security and HIGHEST PAYING bookmakers run by Mr. Nguyen Phan Anh - CEO of KUBET 999. Tel: 0906390587. Head office: RCBC Plaza, Makati, Metro Manila, Philippines. Coming to KUBET 999, you will experience the pinnacle of entertainment technology because KUBET always applies new technology to the games, helping customers get the most authentic feeling!!

0