Description
Thats all it is but you can see whats going on.
using System;
using cAlgo.API;
using cAlgo.API.Indicators;
namespace cAlgo.Indicators
{
[Indicator(IsOverlay = false, AccessRights = AccessRights.None)]
public class UpDownTick : Indicator
{
[Output("Up Volume", LineColor = "FFFFFF00", PlotType = PlotType.Histogram, Thickness = 3)]
public IndicatorDataSeries UpVolume { get; set; }
[Output("Down Volume", LineColor = "FFAA00FF", PlotType = PlotType.Histogram, Thickness = 1)]
public IndicatorDataSeries DownVolume { get; set; }
public override void Calculate(int index)
{
if (Bars.ClosePrices[index] >= Bars.OpenPrices[index])
{
UpVolume[index] = Bars.TickVolumes[index] ;
}
if (Bars.ClosePrices[index] <= Bars.OpenPrices[index])
{
DownVolume[index] = Bars.TickVolumes[index] ;
}
}
}
}
VE
Splash The
Joined 06.12.2022
- Type: free
- Language: C#
- Trading Platform: cTrader Automate
- Filename: UpDownTick.algo
- Rating: 5
- Downloads: 255
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.
Comments
Only logged in users can post a comment
Comments not found