volum zaki free

by zakibouabdesslam in category Trend at 24/12/2022
Description

welcome volume

Warning! Executing the following cBot may result in loss of funds. Use it at your own risk.
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: cAlgo

using System;
 using cAlgo.API;
 
 
namespace cAlgo.Indicators
 {
     [Indicator(IsOverlay = false, ScalePrecision = 5, AccessRights = AccessRights.None)]
     public class Volume : Indicator
     {
         [Output("BidEntries", Color = Colors.Red, PlotType = PlotType.Histogram, Thickness = 5)]
         public IndicatorDataSeries BidResult { get; set; }
 
        [Output("AskEntries", Color = Colors.Blue, PlotType = PlotType.Histogram, Thickness = 5)]
         public IndicatorDataSeries AskResult { get; set; }
 
        MarketDepth GBPUSD;
 
        private int _askNo;
         private int _bidNo;
 
        protected override void Initialize()
         {
             GBPUSD = MarketData.GetMarketDepth(Symbol);
             GBPUSD.Updated += OnGbpUsdUpdated;
         }
 
        void OnGbpUsdUpdated()
         {
             _askNo = 0;
             _bidNo = 0;
 
            var index = MarketSeries.Close.Count - 1;
 

            for (var i = 0; i < AskResult.Count; i++)
                 AskResult[i] = double.NaN;
 
            foreach (var entry in GBPUSD.AskEntries)
             {
                 AskResult[index - _askNo] = (-1) * entry.Volume;
                 _askNo++;
             }
 
            for (var i = 0; i < BidResult.Count; i++)
                 BidResult[i] = double.NaN;
 
            foreach (var entry in GBPUSD.BidEntries)
             {
                 BidResult[index - _bidNo] = entry.Volume;
                 _bidNo++;
             }
         }
 
        public override void Calculate(int index) { }
 
   }
}
Comments

gomeve7583 - January 25, 2023 @ 06:14

Welcome to the Marks and Spencer Customer Survey 2022. Visit the marks & spencer survey site at Makeyourmenards.co.uk. & get a chance to win £50 Cash. 

Check Here: Makeyourmands.co.uk Survey

taras.javar - February 04, 2023 @ 15:40

Thanks for the blog loaded with so many information. Stopping by your blog helped me to get what I was looking for. Victoza Cancer Lawsuit

taras.javar - February 04, 2023 @ 15:52

I recently found many useful information in your website especially this blog page. Among the lots of comments on your articles. Thanks for sharing. All Floors Center

0