NinjaTrader 8 code
$10-50 USD
Paid on delivery
I am looking for a skilled NinjaTrader 8 developer to modify an existing code. I am having issues with rendering drawing objects. And calling marketanalyzer, so the code will not compile.
using System;
using [login to view URL];
using [login to view URL];
using [login to view URL];
using [login to view URL];
using [login to view URL];
using [login to view URL];
using [login to view URL];
using [login to view URL];
namespace [login to view URL]
{
public class GSO9Indicator : Indicator
{
private DateTime lastCalibrationDate = [login to view URL];
private double centerPrice;
private double[] gannAngles = { 45, 90, 135, 180, 225, 270, 315, 360 };
private double[] supportResistanceLevels = new double[8];
private double imbalanceThreshold = 1.0; // Adjust this threshold
private double buyingLevel;
private double sellingLevel;
private double openingRangeHigh = [login to view URL];
private double openingRangeLow = [login to view URL];
private double vwap;
private double vwap1StdDev;
private double vwap2StdDev;
protected override void OnStateChange()
{
if (State == [login to view URL])
{
Description = "GSO9 Indicator with Volume Imbalances, Opening Range, Naked VPOC, and VWAP";
Name = "GSO9 v1.0"; // Version revision number
Calculate = [login to view URL];
IsOverlay = true;
DisplayInDataBox = true;
}
}
protected override void OnBarUpdate()
{
if (BarsInProgress == 0 && CurrentBars[0] == 1)
{
openingRangeHigh = Highs[0][0];
openingRangeLow = Lows[0][0];
}
else if (BarsInProgress == 0 && Time[0].[login to view URL] >= 5)
{
openingRangeHigh = [login to view URL];
openingRangeLow = [login to view URL];
}
if (Time[0].Date != lastCalibrationDate)
{
lastCalibrationDate = Time[0].Date;
centerPrice = Close[0];
for (int i = 0; i < [login to view URL]; i++)
{
double radians = gannAngles[i] * [login to view URL] / 180;
double level = centerPrice + ([login to view URL](radians) * 10);
supportResistanceLevels[i] = level;
}
}
for (int i = 0; i < [login to view URL]; i++)
{
// Plot the Gann angle lines directly on the price chart
[login to view URL](this, "SRLevel" + i, i, supportResistanceLevels[i], 0, supportResistanceLevels[i], i % 2 == 0 ? [login to view URL] : [login to view URL], [login to view URL], 2);
}
double aboveVolume = 0;
double belowVolume = 0;
for (int i = 0; i < CurrentBars[0]; i++)
{
if (Close[i] > centerPrice)
aboveVolume += Volume[i];
else if (Close[i] < centerPrice)
belowVolume += Volume[i];
}
double imbalance = (aboveVolume - belowVolume) / (aboveVolume + belowVolume);
if (imbalance > imbalanceThreshold)
{
buyingLevel = centerPrice + (imbalanceThreshold * 10); // Adjust factor if needed
[login to view URL](this, "BuyingLevel", 0, buyingLevel, CurrentBars[0], buyingLevel, [login to view URL], [login to view URL], 2);
}
else if (imbalance < -imbalanceThreshold)
{
sellingLevel = centerPrice - (imbalanceThreshold * 10); // Adjust factor if needed
[login to view URL](this, "SellingLevel", 0, sellingLevel, CurrentBars[0], sellingLevel, [login to view URL], [login to view URL], 2);
}
if (BarsInProgress == 0 && Time[0].[login to view URL] == 5)
{
// Plot the opening range lines directly on the price chart
[login to view URL](this, "OpeningRangeHigh", 0, openingRangeHigh, CurrentBars[0], openingRangeHigh, [login to view URL], [login to view URL], 2);
[login to view URL](this, "OpeningRangeLow", 0, openingRangeLow, CurrentBars[0], openingRangeLow, [login to view URL], [login to view URL], 2);
}
// Plot the naked VPOC directly on the price chart
double nakedVPOC = (Highs[0][0] + Lows[0][0]) / 2.0;
[login to view URL](this, "NakedVPOC", 0, nakedVPOC, CurrentBars[0], nakedVPOC, [login to view URL], [login to view URL], 2);
// Calculate VWAP
vwap = SUM(Close * Volume, 5) / SUM(Volume, 5);
// Calculate VWAP standard deviations
double vwapSum = 0;
for (int i = 0; i < 5; i++)
{
vwapSum += [login to view URL]((Close[i] * Volume[i]) - vwap, 2);
}
double vwapVariance = vwapSum / 5;
double vwapStdDev = [login to view URL](vwapVariance);
// Plot 1 standard deviation VWAP directly on the price chart
vwap1StdDev = vwap + vwapStdDev;
[login to view URL](this, "VWAP1StdDev", 0, vwap1StdDev, CurrentBars[0], vwap1StdDev, [login to view URL], [login to view URL], 2);
// Plot 2 standard deviation VWAP directly on the price chart
vwap2StdDev = vwap + (2 * vwapStdDev);
[login to view URL](this, "VWAP2StdDev", 0, vwap2StdDev, CurrentBars[0], vwap2StdDev, [login to view URL], [login to view URL], 2);
}
}
}
Project ID: #37226049
About the project
Awarded to:
Hello there! My name is Saad Anwar and I am a skilled C# programmer and WordPress developer. I understand you are looking for a NinjaTrader 8 developer to modify an existing code. You are experiencing issues with rende More
2 freelancers are bidding on average $30 for this job
Hi myself saksham Maurya and I am professionally a website developer and a programmer in c++ and HTML and python so I can help you in the terms of solving the error and to compile so if you are interested you can mess More