I need assistance debugging a cAlgo program -- $30

C# Indikatoren Sonstiges C#

Auftrag beendet

Ausführungszeit 1 Stunde
Bewertung des Kunden
The developer is very professional. The job was completed in less than 2 hours of being accepted. I would recommend him any-day.

Spezifikation

i converted an MQL5 indicator "Volume Zone Oscillator" to cAlgo. The indicator attaches to the chart and displays but it throws an error " Crashed in Calculate with IndexOutOfRangeException: Index was outside the bounds of the array."; I need assistance with debugging


MQL5 indicator is attached.


The cAlgo indicator is below

///=====================================================


// Importing necessary namespaces

using cAlgo.API;
using System;

namespace cAlgo
{

[Cloud("Upper Level", "Lower Level", FirstColor = "Gainsboro", SecondColor = "Crimson", Opacity = 0.4)]
[Indicator(IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class VolumeZoneOscillator : Indicator
{
// Declare the indicator buffers
[Output("Upper Level", PlotType = PlotType.Line, LineColor = "Gainsboro")]
public IndicatorDataSeries LevUp { get; set; }

[Output("Lower Level", PlotType = PlotType.Line, LineColor = "Crimson")]
public IndicatorDataSeries LevDn { get; set; }

[Output("Volume Zone Oscillator", PlotType = PlotType.Line, LineColor = "DarkGray")]
public IndicatorDataSeries VZO { get; set; }

[Output("Volume Zone Oscillator Color", PlotType = PlotType.Line, LineColor = "LimeGreen")]
public IndicatorDataSeries VZOC { get; set; }

// Declare input variables
[Parameter("Period", DefaultValue = 14)]
public int Period { get; set; }

// Private variables
private double[,] work;
private double alpha;

// Initialize method
protected override void Initialize()
{
work = new double[Bars.Count, 2];
alpha = 2.0 / (1.0 + Period);
//Chart.Title = "Volume Zone Oscillator (" + Period + ")";
}

// Calculate method - Called for every new bar/candle
public override void Calculate(int index)
{
// Skip if insufficient data
if (index < Period) return;

double sign = 0;
if (index > 0)
{
sign = (Bars.ClosePrices[index] > Bars.ClosePrices[index - 1]) ? 1 : (Bars.ClosePrices[index] < Bars.ClosePrices[index - 1]) ? -1 : 0;
}

double R = sign * Bars.TickVolumes[index];
work[index, 0] = (index == 0) ? R : work[index - 1, 0] + alpha * (R - work[index - 1, 0]);
work[index, 1] = (index == 0) ? Bars.TickVolumes[index] : work[index - 1, 1] + alpha * (Bars.TickVolumes[index] - work[index - 1, 1]);

// Calculate VZO (Volume Zone Oscillator)
if (work[index, 1] != 0)
VZO[index] = 100.0 * work[index, 0] / work[index, 1];
else
VZO[index] = 0;

// Calculate VZOC color (Volume Zone Oscillator Color Index)
VZOC[index] = (VZO[index] > 0) ? 1 : (VZO[index] < 0) ? 2 : 0;

// Calculate LevUp and LevDn (to draw filling)
LevUp[index] = Math.Max(VZO[index], 0);
LevDn[index] = Math.Min(VZO[index], 0);
}
}
}


===================================================================



Bewerbungen

1
Entwickler 1
Bewertung
(1)
Projekte
2
0%
Schlichtung
2
0% / 0%
Frist nicht eingehalten
0
Arbeitet
2
Entwickler 2
Bewertung
(2)
Projekte
3
0%
Schlichtung
8
13% / 88%
Frist nicht eingehalten
1
33%
Frei
3
Entwickler 3
Bewertung
(120)
Projekte
128
36%
Schlichtung
3
33% / 33%
Frist nicht eingehalten
2
2%
Beschäftigt
4
Entwickler 4
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
5
Entwickler 5
Bewertung
(3)
Projekte
1
0%
Schlichtung
5
0% / 100%
Frist nicht eingehalten
0
Frei
6
Entwickler 6
Bewertung
(3)
Projekte
2
0%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
0
Frei
Ähnliche Aufträge
An Expert Advisor (EA) robot that uses market movement-based indicators is an automated program designed for platforms like MetaTrader 4 or 5 (MT4/MT5) that monitors price fluctuations and triggers trades based on predefined technical rules. These robots, often used for trend following, scalping, or breakout strategies, analyze price action, moving averages, or volatility to automatically enter and exit trades
step by step and structure this into a full IEEE 830 / ISO/IEC/IEEE 29148 style Requirements Specification. This format will include: Introduction System Overview Functional and Performance Requirements Traceability Matrix (linking requirements to test cases) Verification and Validation Compliance Standards 1. Introduction 1.1 Purpose The purpose of this document is to define the technical requirements for the
i need an expert to help join 3 model i have in ninjatrader into one, kindly message me and i will be expecting from you and i need this work done in maximum of 4 days, so i need expert that can get it done
hello great developer i want a NinjaTrader 8 custom indicator (not a full bot) • It implements the Jackson–Dalton Trading System • Includes Z1/Z2/Z3 zones, VWAP + deviation, and session volume profile (POC/VAH/VAL) • Has day-type classification and configurable alerts • Primary instruments are BTC/USDT and ETH/USDT • Full source code and documentation are required • Semi-automation and futures support are optional /
Henryy999 30 - 3000 USD
The Ai robot must help me with forex and I don't have money soon can the Ai robot give me some money and I will pay it back if the Ai robot does a good job making me rich
hello great developer Looking for an experienced C#/.NET developer to build a single-file Windows .exe that reads trading signals via Telegram Bot API and semi-automates trade execution on UnderVantage’s custom MT5 platform (UI automation, broker-specific). Requirements (non-negotiable): • C#/.NET only (no Python) • Single standalone .exe • Real Telegram Bot API (no clipboard) • Must work with UnderVantage MT5
I am looking for an experienced developer to create an automated trading bot on the Quantower platform based on my trading rules. The bot should execute trades automatically. Kindly bid for it if it is what you can code for me
I want to check if this indicator is repainting or not Whick mean the results of back testing is legit or not if anyone can help me to review it kindly to well to contact me i will be happy to work and go on long term work with anyone thanks
1.Sinyal Perdagangan : Sinyal beli: garis MACD utama memotong garis sinyal ke atas (macd_current>signal_current && macd_previous<signal_previous). Sinyal jual: garis MACD utama memotong garis sinyal ke bawah (macd_current<signal_current && macd_previous>signal_previous). Gambar di bawah menunjukkan kasus beli dan jual. 2. Posisi ditutup pada sinyal yang berlawanan: Posisi beli ditutup pada sinyal jual, dan posisi
I’m looking for a NinjaTrader 8 developer to build or customize a fully automated futures strategy . Goals: Target ~$100/day (consistency over aggression) Long-term survivability (not scalping hype) Requirements: Trade ES/MES or NQ/MNQ Fixed risk per trade Daily profit & loss limits Time/session filters Break-even & trailing stop logic Full NT8 strategy (not indicator) Nice to have: Backtest + optimization

Projektdetails

Budget
30+ USD
Ausführungsfristen
bis 2 Tag(e)