Zoom With Mouse Wheel free

by amirbusinesstrade in category Other at 17/08/2022
Description

 

Zoom with Mouse Wheel for Ctrader 

This tool helps you zoom in / out  on the chart with the mouse wheel

be successful and profitable .

 

Copyright reserved for RTG trading group , 2022

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 System.Collections.Generic;
using System.Linq;
using System.Text;
using cAlgo.API;
using cAlgo.API.Collections;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;

namespace cAlgo
{
    [Indicator(IsOverlay =true, AccessRights = AccessRights.None)]
    public class ZoomByMouseWheel : Indicator
    {
      

        protected override void Initialize()
        {
           Chart.MouseWheel += Wheel;
         
           
        }
        
        
        public void Wheel(ChartMouseWheelEventArgs e)
        {
        
        if(e.Delta>0)
        {
        
       
         
        Chart.ZoomLevel =Convert.ToInt32(( Chart.ZoomLevel ) / 0.650);
        
        
        }
        else{
        
         
        Chart.ZoomLevel =Convert.ToInt32(( Chart.ZoomLevel ) * 0.650);
        
        
        }
       
        
        
        
        }

      



        public override void Calculate(int index)
        {
            // Calculate value at specified index
            // Result[index] = 
        }
    }
}
Comments

xiao-linlong - August 21, 2022 @ 08:39

The mouse has two scroll wheels, now the system itself can use the front of the mouse wheel to control the left and right movement, if the development of a function to let the left side of the mouse wheel used to control the zoom in and out would be good. Thanks.

peterparkerrbu - August 26, 2022 @ 07:54

Hence while hiring any best essay writing service word search provider 

otis.schamberger89 - August 26, 2022 @ 09:45

BTW, I appreciate your assistance so much; I can finally get some work done while lounging in my new gaming chair. basketbros

0