I've a code. Please, could you help me step by step, to transform this code in a NinjaScript (my indicator)???
Here is part of the code. I THINK this code is Easy Language:
#region Using declarations
using System;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.ComponentModel;
using System.Xml.Serialization;
using NinjaTrader.Data;
using NinjaTrader.Gui.Chart;
#endregion
// This namespace holds all indicators and is required. Do not change it.
namespace NinjaTrader.Indicator
{
/// <summary>
/// This method is used to configure the indicator and is called once before any bar data is loaded.
/// </summary>
protected override void Initialize()
{
Add(new Plot(Color.Cyan, "Plot1_Up"));
Add(new Plot(Color.Magenta, "Plot1_Dn"));
Add(new Plot(Color.Cyan, "Plot2_Up"));
Add(new Plot(Color.Magenta, "Plot2_Dn"));
value1 = new DataSeries(this);
value2 = new DataSeries(this);
Overlay = true;
PriceTypeSupported = true;
BarsRequired = length+trigAvg;
}
Tks and
Best regards
Comment